[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Thunderbird: how can I set permanent custom headers?



On 15/05/2021 05:47, davidson wrote:
On Fri, 14 May 2021 Ottavio Caruso wrote:
Hi,

For the lack of a dedicated Thunderbird mailing list, I am forced to ask here.

I am using Debian Buster. I have set up a custom header (X-no-archive)
using this guide:
https://www.lifewire.com/arbitrary-custom-heading-email-thunderbird-1173089

It works fine, but I have to click on the double arrows (top right) all the time and then type "Yes"

Is there a way to have this header with a default value "Yes" attached to all outgoing messages automatically?

I have no experience using Thunderbird, and next-to-no experience
using any mozilla product whatsoever. Caveat lector.

Sometimes I read stuff here, though:

  [a sort of wiki for mozilla things]
  http://kb.mozillazine.org/Knowledge_Base

Today the kb.mozillazine.org server seems to be having some trouble,
but there is this page at the wayback machine:

   Custom headers - MozillaZine Knowledge Base (archived 2020-02-03)
   Add custom headers
https://web.archive.org/web/20200429000209/http://kb.mozillazine.org/Custom_headers#Add_custom_headers

   [...]

   Thunderbird 1.5 added the ability to add a custom header to every
   message you send using a identity (From: address), without having to
   do anything when composing the message. It requires at least two
   preferences be added to prefs.js. One preference lists the name of
   the preferences that define each custom header for that
   identity. The others specify the custom header and the value. For
   example:

        user_pref("mail.identity.idN.headers", "archive");
        user_pref("mail.identity.idN.header.archive", "X-No-Archive: yes");

   where 'N' is the appropriate id number. Notice that while the custom
   header is X-No-Archive its defined using a different name. You could
   add two custom headers for id3 using:

        user_pref("mail.identity.id3.headers", "archive, gazette-tag");
        user_pref("mail.identity.id3.header.archive", "X-No-Archive: yes");
       user_pref("mail.identity.id3.header.gazette-tag", "X-gazette-tag: Bubba");

   You can look in prefs.js or use

     Tools -> Options -> Advanced -> General -> Config Editor

   to find the number of the identity. The simplest way to find the id
   value might be to search for the email address.
   mail.identity.id1.useremail for example contains my default email
   address.

My guess is it is probably not possible, but you never know. Thanks.

Good luck.

I added:

I added:


    user_pref("mail.identity.id1.headers", "archive");
    user_pref("mail.identity.id1.header.archive", "X-No-Archive: yes");
    user_pref("mail.identity.id2.headers", "archive");
    user_pref("mail.identity.id2.header.archive", "X-No-Archive: yes");
    user_pref("mail.identity.id3.headers", "archive");
    user_pref("mail.identity.id3.header.archive", "X-No-Archive: yes");
    user_pref("mail.identity.id4.headers", "archive");
    user_pref("mail.identity.id4.header.archive", "X-No-Archive: yes");

to prefs.js, let's see if that works.


--
Ottavio Caruso



Reply to: