fix a bug introduced in a8bb950b3da00b7933912c27e2ad92814b10d75b ; we want to set...
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 6 Oct 2013 15:48:49 +0000 (17:48 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 6 Oct 2013 15:48:49 +0000 (17:48 +0200)
citadel/modules/smtp/serv_smtp.c

index 1a5b6009c9d656ffbbe4b0bb506a3bd056383ec0..6a06515c3b7d88407deced7d631a9ccca0da67df 100644 (file)
@@ -622,7 +622,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"));
        }