Giovanni Mancuso
2009-Dec-13 22:34 UTC
[Dovecot] Analyze the content of email after deliver
Hi, I need to run a script that analyze the content of the email, after the "deliver" has delivered the email. CAn i do it with dovecot? Thanks
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: signature.asc 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-0002.bin>