From: Jean-Marc Pigeon (Delson) Date: Tue, 6 May 2025 00:06:29 +0000 (-0400) Subject: Adding ORGN SMTP command (debug mode) X-Git-Tag: tag-0.8~135 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=5430dc2028aabc833dc80ed03ddefbb27fd806fa;p=jmp%2Fmailleur Adding ORGN SMTP command (debug mode) --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 72b6f07..181461b 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -407,6 +407,9 @@ while (proceed==true) { (void) transmit(contact,"%d 2.0.0 OK, %s", CMDOK,contact->mainsesid); break; + case c_orgn : + (void) transmit(contact,"%d 2.0.0 ORGN Debug", CMDOK); + break; case c_quit : //QUIT SMTP protocol (void) transmit(contact,"%d 2.0.0 Bye, closing connection %s", QUITOK,contact->mainsesid); diff --git a/lib/unieml.c b/lib/unieml.c index 148d779..83a0281 100644 --- a/lib/unieml.c +++ b/lib/unieml.c @@ -23,6 +23,9 @@ static VOCTYP vocsmtp[]={ {c_helo,"HELO"}, {c_ehlo,"EHLO"}, {c_noop,"NOOP"}, +#ifdef MODEDEBUG + {c_orgn,"ORGN"}, +#endif {c_quit,"QUIT"}, {c_rset,"RSET"}, {c_mail,MAILF}, diff --git a/lib/unieml.h b/lib/unieml.h index 17f56e5..84ebb49 100644 --- a/lib/unieml.h +++ b/lib/unieml.h @@ -26,6 +26,7 @@ typedef enum { //list of SMTP protocol keyword c_helo, //Basic Helo command c_ehlo, //EHLO command c_noop, //No Operation request + c_orgn, //DEBUG PEERIP override c_quit, //quit exchange c_rset, //resetting session c_mail, //mail from sequence detected