Comment 9 for bug 119441

Revision history for this message
In , Eric-moret-epita (eric-moret-epita) wrote :

Created an attachment (id=208434)
Adding corporate reply header option

Patch against CVS HEAD on 01/13/2006

Description:
This patch adds support for corporate reply headers. When changing your user.js file as below, and setting mailnews.reply_header_type to 4, the reply header should look like:

From: [author]
Sent: [date]
To: [to]
Cc: [cc]
Subject: [subject]

$ cat user.js
// Change the reply header
// 0 - No Reply-Text
// 1 - "[Author] wrote:"
// 2 - "On [date] [author] wrote:"
// 3 - "[author] said the following on [date]:"
// 4 - "From: [author]
// Sent: [date]
// To: [to]
// Cc: [cc]
// Subject: [subject]"
// 5 - User-defined reply header. Use the prefs below in conjunction with
// this:
user_pref("mailnews.reply_header_type", 4);

// If you set 5 for the pref above then you may set the following prefs.
user_pref("mailnews.reply_header_authorwrote", "%s said the following");
user_pref("mailnews.reply_header_ondate", "on %s");
user_pref("mailnews.reply_header_separator", " ");
user_pref("mailnews.reply_header_colon", ":");
// The end result will be [authorwrote][separator][ondate][colon]

Caveat: This patch does not resolve recipients (To:) nor cc list (Cc:) to user names, it just dumps what's in the corresponding smtp header field without further processing.