Bug 65794: Some attachments (like text/plain, text/html) get Content-Disposition: inline (incorrect). Change the default pref to use Content-Disposition: attachment. r+sr=bienvenu
authorMagnus Melin <mkmelin@iki.fi>
Mon, 25 Aug 2008 18:56:55 +0300
changeset 188 e76298201107099d6c7bd04b3b4b22fb5e9f54ff
parent 187 e4f3e00f232436df371037408541e07b869fa791
child 189 2ada299121f9992d0480eda0174a4418c91220e9
push idunknown
push userunknown
push dateunknown
bugs65794
Bug 65794: Some attachments (like text/plain, text/html) get Content-Disposition: inline (incorrect). Change the default pref to use Content-Disposition: attachment. r+sr=bienvenu
mailnews/mailnews.js
--- a/mailnews/mailnews.js
+++ b/mailnews/mailnews.js
@@ -616,17 +616,20 @@ pref("mail.biff.play_sound.url", "");
 pref("mail.biff.show_alert", true);
 pref("mail.biff.show_tray_icon", true); // currently Windows-only
 pref("mail.biff.animate_dock_icon", false);
 #ifdef MOZ_SUITE
 // if true, check for new mail even when opening non-mail windows
 pref("mail.biff.on_new_window", true);
 #endif
 
-pref("mail.content_disposition_type", 0);
+// Content disposition for attachments (except binary files and vcards).
+//   0= Content-Disposition: inline
+//   1= Content-Disposition: attachment
+pref("mail.content_disposition_type", 1);
 
 pref("mailnews.show_send_progress", true); //Will show a progress dialog when saving or sending a message
 pref("mail.server.default.retainBy", 1);
 
 pref("mailnews.ui.junk.firstuse", true);
 pref("mailnews.ui.junk.manualMarkAsJunkMarksRead", true);
 
 pref("mailnews.use_received_date", false);