From 817058b7f111d41b1b73a2444e658eafecd837a2 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 11 Jul 2002 09:49:37 +0000 Subject: [PATCH] sendmail_thread can now send mail to addresses that have text after hostname. --- src/sbbs3/mailsrvr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c index 7284efb3f7..1148fa7280 100644 --- a/src/sbbs3/mailsrvr.c +++ b/src/sbbs3/mailsrvr.c @@ -2536,6 +2536,11 @@ static void sendmail_thread(void* arg) p=strrchr(to,'>'); /* Truncate '>' */ if(p!=NULL) *p=0; + /* truncate at first white-space char */ + p=to; + while(*p && *p>' ') p++; + *p=0; + p=strrchr(to,'@'); if(p==NULL) { lprintf("0000 !SEND INVALID destination address: %s", to); -- GitLab