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

Reply via email to