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

Added additional bool parameter to msgbase get_msg_body call to enable rfc822

encoding of message text.
parent 236d6ccc
Branches
Tags
No related merge requests found
......@@ -232,6 +232,7 @@ for(i in area) {
body = msgbase.get_msg_body(false, ptr
,true /* remove ctrl-a codes */
,true /* rfc822 formatted text */
,true /* include tails */);
if(body == null) {
printf("!FAILED to read message number %ld",ptr);
......@@ -262,20 +263,15 @@ for(i in area) {
,hdr.from
,antispam,hdr.from_net_addr));
else
writeln(format("From: \"%s\" <%s%s@%s%s>"
writeln(format("From: \"%s\" <%s@%s%s>"
,hdr.from
,antispam,hdr.from
,hdr.from.replace(/ /g,"_")
,antispam,hdr.from_net_addr));
}
else if(hdr.from.indexOf(' ')>0)
writeln(format("From: \"%s\" <\"%s%s\"@%s%s>"
,hdr.from
,antispam,hdr.from
,antispam,system.inetaddr));
else
writeln(format("From: \"%s\" <%s%s@%s%s>"
writeln(format("From: \"%s\" <%s@%s%s>"
,hdr.from
,antispam,hdr.from
,hdr.from.replace(/ /g,"_")
,antispam,system.inetaddr));
writeln("To: " + hdr.to);
writeln("X-Comment-To: " + hdr.to);
......
......@@ -296,7 +296,8 @@ while(client.socket.is_connected) {
hdr=msgbase.get_msg_header(false,current_article);
if(cmd[0].toUpperCase()!="HEAD")
body=msgbase.get_msg_body(false,current_article
,true /* remove ctrl-a codes */);
,true /* remove ctrl-a codes */
,true /* rfc822 formatted text */);
/* Eliminate dupe loops
if(user.security.restrictions&UFLAG_Q && hdr!=null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment