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


Groups > linux.debian.user > #235180 > unrolled thread

Thunderbird: how can I set permanent custom headers?

Started byOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
First post2021-05-14 12:50 +0200
Last post2021-05-15 10:20 +0200
Articles 12 — 7 participants

Back to article view | Back to linux.debian.user


Contents

  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

#235180 — Thunderbird: how can I set permanent custom headers?

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-14 12:50 +0200
SubjectThunderbird: how can I set permanent custom headers?
Message-ID<CeDyh-7nx-3@gated-at.bofh.it>
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?

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

  --
Ottavio Caruso

[toc] | [next] | [standalone]


#235182

FromDarac Marjal <mailinglist@darac.org.uk>
Date2021-05-14 14:20 +0200
Message-ID<CeEXo-8kN-5@gated-at.bofh.it>
In reply to#235180

[Multipart message — attachments visible in raw view] — view raw

On 14/05/2021 11:44, 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?
>
> My guess is it is probably not possible, but you never know. Thanks.

One way to do this would be to run your own Mail Transfer Agent (MTA)
such as exim, postfix etc. This would become the SMTP server to which
Thunderbird passes the message. You would configure the MTA to add the
required header and then forward all messages to the next SMTP  erver
(which is probably your ISP's SMTP server). This MTA could, conceivably,
run on the same host as Thunderbird (e.g. a laptop).

For postfix, for example, you would read
http://www.postfix.org/STANDARD_CONFIGURATION_README.htm to get started.
The header addition would be achieved either with PREPEND header_check
(http://www.postfix.org/header_checks.5.html) or by configuring the
AlterMIME milter (http://www.postfix.org/header_checks.5.html) in the
case that you feel like you might want to do more mail manipulation later.


>
> -- 
> Ottavio Caruso
>
>

[toc] | [prev] | [next] | [standalone]


#235187

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-14 17:10 +0200
Message-ID<CeHBT-1tE-1@gated-at.bofh.it>
In reply to#235182
On 14/05/2021 13:14, Darac Marjal wrote:
> 
> On 14/05/2021 11:44, 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?
>>
>> My guess is it is probably not possible, but you never know. Thanks.
> 
> One way to do this would be to run your own Mail Transfer Agent (MTA)
> such as exim, postfix etc. This would become the SMTP server to which
> Thunderbird passes the message. You would configure the MTA to add the
> required header and then forward all messages to the next SMTP  erver
> (which is probably your ISP's SMTP server). This MTA could, conceivably,
> run on the same host as Thunderbird (e.g. a laptop).
> 
> For postfix, for example, you would read
> http://www.postfix.org/STANDARD_CONFIGURATION_README.htm to get started.
> The header addition would be achieved either with PREPEND header_check
> (http://www.postfix.org/header_checks.5.html) or by configuring the
> AlterMIME milter (http://www.postfix.org/header_checks.5.html) in the
> case that you feel like you might want to do more mail manipulation later.
> 

Thanks. But there is a problem with that. I also need the 
"X-no-archive:yes" for Usenet posts.

I'm actually posting this through Gmane and having my own smtp server 
won't do the job.


-- 
Ottavio Caruso

[toc] | [prev] | [next] | [standalone]


#235192

FromBret Busby <bret@busby.net>
Date2021-05-14 18:40 +0200
Message-ID<CeJ10-2a9-3@gated-at.bofh.it>
In reply to#235180
On 14/5/21 6:44 pm, 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?
> 
> My guess is it is probably not possible, but you never know. Thanks.
> 
>   --
> Ottavio Caruso
> 
> 

Did you search for a thunderbird mailing list, before saying that none 
exist?

https://groups.io/g/ThunderbirdEmail

https://groups.io/g/thunderbird


-- 
Bret Busby
Armadale
West Australia
(UTC+0800)
..............

[toc] | [prev] | [next] | [standalone]


#235196

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-14 21:20 +0200
Message-ID<CeLvP-3IC-1@gated-at.bofh.it>
In reply to#235192
On 14/05/2021 17:12, Bret Busby wrote:
> On 14/5/21 6:44 pm, 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?
>>
>> My guess is it is probably not possible, but you never know. Thanks.
>>
>>   --
>> Ottavio Caruso
>>
>>
> 
> Did you search for a thunderbird mailing list, before saying that none 
> exist?
> 
> https://groups.io/g/ThunderbirdEmail
> 
> https://groups.io/g/thunderbird
> 
> 


Groups.io are not official Thunderbird mailing lists. Anybody can create 
a Debian-devel mailing list on groups.io.

-- 
Ottavio Caruso

[toc] | [prev] | [next] | [standalone]


#235202

Fromdidier gaumet <didier.gaumet@gmail.com>
Date2021-05-15 08:50 +0200
Message-ID<CeWhz-1SF-1@gated-at.bofh.it>
In reply to#235196
Le 14/05/2021 à 21:13, Ottavio Caruso a écrit :

> Groups.io are not official Thunderbird mailing lists. Anybody can create 
> a Debian-devel mailing list on groups.io.

Hello,

You may ask a question on the Thunderbird official forum there:
https://support.mozilla.org/en-US/questions/new

[toc] | [prev] | [next] | [standalone]


#235203

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-15 09:50 +0200
Message-ID<CeXdD-2q0-1@gated-at.bofh.it>
In reply to#235202
On 15/05/2021 07:41, didier gaumet wrote:
> Le 14/05/2021 à 21:13, Ottavio Caruso a écrit :
> 
>> Groups.io are not official Thunderbird mailing lists. Anybody can 
>> create a Debian-devel mailing list on groups.io.
> 
> Hello,
> 
> You may ask a question on the Thunderbird official forum there:
> https://support.mozilla.org/en-US/questions/new

Thanks, but the web sucks and I'm in the [difficult, probably 
impossible] process of de-webbing and de-forumizing myself.

I hope this also explains why I don't want Google to index my posts.


-- 
Ottavio Caruso

[toc] | [prev] | [next] | [standalone]


#235205

FromJonathan Dowland <jon+debian-user@dow.land>
Date2021-05-15 10:10 +0200
Message-ID<CeXwZ-2Mz-3@gated-at.bofh.it>
In reply to#235196
On Fri, May 14, 2021 at 08:13:56PM +0100, Ottavio Caruso wrote:
>Groups.io are not official Thunderbird mailing lists. Anybody can 
>create a Debian-devel mailing list on groups.io.

debian-user is not an official Thunderbird list either. At least
everyone on those groups.io lists will be familiar with Thunderbird.


-- 
Please do not CC me, I am subscribed to the list.

👱🏻	Jonathan Dowland
✎	 jmtd@debian.org
🔗	https://jmtd.net

[toc] | [prev] | [next] | [standalone]


#235201

Fromdavidson <davidson@freevolt.org>
Date2021-05-15 06:50 +0200
Message-ID<CeUpr-Lq-1@gated-at.bofh.it>
In reply to#235180
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.

-- 
Ce qui est important est rarement urgent
et ce qui est urgent est rarement important
-- Dwight David Eisenhower

[toc] | [prev] | [next] | [standalone]


#235204

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-15 10:10 +0200
Message-ID<CeXwZ-2Mz-1@gated-at.bofh.it>
In reply to#235201
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

[toc] | [prev] | [next] | [standalone]


#235206

From<tomas@tuxteam.de>
Date2021-05-15 10:20 +0200
Message-ID<CeXGF-2PJ-1@gated-at.bofh.it>
In reply to#235204

[Multipart message — attachments visible in raw view] — view raw

[...]

> I added:
> 
> 
>     user_pref("mail.identity.id1.headers", "archive");
>     user_pref("mail.identity.id1.header.archive", "X-No-Archive: yes");

[...]

I quote part of the headers I see in your mail:

 | User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 |         Thunderbird/78.3.1
 | X-No-Archive: yes
 | In-Reply-To: <alpine.DEB.2.21.2105150359430.1534@azone.org>
 | Content-Language: en-GB

...so it seems to work.

Cheers
 - t

[toc] | [prev] | [next] | [standalone]


#235207

FromOttavio Caruso <ottavio2006-usenet2012@yahoo.com>
Date2021-05-15 10:20 +0200
Message-ID<CeXGG-2PJ-9@gated-at.bofh.it>
In reply to#235204
On 15/05/2021 09:07, Ottavio Caruso wrote:
> 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.
> 


Apparently it does! Thanks davidson!

-- 
Ottavio Caruso

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web