[Dovecot] script to extract From: addresses
info at simonecaruso.com
Sun Jul 25 14:05:58 EEST 2010
On 25/07/2010 12:35, Iv Ray wrote:
> For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account. Then they are sent invitations to join our mailing list(s).
> I inherited this Dovecot server, I have not done anything with Dovecot before.
> Could you give me some direction on if/how can this be done?
> We run Dovecot 1.0.1 (dovecot --version)
> Thank you, Iv
In maildir i did something like:
foreach (files in maildir) as $i do
sed -n "s/^From.*<\(.*\)>$/\1/p" $i >> $outfile
More information about the dovecot