"Format replies not to disclose additional information such as locale"

Commit imported (before being adjusted) from CHEF-KOCH/TBCK project, external contribution by @komachi

Co-authored-by: Anton Nesterov <anton@nesterov.cc>
This commit is contained in:
Samuel FORESTIER 2020-11-04 10:43:38 +01:00
parent 8591d9b2c8
commit 5ee06c6d89
1 changed files with 11 additions and 0 deletions

11
user.js
View File

@ -1526,6 +1526,17 @@ user_pref("mailnews.send_default_charset", "UTF-8");
/* 6104: Forces encoding in reply to be the default charset /* 6104: Forces encoding in reply to be the default charset
* [1] https://bugzilla.mozilla.org/show_bug.cgi?id=234958#c2 ***/ * [1] https://bugzilla.mozilla.org/show_bug.cgi?id=234958#c2 ***/
user_pref("mailnews.reply_in_default_charset", true); user_pref("mailnews.reply_in_default_charset", true);
/* 6105: Avoid information leakage in reply header
* Reply header may contain sensitive information about system locale (date and/or language)
* 0=no header
* 1="<author> wrote:" (see `reply_header_authorwrotesingle` below)
* 2="On <date> <author> wrote:" (see `reply_header_ondateauthorwrote` below [DEFAULT])
* 3="<author> wrote On <date>:" (see `reply_header_authorwroteondate` below`)
* 4=user specified (you may use below tokens to forge your own format [DISCOURAGED]) ***/
user_pref("mailnews.reply_header_type", 1);
user_pref("mailnews.reply_header_authorwrotesingle", "#1 wrote:");
// user_pref("mailnews.reply_header_ondateauthorwrote", "On #2 #3, #1 wrote:");
// user_pref("mailnews.reply_header_authorwroteondate", "#1 wrote on #2 #3:");
/** COMPOSITION ***/ /** COMPOSITION ***/
/* 6110: Check spelling before sending [SETUP-FEATURE] /* 6110: Check spelling before sending [SETUP-FEATURE]