]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Sorter AND sender are doing the same local email storage!
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 01:23:23 +0000 (21:23 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 01:23:23 +0000 (21:23 -0400)
lib/devsql.c
lib/geseml.c

index 6b7bf7542d25a6eb8f35dd6fff4aea59dd88e414..dd340b1cb6ac4960fa2efc2ba64121c8cb5b1802 100644 (file)
@@ -833,6 +833,7 @@ if (act!=(ACTTYP *)0) {
   char *goodid;
   char *goodrcpt;
 
+  (void) rou_alert(0,"%s Entering!",OPEP);
   goodid=sql_gooddata(sqlptr,act->sessid);
   goodrcpt=sql_gooddata(sqlptr,act->rcptto);
   if (act->resp==(char **)0)
@@ -862,6 +863,7 @@ if (act!=(ACTTYP *)0) {
   goodrcpt=rou_freestr(goodrcpt);
   goodid=rou_freestr(goodid);
   isok=true;
+  (void) rou_alert(0,"%s Exiting!",OPEP);
   }
 return isok;
 
index 3ea06be6147976a56c7f0d50649d2d556812b3dd..7920d991c45d4d77d0d7d5a6dc17cb1fcb912241 100644 (file)
@@ -625,7 +625,7 @@ if (next!=(TRATYP **)0) {
 /*                                                      */
 /*      Procedure to store an email contents with the   */
 /*      recipient email area.                           */
-/*      Return tru if successful, false otherwise       */
+/*      Return true if successful, false otherwise       */
 /*                                                      */
 /********************************************************/
 PUBLIC _Bool eml_store_email(TRATYP *tra)
@@ -644,6 +644,7 @@ locdom=(char *)0;
 phase=0;
 proceed=true;
 while (proceed==true) {
+  (void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase);
   switch (phase) {
     case 0      :       //Extracting recipient email
       if ((tra!=(TRATYP *)0)&&(tra->rcptto!=(char *)0)&&(strlen(tra->rcptto)>0))
@@ -683,6 +684,11 @@ while (proceed==true) {
         }
       break;
     case 3      :       //everything fine
+      char cmt[200];
+
+      (void) eml_freetra_resp(tra);
+      (void) snprintf(cmt,sizeof(cmt),"%d Message delivered in mail box",CMDOK);
+      tra->resp=(char **)rou_addlist((void **)tra->resp,(void *)strdup(cmt));
       done=true;
       break;
     default     :       //SAFE Guard