On Tue, Feb 10, 2004 at 04:39:12PM +0100, Julian Mehnle wrote:
Anand Buddhdev [ar...@anand.org] wrote:
Sam once suggested that your filter could mark the current message as
"done" ie. mark all recipients as delivered, and instead inject a new
message into the queue, with the headers you want added in. This is
still a kind of hack, but saves you from having to create additional
directories, and having to add headers later with maildrop.
IIRC, a courierfilter can't "mark all recipients as delivered", only
a delivery instruction (in a dot-courier file) can.
I think you're wrong. A filter *can* modify a control file.
So, what significant difference is there between marking all
recipients as delivered plus resubmitting the message *in a delivery
instruction* (e.g. in a maildrop script) and just modifying the
message *in a delivery instruction* (e.g. in a maildrop script)?
Maildrop cannot modify the control file. And adding headers to a copy
of a message being delivered to multiple users uses more resources
than doing it once at message reception time.
It would be so nice if courier allowed adding,removing or modifying
message headers at filter-time.