On Wed, April 4, 2007 15:14, Mark Martinec wrote:

>> Even if it did work, it's still two SQL queries per mail, one being an
>> update, but that's something I can live with - I think.
>
> It is in two parts (insert and update) because this way we can guarantee
> the generated mail-id is unique among the set of records in a database.
> Generating mail-id must be done very early during processing,
> but information becomes available only late, which is why an update is done
> late.

Looking at the latest release notes, it would appear the optimal way would
be to access the hook mail_done(), and simply connect to a mysql server,
insert the data you want, and disconnect.

I'm curious how much data mail_done() actually returns or can access, but
I'll snoop around in that later :)

Thanks for the help and the additions
// Tom


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to