[Dovecot] Searching dovecot Maildir
Hi All,
Loving Dovecot after several years with Cyrus.
This might be more a general question, but this seemed the best place to ask.
The idea is to just add up all the values of quotes I've sent in a month.
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.
Can it be done?
Any help appreciated. regards, Murray
Dovecot 1.2.6
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
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 tss@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
Hmm. Last I heard, Mandriva died.. http://www.osnews.com/story/23276/Mandriva_S_A_For_Sale
If something happened since then, I've no idea.
On 7.8.2010, at 3.53, emdeex wrote:
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 tss@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
participants (2)
-
emdeex
-
Timo Sirainen