Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

130 views
Skip to first unread message

Darac Marjal

unread,
May 14, 2021, 8:20:05 AM5/14/21
to

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
>
>

OpenPGP_signature

Bret Busby

unread,
May 14, 2021, 12:40:05 PM5/14/21
to
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)
..............

Marc Auslander

unread,
May 14, 2021, 12:40:05 PM5/14/21
to
Ottavio Caruso <ottavio2006...@yahoo.com> writes:

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

try alt.comp.software.thunderbird

Ottavio Caruso

unread,
May 14, 2021, 3:20:04 PM5/14/21
to
Groups.io are not official Thunderbird mailing lists. Anybody can create
a Debian-devel mailing list on groups.io.

--
Ottavio Caruso

Ottavio Caruso

unread,
May 14, 2021, 3:30:04 PM5/14/21
to
It's not available at my server (eternal September).

--
Ottavio Caruso

davidson

unread,
May 15, 2021, 12:50:04 AM5/15/21
to
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

didier gaumet

unread,
May 15, 2021, 2:50:05 AM5/15/21
to
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

Jonathan Dowland

unread,
May 15, 2021, 4:10:04 AM5/15/21
to
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
jm...@debian.org
🔗 https://jmtd.net

to...@tuxteam.de

unread,
May 15, 2021, 4:20:04 AM5/15/21
to
[...]

> 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.2...@azone.org>
| Content-Language: en-GB

...so it seems to work.

Cheers
- t
signature.asc
0 new messages