[Dovecot] script to extract From: addresses

Iv Ray pobox at verysmall.org
Mon Jul 26 02:16:18 EEST 2010


On 25.07.2010, at 18:07, Iv Ray wrote:
> On 25.07.2010, at 13:03, Jerry wrote:
>> On Sun, 25 Jul 2010 12:35:46 +0200
>> Iv Ray <pobox at verysmall.org> articulated:
>> 
>>> 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
>> 
>> For starters, you should update your version of Dovecot; it is
>> deprecated.
> 
> Yes, I'll have to do this, as well.
> 
> Is it straightforward or shall I prepare myself for hard work?
> 
>> Second, are you looking for a Perl script, I would assume
>> so, or something else?
> 
> I do not expect to find a ready script. I am rather looking for some hints on how to script the operation.
> 
> Iv

Thank you all for your help and tips!

Eventually I ended up writing a small php script using the PHP IMAP functions, which are quite good for extracting overview information. An 11 GB e-mail account was screened in about 15 minutes over the internet.

Iv


More information about the dovecot mailing list