{"id":392,"date":"2010-02-25T13:22:30","date_gmt":"2010-02-25T13:22:30","guid":{"rendered":"http:\/\/blog.stmellion.org\/?p=392"},"modified":"2010-02-25T13:22:30","modified_gmt":"2010-02-25T13:22:30","slug":"maildir-archive","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=392","title":{"rendered":"Maildir Archive"},"content":{"rendered":"<p>Recently I&#8217;ve become aware of how big my Maildir mailboxes are getting.  I keep a running record of much of my correspondence and don&#8217;t want to delete it but at the same time I don&#8217;t want to load every message each time I open a mailbox.  Google came up with a couple of archive scripts but they tended to rely on the file date rather than checking the actual Date header from within the mail file.  As a solution, I produced <a href='https:\/\/blog.stmellion.org\/wp-content\/uploads\/2010\/02\/archive.py'>this little Python script.<\/a><\/p>\n<p>Usage:<br \/>\narchive.py path\/to\/maildir [path\/to\/maildir]&#8230;<\/p>\n<p>This defaults to archiving any messages over 365 days old.  I&#8217;m sure even the non-Python people can see how to change this in the script!  Messages are archived to path\/to\/maildir\/archive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I&#8217;ve become aware of how big my Maildir mailboxes are getting. I keep a running record of much of my correspondence and don&#8217;t want to delete it but at the same time I don&#8217;t want to load every message each time I open a mailbox. Google came up with a couple of archive scripts&hellip; <a class=\"more-link\" href=\"https:\/\/blog.stmellion.org\/?p=392\">Continue reading <span class=\"screen-reader-text\">Maildir Archive<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":5,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/397"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}