From: Jean-Marc Pigeon (Delson) Date: Wed, 2 Jul 2025 15:30:47 +0000 (-0400) Subject: Fixing the NOT mandatory space after the SMTP command (MAIL FROM:) X-Git-Tag: tag-0.12~53 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=be1ea26f2d396f6fa61a109589ba8d3db3ed08cf;p=jmp%2Fmailleur Fixing the NOT mandatory space after the SMTP command (MAIL FROM:) --- diff --git a/data-feed/feedyy.tst b/data-feed/feedyy.tst index fd756ac..0f21a61 100644 --- a/data-feed/feedyy.tst +++ b/data-feed/feedyy.tst @@ -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: +R:250 2.1.3 webmaster@example.com.. sender ok S:QUIT R:221 2.0.0 Bye, closing connection... diff --git a/lib/unieml.c b/lib/unieml.c index a7d51ee..cd06745 100644 --- a/lib/unieml.c +++ b/lib/unieml.c @@ -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++;