From: Jean-Marc Pigeon Date: Thu, 27 Nov 2025 14:50:10 +0000 (-0500) Subject: Ready to do test with eml_note X-Git-Tag: tag-0.19~31 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=7794750fa99d566c44dd19cce19400e150105735;p=jmp%2Fmailleur Ready to do test with eml_note --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 5d41377..7c10679 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -1897,16 +1897,24 @@ while (proceed==true) { case 3 : //checking rcptto format neu=eml_isemailok(rcptto,&report); if (neu==(RCPTYP *)0) { - (void) eml_status(contact,NOTEML,rcptto," 5.6.3 %s",report); + (void) eml_note(contact,rcptto,"%d 5.6.3 %s",NOTEML,report); + (void) eml_transmit(contact,true,"%d 5.6.3 %s",NOTEML,report); report=rou_freestr(report); phase=999; //no need to go further } break; case 4 : //Do we have a domain MX if (setlocdom(contact,neu)==false) { - (void) eml_status(contact,MISSMX,rcptto," 5.6.4 %s (domain=%s)", - "No valid MX found for recipient " - "domain name",neu->domain); + (void) eml_note(contact,rcptto,"%d 5.6.4 %s (domain=%s)", + MISSMX, + "No valid MX found for recipient" + " domain name", + neu->domain); + (void) eml_transmit(contact,true,"%d 5.6.4 %s (domain=%s)", + MISSMX, + "No valid MX found for recipient" + " domain name", + neu->domain); phase=999; //no need to go further } break; @@ -1936,7 +1944,8 @@ while (proceed==true) { } break; case 7 : //everything ok - (void) eml_status(contact,CMDOK,rcptto," 5.6.7 %s <%s>",detail,rcptto); + (void) eml_note(contact,rcptto,"%d 5.6.7 %s <%s>",CMDOK,detail,rcptto); + (void) eml_transmit(contact,true,"%d 5.6.7 %s <%s>",CMDOK,detail,rcptto); success=true; break; default : //SAFE guard