[Dovecot] Analyze the content of email after deliver

Timo Sirainen tss at iki.fi
Mon Dec 14 22:53:34 EET 2009


On Sun, 2009-12-13 at 23:34 +0100, Giovanni Mancuso wrote:
> I need to run a script that analyze the content of the email, after the
> "deliver" has delivered the email.

Why does it have to be after? Anyway, instead of running deliver you
could run a script that just calls deliver and then analyzes the mail.
Something like:

#!/bin/sh

file=/tmp/mail.$$
cat > $file
deliver < $file
analyze-contents $file
rm -f $file

That's a pretty bad script, but something similar should work.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091214/bde23dac/attachment.bin 


More information about the dovecot mailing list