]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding ORGN SMTP command (debug mode)
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 6 May 2025 00:06:29 +0000 (20:06 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 6 May 2025 00:06:29 +0000 (20:06 -0400)
lib/lvleml.c
lib/unieml.c
lib/unieml.h

index 72b6f07a268c06c0234ea283bd7d46283b34a0c0..181461b05dab5b4840a3c6ae4b553874204cbe82 100644 (file)
@@ -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);
index 148d779c99e4e294a5a009c5e7f6363fcbccf658..83a0281e9301ad5748fc4fb1a28a2defb428929b 100644 (file)
@@ -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},
index 17f56e57d2d99448600e9f6716257cf309f6474d..84ebb49d282bd9fe7dfa6d258b904ecdf44ebb7c 100644 (file)
@@ -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