chiark / gitweb /
qmail
18 years ago[PATCH] Rewrite ##X tags in headers of incoming messages
Mark Wooding [Tue, 14 Feb 2006 15:52:22 +0000 (15:52 +0000)]
[PATCH] Rewrite ##X tags in headers of incoming messages

Users of ezmlm lists sometimes do not know their subscription address
when they want to unsubscribe. Not all get the "Return-Path" header from
their delivery agent/MUA, and of the ones that do, many can still not
decipher the information. rfc2369 provides a standard way to supply
unsubscribe information. For the header to work optimally, it should
contain the command adapted to the subscriber's subscription address.

These patches enable qmail to replace tags with the subscribers address.
This is normally done ONLY in headers to avoid the risk of message
corruption.
If for some reason no substitution is done, the header remains in its
original form, which is harmless as far as message integrity is
concerned.

If any header starts with '#' this character is removed and substitution
will be extented into the body. This is safe since no legal header
starts
with '#'. It is assumed that for messages with this flag it is desired
that any tag in the message is substituted.

Assume: Subscriber=user@host, list=list@listhost.

and header added by ezmlm:
    List-Unsubscribe: <mailto:list-unsubscribe-##L=##H@listhost>

Then: Header after qmail processing:
      List-Unsubscribe: <mailto:list-unsubscribe-user=host@listhost>

18 years agoUpstream qmail 1.03 djb djb/1.03
Mark Wooding [Sun, 28 Jun 1998 14:46:53 +0000 (15:46 +0100)]
Upstream qmail 1.03

18 years agoUpstream qmail 1.01 djb/1.01
Mark Wooding [Wed, 18 Mar 1998 23:33:14 +0000 (23:33 +0000)]
Upstream qmail 1.01