From 2141d98860d1436a464de27e9597756da772f85c Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 11 Jun 2025 14:09:17 -0400 Subject: [PATCH] Need to write the Rebounce process --- app/sender.c | 2 +- lib/lvleml.c | 9 ++++++++- lib/lvleml.h | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) 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 -- 2.47.3