From: Wilfried Goesgens Date: Sun, 6 Oct 2013 15:48:49 +0000 (+0200) Subject: fix a bug introduced in a8bb950b3da00b7933912c27e2ad92814b10d75b ; we want to set... X-Git-Tag: v8.22~17 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b9f6011abf947ceb06ad47dcc520f6b3ef7dbe9b fix a bug introduced in a8bb950b3da00b7933912c27e2ad92814b10d75b ; we want to set the user if its not set. --- diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index be6347466..be0ef80a4 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -619,7 +619,7 @@ void smtp_mail(long offset, long flags) { * address so we don't have to contend with the empty string causing * other code to fail when it's expecting something there. */ - if (StrLength(sSMTP->from)) { + if (StrLength(sSMTP->from) == 0) { StrBufPlain(sSMTP->from, HKEY("someone@example.com")); }