I have an incoming message which contains a header I want to remove before passing it on to the addressee (using a Forwarding Rule).
So I want to create a filter which recognises this is a message I need to fix. and which uses the "Pipe to a Program" option. I then have to provide a script which accepts this message on stdin, but I must not write anything to stdout because that would signify the message was to be discarded. I can easily edit the message to remove the offending header (I would probably use awk), but where do I then output it to so that it gets sent?
(And if you want to know why I want to remove a header, it is the X-Ham-Report which cpanel inserts after usinfgSpamassassin, and is incompliant with RFC 5322 - but that is another story
)
So I want to create a filter which recognises this is a message I need to fix. and which uses the "Pipe to a Program" option. I then have to provide a script which accepts this message on stdin, but I must not write anything to stdout because that would signify the message was to be discarded. I can easily edit the message to remove the offending header (I would probably use awk), but where do I then output it to so that it gets sent?
(And if you want to know why I want to remove a header, it is the X-Ham-Report which cpanel inserts after usinfgSpamassassin, and is incompliant with RFC 5322 - but that is another story