cypht icon indicating copy to clipboard operation
cypht copied to clipboard

Declare Cypht as the mailer through the `User-Agent` and `X-Mailer` email headers

Open nekohayo opened this issue 1 year ago • 5 comments

🗣 Suggestion

From emails I have received from @marclaporte, I noticed that there seems to be no mail client identification string in the message headers when sent by Cypht.

If that is indeed the case, I think it would be good for Cypht to advertise itself in the metadata of outgoing emails. I suspect some email servers / filters might frown upon the lack of identification otherwise, but also, it makes troubleshooting more difficult.

Examples of such mail headers, that can be seen with Evolution's "View > All message headers" menu action:

  • User-Agent: Mozilla Thunderbird
  • X-Mailer: Usermin 2.102
  • X-Mailer: Microsoft Outlook 16.0
  • User-Agent: Evolution 3.51.1
  • User-Agent: Evolution 3.54.1 (3.54.1-1.fc41)
  • User-Agent: K-9 Mail for Android

As you can see, the industry is a bit of a mix from both (X-Mailer apparently is the old informal standard, and User-Agent seems to be the newer one, as evidenced by its popularity among FLOSS email clients), also observed in this old Thunderbird ticket. I suspect that you'll want to use at least User-Agent, though presumably using both at the same time wouldn't be a bad thing?

nekohayo avatar Nov 16 '24 01:11 nekohayo

From emails I have received from @marclaporte, I noticed that there seems to be no mail client identification string in the message headers when sent by Cypht.

If that is indeed the case, I think it would be good for Cypht to advertise itself in the metadata of outgoing emails. I suspect some email servers / filters might frown upon the lack of identification otherwise, but also, it makes troubleshooting more difficult.

Examples of such mail headers, that can be seen with Evolution's "View > All message headers" menu action:

  • User-Agent: Mozilla Thunderbird
  • X-Mailer: Usermin 2.102
  • X-Mailer: Microsoft Outlook 16.0
  • User-Agent: Evolution 3.51.1
  • User-Agent: Evolution 3.54.1 (3.54.1-1.fc41)
  • User-Agent: K-9 Mail for Android

As you can see, the industry is a bit of a mix from both (X-Mailer apparently is the old informal standard, and User-Agent seems to be the newer one, as evidenced by its popularity among FLOSS email clients), also observed in this old Thunderbird ticket. I suspect that you'll want to use at least User-Agent, though presumably using both at the same time wouldn't be a bad thing?

Sorry for the delay in responding, and thanks for pointing this out. At the moment Cypht does set:

X-Mailer: Cypht

in outgoing messages, but you’re right that we don’t also include a User-Agent header. I’ll add support for User-Agent: Cypht <version> and other in addition to X-Mailer so that both conventions are covered.

Shadow243 avatar Aug 20 '25 23:08 Shadow243

@Shadow243 seems like a good task to train a new dev...

marclaporte avatar Sep 01 '25 01:09 marclaporte

@Shadow243 seems like a good task to train a new dev...

Exactly, I’m creating it and asking for a volunteer.

Shadow243 avatar Sep 02 '25 14:09 Shadow243

@Shadow243 seems like a good task to train a new dev...

Exactly, I’m creating it and asking for a volunteer.

@Shadow243 Is the task already created ?

IrAlfred avatar Nov 27 '25 07:11 IrAlfred

@Shadow243 seems like a good task to train a new dev...

Exactly, I’m creating it and asking for a volunteer.

@Shadow243 Is the task already created ?

Yes, let me share with you

Shadow243 avatar Nov 27 '25 10:11 Shadow243