From be1ea26f2d396f6fa61a109589ba8d3db3ed08cf Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 2 Jul 2025 11:30:47 -0400 Subject: [PATCH] Fixing the NOT mandatory space after the SMTP command (MAIL FROM:) --- data-feed/feedyy.tst | 6 ++++-- lib/unieml.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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++; -- 2.47.3