-
Website
http://www.doughellmann.com/ -
Original page
http://www.doughellmann.com/projects/MailArchiveByDate/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
arthurk
1 comment · 1 points
-
grateful_user
1 comment · 1 points
-
abhishekworld
2 comments · 1 points
-
Doug Hellmann
89 comments · 3 points
-
FloridaHealthInsuranceQuotes
1 comment · 1 points
-
-
Popular Threads
-
Evaluating Tools for Developing with SOAP in Python - Doug Hellmann
4 days ago · 2 comments
-
Evaluating Tools for Developing with SOAP in Python - Doug Hellmann
MONTH=`date +%Y/%m`
YEAR=`date +%Y`
umask 022
:0 ic
* ? test ! -d $MAILDIR/$YEAR
| mkdir -p $MAILDIR/$YEAR
:0:
*
$MAILDIR/$MONTH
I had a huge backlog of emails to archive, and it felt too overwhelming to create the folders, etc. This script filed over 1,000 emails in under 5 minutes. OK, maybe 7 minutes when I take into account that I customized the name of the Archive folder (zArchive so it's not at the top of the email folders)