Skip to content
Snippets Groups Projects
Commit 4c9a76af authored by rswindell's avatar rswindell
Browse files

Don't set the to_ext field if there's a destination netmail address

specified on the command-line (-n option). This also would have fixed
Nelgin's issue with this script.
parent c710dddf
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ if(!hdrs.from)
if(!hdrs.subject)
hdrs.subject = prompt("Subject");
var num;
if(!hdrs.to_ext && sub_code == 'mail' && (num = system.matchuser(hdrs.to)) != 0)
if(!hdrs.to_ext && sub_code == 'mail' && !hdrs.to_net_addr && (num = system.matchuser(hdrs.to)) != 0)
hdrs.to_ext = num;
if(!hdrs.from_ext && (num = system.matchuser(hdrs.from)) != 0)
hdrs.from_ext = num;
......
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