]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Fixing the NOT mandatory space after the SMTP command (MAIL FROM:)
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 2 Jul 2025 15:30:47 +0000 (11:30 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 2 Jul 2025 15:30:47 +0000 (11:30 -0400)
data-feed/feedyy.tst
lib/unieml.c

index fd756acea324568a790474863735bcd13e8ad86b..0f21a61dc596056620d8873d7c0cd61baf508549 100644 (file)
@@ -11,7 +11,9 @@ R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
 #              --> YXV0aGlkXDB3ZWJtYXN0ZXJAZXhhbXBsZS5jb21cMG1haWxsZXVy
 #          authid will be discarded by authentication procedure
 #authid can be missing
-S:AUTH PLAIN AHVzZXIxQG1haWxwb3N0Zy5leGFtcGxlLmNvbQBtYWlsbGV1cg==
-R:504 5.7.4 authentication failed
+S:AUTH PLAIN YXV0aGlkXDB3ZWJtYXN0ZXJAZXhhbXBsZS5jb21cMG1haWxsZXVy
+R:235 5.7.5 Authentication successful
+S:MAIL FROM:<user1@postdb.example.com>
+R:250 2.1.3 webmaster@example.com.. sender ok
 S:QUIT
 R:221 2.0.0 Bye, closing connection...
index a7d51eeb925aa78dde905e1d8245c339a6f4745c..cd06745f9573e638f15fed63023f560481064185 100644 (file)
@@ -164,8 +164,8 @@ for (ptr=vocsmtp;ptr->key!=(char *)0;ptr++) {
     code=ptr->code;
     par=keyword+strlen(ptr->key);
     *keyword='\000';     //lets say no parameters
-    if ((*par=='\000')||((*par!=' ')&&(*par!='\t')))
-      break;            //space missing -> argument missing
+    if (*par=='\000')
+      break;            //no parameters
     //removing unneeded space
     while ((*par==' ')||(*par=='\t'))
       par++;