Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235204

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

From Ottavio Caruso <ottavio2006-usenet2012@yahoo.com>
Newsgroups linux.debian.user
Subject Re: Thunderbird: how can I set permanent custom headers?
Date 2021-05-15 10:10 +0200
Message-ID <CeXwZ-2Mz-1@gated-at.bofh.it> (permalink)
References <CeDyh-7nx-3@gated-at.bofh.it> <CeUpr-Lq-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-14 12:50 +0200
  Re: Thunderbird: how can I set permanent custom headers? Darac Marjal <mailinglist@darac.org.uk> - 2021-05-14 14:20 +0200
    Re: Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-14 17:10 +0200
  Re: Thunderbird: how can I set permanent custom headers? Bret Busby <bret@busby.net> - 2021-05-14 18:40 +0200
    Re: Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-14 21:20 +0200
      Re: Thunderbird: how can I set permanent custom headers? didier gaumet <didier.gaumet@gmail.com> - 2021-05-15 08:50 +0200
        Re: Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-15 09:50 +0200
      Re: Thunderbird: how can I set permanent custom headers? Jonathan Dowland <jon+debian-user@dow.land> - 2021-05-15 10:10 +0200
  Re: Thunderbird: how can I set permanent custom headers? davidson <davidson@freevolt.org> - 2021-05-15 06:50 +0200
    Re: Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-15 10:10 +0200
      Re: Thunderbird: how can I set permanent custom headers? <tomas@tuxteam.de> - 2021-05-15 10:20 +0200
      Re: Thunderbird: how can I set permanent custom headers? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-05-15 10:20 +0200

csiph-web