I am converting some scripts from Procmail. I want to deliberately
remove some headers in my message if they exist, actually, I
specifically want only a particular set of headers to remain. So I
expect to be able to do something like this:
xfilter "/usr/bin/reformail -X'From ' -XFrom: -XSubject: -XDate:
-XMessage-Id -XTo: -XCc: -XReply-To: -k"
However, the "-k" option doesn't kick in unless it's an autoreply.
Also, any use of the "-X" kills the body of the message completely....
Now, I feel I am fighting the tool because the alternatives seem to be
to use formail, or to start copying the body of the message to a file,
and a bunch of cat's to get it back again afterwards... However, the
whole point of switching to maildrop (apart from vusers) was to avoid
some extra processes getting fired up so this seems like a bad solution.
I feel I am missing something simple here? I really need to get this
sorted ASAP, but in the longer term if this is a "bug" then I am happy
to try and code up a patch so I can stick with maildir (pointers to
relevant chunk of code appreciated!)
Thanks
Ed W
P.S. Maildrop is version 1.70