Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

cwest
  (email not shown publicly)
http://caseywest.com/
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Monday October 06, 2003
10:59 AM

Sorting Mail

[ #15088 ]

A question was posed on grouping mail by date and sorting out to new mailboxes. This type of solution might be for a mailbox that has huge volume, hundreds of messages per day. This was the first solution I came up with before I was told the mail was on a remote IMAP server.

perl -MMail::Util=read_mbox -MMail::Audit -le'Mail::Audit->new(data=>$_)->accept("mail/%Y%m%d.mbox") foreach read_mbox shift' inbox.mbox

Then the mutt solution was provided by someone else. I'm always amazed at what mutt can do.

T ~d dd/mm/yy-dd/mm/yy

Posted from caseywest.com, comment here.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.