From 87fb6fc2dd6126bbb7c26ee798b7249558041de7 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Sun, 29 Jun 2025 21:23:23 -0400 Subject: [PATCH] Sorter AND sender are doing the same local email storage! --- lib/devsql.c | 2 ++ lib/geseml.c | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/devsql.c b/lib/devsql.c index 6b7bf75..dd340b1 100644 --- a/lib/devsql.c +++ b/lib/devsql.c @@ -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; diff --git a/lib/geseml.c b/lib/geseml.c index 3ea06be..7920d99 100644 --- a/lib/geseml.c +++ b/lib/geseml.c @@ -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 -- 2.47.3