> ... what happens if you write something in front of a 100 MB or larger
> mail? 
> ... or several huge mails are processed at the same time?

I suggest a different solution:

Add two new hooks, one for texts leading the message, one for texts
trailing the message. The hooks would be called by the queue-plugin.
This completely eliminates the need to actually modify the body text
at any time, but the queue plugin will assemble the leading text,
the message and the trailing text just in time when writing to the
queue or whatever target.

Every module wishing to prepend or append text to the message would
register in this hook. The module can either create the text at a
previous hook-call (e.g. in rcpt-hook) and store it in the 
transaction or can create it on-the-fly when called by the queue
plugin.



Regards
Michael

-- 
      It's an insane world, but i'm proud to be a part of it. -- Bill Hicks

Reply via email to