[Dovecot] Searching dovecot Maildir
Timo Sirainen
tss at iki.fi
Fri Aug 6 14:36:39 EEST 2010
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
More information about the dovecot
mailing list