[Dovecot] Analyze the content of email after deliver
14 Dec
2009
14 Dec
'09
12:34 a.m.
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
14 Dec
14 Dec
10:53 p.m.
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.
5457
Age (days ago)
5458
Last active (days ago)
1 comments
2 participants
participants (2)
-
Giovanni Mancuso
-
Timo Sirainen