in reply to Re: moving files in a dir (Maildir) depending on Date
in thread moving files in a dir (Maildir) depending on Date

Hi Monks!
You guessed it, i got another Mail related "problem":

If i want to sort some mails depending on the message id,
should i grep for the message id through all (Maildir) files or would it be better to use something like:
Email::abstract
get_header
http://search.cpan.org/~rjbs/Email-Abstract-2.134/lib/Email/Abstract.pm#get_header

The same would be for the header: "LIST-ID" field of some mailing lists,
that are unfortunately lurking in my inbox cause i adjusted the filter later?

I found a maybe related thread but i am not sure if i could use this, since it seems for mbox, but i dont understand it, completely to be honest:

Reaping messages by Message-ID

What about performance? is the cpan module ressource friendlier or the standard grep method.

Or am i completely on the wrong path and you suggest something different.
Some code which i could adjust to my needs would be appreciated.
Thanks for your patience
  • Comment on Re^2: moving files in a dir (Maildir) depending on Date