Commit 3debdf8c authored by rswindell's avatar rswindell
Browse files

Look-up 'to' and 'from' user numbers automatically if not specified on the

command-line (the 'to' is only looked-up for the 'mail' base).
parent fdb86052
......@@ -124,7 +124,10 @@ if(!hdrs.from)
hdrs.from = prompt("From User name");
hdrs.subject = prompt("Subject");
if(!hdrs.to_ext && sub_code == 'mail')
hdrs.to_ext = system.matchuser(;
hdrs.from_ext = system.matchuser(hdrs.from);
if(!msgbase.save_msg(hdrs, body)) {
alert("Error saving message: " + msgbase.last_error);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment