Skip to content
Snippets Groups Projects
Commit 817058b7 authored by rswindell's avatar rswindell
Browse files

sendmail_thread can now send mail to addresses that have text after hostname.

parent 940478e6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment