14 Dec
2009
14 Dec
'09
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.