[EMAIL PROTECTED] wrote:
Matt Sergeant writes:
On 21-Nov-06, at 10:57 PM, jwa wrote:

What is the correct way to rewrite the entire message body?

Probably easiest to write your own queue plugin that does what you need.

I'm guessing someone must have wanted to do more extensive body-rewriting before, so has there been some kind of official(ish) talk about adding such a feature (without one having to write a queue-plugin)?

As Matt suggested, it is almost certainly easier to write a queue plugin than to embed that functionality in the core. An MTA, as a rule, should never rewrite a message (other than appending new headers). On the other hand, a queue plugin can act as a LDA (local deliver agent) and can therefore do anything it wants to the message (which has basically been accepted for delivery at that point).

I took a look at serializing delivery (i.e. handling each recipient independently, which is what the OP was talking about doing) and it is surprisingly tricky to do right in the core (since you cannot accept for one rcpt and not the others). On the other hand, a queue plugin is pretty simple, since you are handed an already complete message; queue/maildir is an example (which doesn't actually serialize delivery).

John

Reply via email to