]> code.citadel.org Git - citadel.git/commitdiff
*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Thu, 19 Jun 2003 04:17:22 +0000 (04:17 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 19 Jun 2003 04:17:22 +0000 (04:17 +0000)
citadel/serv_smtp.c

index 6f8fa715868664d3fbd53f69e4e218e8447d18c3..f1d1b8b083a6a482eceac6b839f9395679574193 100644 (file)
@@ -367,12 +367,14 @@ void smtp_mail(char *argbuf) {
        stripallbut(SMTP->from, '<', '>');
 
        /* We used to reject empty sender names, until it was brought to our
-        * attention that RFC1123 5.2.9 requires that this be allowed.
+        * attention that RFC1123 5.2.9 requires that this be allowed.  So now
+        * we allow it, but replace the empty string with a fake
+        * address so we don't have to contend with the empty string causing
+        * other code to fail when it's expecting something there.
+        */
        if (strlen(SMTP->from) == 0) {
-               cprintf("501 5.1.7 Empty sender name is not permitted\r\n");
-               return;
+               strcpy(SMTP->from, "someone@somewhere.org");
        }
-        */
 
        /* If this SMTP connection is from a logged-in user, force the 'from'
         * to be the user's Internet e-mail address as Citadel knows it.