remail: Make From header mangling less convoluted

Due to the requirement to reencrypt the incoming mail, remail must rewrite
the mail headers and create a new email with the 'From:' header being the
list address. So remail implemented a scheme to mangle the original senders
name into the reencrypted mails 'From:' header.

That fell flat on its nose when there was an incoming mail which had no
name part and just consisted of the actual email address. Instead of
differentiating between these cases the authors sleep deprived and grump
laden brain decided to implement 'From:' mangling in the way it is now.

It converts the original sender mail address '[Name]
<mailname@sender.domain>' to:

  'list-name for mailname_at_sender.domain' <list-name@list.domain>

This is hard to read and follow. 

Use the common format:

  'Name via list-name' <list-name@list.domain>

Except for the case where the original 'From:' header is a plain email
address without a name. This will mangle it to:

  'mailname at sender.domain via list-name' <list-name@list.domain>

The 'via list-name' add on is technically not required but is useful to
visually differentiate the name in auto-completion.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 file changed
tree: 55d6157dac314b2142ef4bfc1c494e7bf8b3f45d
  1. Documentation/
  2. LICENSES/
  3. remail/
  4. .gitignore
  5. __init__.py
  6. COPYING
  7. README.md
  8. remail.service
  9. remail_chkcfg
  10. remail_daemon
  11. remail_pipe
  12. requirements.txt
  13. TODO
README.md

remail - A set of tools for crypted mailing lists

A simplistic but powerfull crypted mailing list tool set. The following tools are available:

remail_daemon - The crypto mailing list processor remail_chkcfg - Tool to check the configuration

Install

It's recommended to generate the appropriate package for your system and install it via the package manager.

Usage

See Documentation and man pages