[vox-tech] procmail question: filtering message mangles headers
Henry House
hajhouse at houseag.com
Fri Oct 15 07:33:03 PDT 2004
I have the following procmail recipes to create a makeshift mailing list:
:0:
* ^To:.*m10-update
* !^X-Loop: m10 at houseag.com
* ^Received: from wotan.hajhouse.org # accept messages from my host only
{
:0c
updates.mbox
:0fh
| sed -e 's/^Subject: /Subject: \[M-10\] /'
:0
! `$HOME/_sendmails`
}
The first recipe in the bracketed block archives to a mailbox and the third
forwards the message to the list of addresses produced by the script
_sendmails.
The second recipe is supposed to tag the subject header of incoming messages to
make them easy for their recipients to identify, just a many mailing lists do.
It does not work! Instead the messages are mangled---the subject is completely
blank and the To: and From: headers are re-written. This does not happen when I
comment-out the second recipe.
Offhand, I see no reason for this difference in behavior either in the recipes
or in the logfile. Clearly I am missing some subtlety. Can anyone enlighten me?
--
Henry House
Please don't send me HTML mail! My mail system will reject it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ns1.livepenguin.com/pipermail/vox-tech/attachments/20041015/eafc93f5/attachment.bin
More information about the vox-tech
mailing list