Skip to content
Snippets Groups Projects
Commit 09e01e8d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include format=flowed|fixed in the generated Content-Type header field

A bit of copy/paste from newsutil.js - we should probably merge this logic
at some point.
parent 20470203
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,8 @@ MsgBase.HeaderPrototype.get_rfc822_header=function(force_update, unfold, default ...@@ -124,7 +124,8 @@ MsgBase.HeaderPrototype.get_rfc822_header=function(force_update, unfold, default
} }
if(content_type==undefined && default_content_type !== false) { if(content_type==undefined && default_content_type !== false) {
var charset = this.text_charset || (this.is_utf8 ? "UTF-8" : "IBM437"); var charset = this.text_charset || (this.is_utf8 ? "UTF-8" : "IBM437");
this.rfc822 += "Content-Type: text/plain; charset=" + charset + "\r\n"; this.rfc822 += "Content-Type: text/plain; charset=" + charset + "; ";
this.rfc822 += "format=" + ((this.auxattr & MSG_FIXED_FORMAT) ? "fixed" : "flowed") + "\r\n";
this.rfc822 += "Content-Transfer-Encoding: 8bit\r\n"; this.rfc822 += "Content-Transfer-Encoding: 8bit\r\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment