[an error occurred while processing this directive]
[an error occurred while processing this directive]

Mozilla Mailnews FAQ

Last updated on November 3, 2004.

How can I add the "X-No-Archive" header to my messages?

Mozilla 1.5 and up
Implemented in Mozilla 1.5, you can add header lines to every message sent out via a certain identity.
This requires at least 2 user.js lines.
user_pref("mail.identity.id#.headers", "whatever");
user_pref("mail.identity.id#.header.whatever", "X-No-Archive: yes");

Put your identity number in place of the "#". You can look in your prefs.js or enter about:config in the Mozilla browser to find out the number of the identity you want to add the line to.
"whatever" is simply a description. You can put whatever word you want there, as long is it is the same word you use in the line that actually contains the header you want to add.
For example:
user_pref("mail.identity.id3.headers", "archive,secret");
user_pref("mail.identity.id3.header.archive", "X-No-Archive: yes");
user_pref("mail.identity.id3.header.secret", "X-Secret-Word: Mozilla");

All versions
There are a couple of ways to do it.
1. Add this line to your user.js:
user_pref("mail.compose.other.header", "X-No-Archive");

This will add X-No-Archive to the list of header fields (TO:, CC:, Newsgroup:, etc.) Call it up, and type "yes" (without quotes) in the field.

To add more than one custom header to the list, you must add it to the same user.js line. For example:
user_pref("mail.compose.other.header", "X-No-Archive,X-Secret-Word");

2. (recommended) Download Mnenhy, which will allow you to add such headers via the user interface.

 

[an error occurred while processing this directive]