]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/serv_smtp.c
when we did the login and replied, we mustn't try again to process the inbound comman...
[citadel.git] / citadel / modules / smtp / serv_smtp.c
index be6347466270576c957d1610d8c29e1d3b5a961c..191a3b57cbedcdfa6c3a0daf34ab1b4c9bde7794 100644 (file)
@@ -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"));
        }
 
@@ -1015,6 +1015,7 @@ void smtp_command_loop(void)
 
        else if (sSMTP->command_state == smtp_plain) {
                smtp_try_plain(0, 0);
+               return;
        }
 
        pchs = pch = ChrPtr(sSMTP->Cmd);