From: Jean-Marc Pigeon (Delson) Date: Wed, 11 Jun 2025 18:09:17 +0000 (-0400) Subject: Need to write the Rebounce process X-Git-Tag: tag-0.8~22 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=2141d98860d1436a464de27e9597756da772f85c;p=jmp%2Fmailleur Need to write the Rebounce process --- diff --git a/app/sender.c b/app/sender.c index ab4f33e..fcc457e 100644 --- a/app/sender.c +++ b/app/sender.c @@ -48,7 +48,7 @@ if (tra!=(TRATYP **)0) { (void) eml_remote_email(tra); break; case 'W' : //Remote delivery - (void) eml_rebounce_email(tra); + (void) eml_rebounce_email(*tra); break; default : (void) rou_alert(0,"%s unexpected code '%c'",OPEP,(*tra)->code); diff --git a/lib/lvleml.c b/lib/lvleml.c index 96e1ee0..433e855 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -1569,8 +1569,15 @@ while (proceed==true) { /* deliverable. */ /* */ /********************************************************/ -PUBLIC void eml_rebounce_email(TRATYP **tra) +PUBLIC void eml_rebounce_email(TRATYP *tra) { +char *tmp; + +(void) rou_alert(0,"JMPDG rebounce"); +tmp=tra->mailfrom; +tra->mailfrom=tra->rcptto; +tra->mailfrom=tmp; +tra->code='L'; } diff --git a/lib/lvleml.h b/lib/lvleml.h index da5882b..e514454 100644 --- a/lib/lvleml.h +++ b/lib/lvleml.h @@ -52,6 +52,6 @@ extern void eml_local_email(TRATYP **tra); extern void eml_remote_email(TRATYP **tra); //Rebouncing Email to the first originator -extern void eml_rebounce_email(TRATYP **tra); +extern void eml_rebounce_email(TRATYP *tra); #endif