Skip to content
Snippets Groups Projects
Commit 0abab021 authored by deuce's avatar deuce
Browse files

Add missint CRLF at end of From: header

parent 938a6b0f
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,13 @@ MsgBase.HeaderPrototype.get_rfc822_header=function(force_update)
this.rfc822 += "Date: "+this.date+"\r\n";
if(!this.from_net_type || this.from_net_addr.length==0) /* local message */
this.rfc822 += "From: " + this.from + " <" + this.from.replace(/ /g,".").toLowerCase() + "@" + system.inetaddr + ">";
this.rfc822 += "From: " + this.from + " <" + this.from.replace(/ /g,".").toLowerCase() + "@" + system.inetaddr + ">\r\n";
else if(!this.from_net_addr.length)
this.rfc822 += "From: " + this.from;
this.rfc822 += "From: " + this.from + "\r\n";
else if(this.from_net_addr.indexOf('@')!=-1)
this.rfc822 += "From: " + this.from+" <"+this.from_net_addr+">";
this.rfc822 += "From: " + this.from+" <"+this.from_net_addr+">\r\n";
else
this.rfc822 += "From: " + this.from+" <"+this.from.replace(/ /g,".").toLowerCase()+"@"+this.from_net_addr+">";
this.rfc822 += "From: " + this.from+" <"+this.from.replace(/ /g,".").toLowerCase()+"@"+this.from_net_addr+">\r\n";
this.rfc822 += "X-Comment-To: "+this.to+"\r\n";
if(this.path != undefined)
......
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