From ccbec09837ce22d3477d75960fb102df30ca3005 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 10 Nov 2002 01:43:35 +0000 Subject: [PATCH] REPLYTO is exported as Reply-To header field if specified. --- src/sbbs3/mailsrvr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c index d38a6c53a3..e26043b3f5 100644 --- a/src/sbbs3/mailsrvr.c +++ b/src/sbbs3/mailsrvr.c @@ -501,10 +501,14 @@ static ulong sockmsgtxt(SOCKET socket, smbmsg_t* msg, char* msgtxt, ulong maxlin } if(!s) return(0); - if((p=smb_get_hfield(msg,RFC822REPLYTO,NULL))!=NULL) + if((p=smb_get_hfield(msg,RFC822REPLYTO,NULL))==NULL) { + if(msg->replyto_net.type==NET_INTERNET) + p=msg->replyto_net.addr); + else if(msg->replyto!=NULL) + p=msg->replyto; + } + if(p!=NULL) s=sockprintf(socket,"Reply-To: %s",p); /* use original RFC822 header field */ - else if(msg->replyto_net.type==NET_INTERNET) - s=sockprintf(socket,"Reply-To: %s",msg->replyto_net.addr); if(!s) return(0); if(!sockprintf(socket,"Message-ID: %s",get_msgid(&scfg,INVALID_SUB,msg))) -- GitLab