Thanks Timo, upgrading to v2.0 seems like a good move, and thanks for the example of doveadm, that makes me even happier I'm using Dovecot.
Do you know if Mandriva has released a v2.0 rpm package ? regards On 6 August 2010 21:36, Timo Sirainen <t...@iki.fi> wrote: > On 6.8.2010, at 4.16, emdeex wrote: > > > I want to search my Sent mail folder for all messages with a certain > > subject, then "grep" out a certain line that has a dollar ($) figure, and > > add up those figures. The idea is to just add up all the values of > quotes > > I've sent in a month. > > a) Do it via IMAP protocol by using some IMAP library for > Perl/Python/whatever. > > b) Upgrade to Dovecot v2.0.0 and do it via doveadm: > doveadm fetch body mailbox Sent subject something body $ | grep '\$' | etc > script processing > >