Add -O filename option which activates passthrough mode and instead of
writing a copy of the input mail to the standard output with an X-Bogosity header
does the same but the message is wrtitten to 'filename'
This patch is to allow use of bogofilter in exim MTA without the need to
reinject the message back to Exim. (because exim pipe transport does
not support redirection).
Now you can use bogofilter with exim in passtrough mode with a pipe
transport (that will substitute the appendfile transport used to deliver
messages to user mailboxes). It assumes that messages are stored
directly by Exim (not using procmail, maildrop or similar) and that the
storage is of type maildir. A transport like that could be used:
driver = pipe
command = /usr/local/bin/bogofilter -e -O FILENAME
prefix = ""
suffix = ""
return_output = true
user = exim
group = mail
where FILENAME has to be a unique filename inside the user mailbox 'new' directory, i.e