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

Updated From: headers to include user name separate from address.

parent e236abd9
No related branches found
No related tags found
No related merge requests found
......@@ -294,10 +294,12 @@ while(client.socket.is_connected) {
writeln(format("From: \"%s\" <%s@%s>"
,hdr.from,hdr.from,hdr.from_net_addr));
else if(hdr.from.indexOf(' ')>0)
writeln(format("From: \"%s\"@%s"
writeln(format("From: \"%s\" <\"%s\"@%s>"
,hdr.from
,hdr.from,system.inetaddr));
else
writeln(format("From: %s@%s"
writeln(format("From: \"%s\" <%s@%s>"
,hdr.from
,hdr.from,system.inetaddr));
writeln("Subject: " + hdr.subject);
writeln("Message-ID: " + hdr.id);
......
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