Skip to content
Snippets Groups Projects
Commit 81ac0c32 authored by rswindell's avatar rswindell
Browse files

Added simple mod to route mail for user@QWKID@hostname over QWKnet

(doesn't yet work for routing to uplinks).
parent d2f8adce
No related branches found
No related tags found
No related merge requests found
......@@ -2599,6 +2599,15 @@ static void smtp_thread(void* arg)
}
usernum=0; /* unknown user at this point */
tp=strrchr(p,'@'); /* Double-@? Routed QWKnet mail? */
if(tp!=NULL) {
*tp=0;
SAFECOPY(rcpt_addr,p);
p=tp+1;
no_forward=TRUE;
}
if(startup->options&MAIL_OPT_ALLOW_RX_BY_NUMBER
&& isdigit(*p)) {
usernum=atoi(p); /* RX by user number */
......
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