Bug 411728

Summary: Messageid is leaking hostname
Product: [Applications] kmail2 Reporter: sedrubal <kde>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: montel, thomas
Priority: NOR    
Version: 5.11.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description sedrubal 2019-09-08 19:40:40 UTC
SUMMARY
kmail generates message IDs using a random string and @<hostname>. There may be cases where you don't want to tell your hostname.

STEPS TO REPRODUCE
1. Write an E-Mail
2. Send it
3. Inspect its sources

OBSERVED RESULT

The Message-ID is something like <$random@$hostname>

EXPECTED RESULT

There should be at least an option to make the message id anonymous.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 30
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Additionally it would be great to hide the following headers:
- X-KMail-Identity
- X-KMail-Transport
- X-KMail-Fcc
- X-KMail-Identity-Name
- X-KMail-Transport-Name
Comment 1 Laurent Montel 2019-09-09 04:48:50 UTC
ADDITIONAL INFORMATION
Additionally it would be great to hide the following headers:
- X-KMail-Identity
- X-KMail-Transport
- X-KMail-Fcc
- X-KMail-Identity-Name
- X-KMail-Transport-Name
it's removed when we send email. It's just keep when it's stored in local.
So this one are not a problem.
Comment 2 Thomas Monjalon 2020-04-06 17:22:56 UTC
The Message-ID can be tuned:

Settings / Configure KMail / Composer / Headers
"Use custom Message-ID suffix"