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

Tracker1's modification to replace spaces with underscores in e-mail address.

parent 454e0699
Branches
Tags
No related merge requests found
......@@ -312,14 +312,11 @@ while(client.socket.is_connected) {
if(hdr.from_net_type)
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\"@%s>"
,hdr.from
,hdr.from,system.inetaddr));
else
writeln(format("From: \"%s\" <%s@%s>"
,hdr.from
,hdr.from,system.inetaddr));
,hdr.from.replace(/ /g,"_")
,system.inetaddr));
writeln("To: " + hdr.to);
writeln("X-Comment-To: " + hdr.to);
writeln("Subject: " + hdr.subject);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment