Skip to content

Commit

Permalink
"Format replies not to disclose additional information such as locale"
Browse files Browse the repository at this point in the history
Commit imported (before being adjusted) from CHEF-KOCH/TBCK project, external contribution by @komachi

Co-authored-by: Anton Nesterov <[email protected]>
  • Loading branch information
Samuel FORESTIER and komachi committed Nov 4, 2020
1 parent 8591d9b commit 5ee06c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,17 @@ user_pref("mailnews.send_default_charset", "UTF-8");
/* 6104: Forces encoding in reply to be the default charset
* [1] https://bugzilla.mozilla.org/show_bug.cgi?id=234958#c2 ***/
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 ***/
/* 6110: Check spelling before sending [SETUP-FEATURE]
Expand Down

0 comments on commit 5ee06c6

Please sign in to comment.