<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Doug Hellmann - Latest Comments in MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.disqus.com/</link><description></description><atom:link href="https://doughellmann.disqus.com/mailarchivebydate_sort_mailapp_messages_into_archive_folders/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 18 Apr 2010 16:50:31 -0000</lastBuildDate><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-45408475</link><description>&lt;p&gt;I don't have access to Snow Leopard, so it's possible something about the script just doesn't work there. You might be able to learn something by running the script in Script Editor with the log enabled.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 18 Apr 2010 16:50:31 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-45406261</link><description>&lt;p&gt;Hi Doug, I running Snow Leopard, &lt;a href="http://Mail.app" rel="nofollow noopener" target="_blank" title="Mail.app"&gt;Mail.app&lt;/a&gt; is Version 4.2 (1077) and MaiActOn is 2.1.&lt;br&gt;Under ON MY MAC I have created and new mail Mailbox "Archive".&lt;br&gt;I have set within the ArchiveMessages the following:&lt;/p&gt;&lt;p&gt;property ARCHIVE_FOLDER : "Archive"&lt;br&gt;property IMAP_ACCOUNT : ""&lt;/p&gt;&lt;p&gt;Now selecting few emails and pressing Crtl-S I can see:&lt;br&gt;"Applying Act on Rules with keystroke:S , Archive Messages (3 messages)",  but the Archive folder under  ON MY MAC doesn't contains any new archived email/folder.&lt;/p&gt;&lt;p&gt;Waiting for your reply.&lt;/p&gt;&lt;p&gt;Enrico&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Enrico</dc:creator><pubDate>Sun, 18 Apr 2010 16:15:50 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-45316104</link><description>&lt;p&gt;Hi, Enrico,&lt;/p&gt;&lt;p&gt;Which versions of OS X, &lt;a href="http://Mail.app" rel="nofollow noopener" target="_blank" title="Mail.app"&gt;Mail.app&lt;/a&gt;, and MailActOn are you using?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sat, 17 Apr 2010 18:41:21 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-45311532</link><description>&lt;p&gt;Hi Doug, searching for script Archiving Email on Mail I found your.&lt;br&gt;The script looks great, but unfortunately I am not able to have it works.&lt;br&gt;I have followed above hints, related to IMAP settings and to have email archived in "ON MY MAC" folder.&lt;br&gt;Now selecting emails on my Inbox and press Ctrl-S nothing happened.&lt;br&gt;Can you please help me troubleshooting the issue?&lt;br&gt;Thks in advance,&lt;br&gt;Enrico&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Enrico</dc:creator><pubDate>Sat, 17 Apr 2010 17:30:38 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-44712569</link><description>&lt;p&gt;I got it working, I think I had added an extra pair of un-required brackets to the original script... using 'get' cmd I could debug making sure the fetch code worked.&lt;/p&gt;&lt;p&gt;This is a great script Doug, you should package it up and sell it - thanks for al your help.&lt;/p&gt;&lt;p&gt;Kind regards, Steve.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Walker</dc:creator><pubDate>Wed, 14 Apr 2010 07:29:27 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-44342733</link><description>&lt;p&gt;Do you definitely have a mailbox called "Deleted Messages"?&lt;/p&gt;&lt;p&gt;I've found the log pane in the script editor useful for debugging situations like this. Adding some extra steps to, for example, log each message subject before you try to delete the message, may be helpful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Apr 2010 13:32:25 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-44034397</link><description>&lt;p&gt;Brilliant, its working perfectly :))&lt;/p&gt;&lt;p&gt;I have now set my archive folder to go drill down to where I want my archives to, i.e.:&lt;br&gt;property ARCHIVE_FOLDER : "Archive/Archive_Inbox/steve@idibu"&lt;/p&gt;&lt;p&gt;And I added the line to mailarchivebydate:&lt;br&gt;set imapAccountName to ""&lt;/p&gt;&lt;p&gt;If I am OK to ask a final quesiton here... In my quest to automate and clean out my mails, I have a few mailboxes that get a lot of stuff in them I never bother to read, but dont necessarily want to block as spam... As a result I want add a simple script that goes to the mailbox, looks for unread mails older than X, and moves them to delete folder. Finding a script I now have:&lt;/p&gt;&lt;p&gt;tell application "Mail"&lt;br&gt;	move (every message of mailbox "INBOX" of account "steve@sw.net" where (read status is false and date received is less than ((current date) - 60 * days))) to mailbox "Deleted Messages"&lt;/p&gt;&lt;p&gt;end tell&lt;/p&gt;&lt;p&gt;But when I run this is completes without error, but does nothing. The original script found here &lt;a href="http://discussions.apple.com/thread.jspa?threadID=2354551" rel="nofollow noopener" target="_blank" title="http://discussions.apple.com/thread.jspa?threadID=2354551"&gt;http://discussions.apple.co...&lt;/a&gt; had a "on run" envelope around the code, but this gave me a null error when i ran it.&lt;/p&gt;&lt;p&gt;Any ideas on why this would be working, I have mails going back to the beginning of 2009 so it should shift something..?&lt;/p&gt;&lt;p&gt;Kind regards, Steve.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Walker</dc:creator><pubDate>Fri, 09 Apr 2010 12:57:18 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-43653595</link><description>&lt;p&gt;I think if you set the IMAP_ACCOUNT variable to an empty string it will do what you want.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Wed, 07 Apr 2010 10:23:56 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-43652527</link><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;This script is pretty well the holy grail for me - I can't believe noone out there has looked to deal with macmails absence of autoarchiving, very bizarre....&lt;/p&gt;&lt;p&gt;Anyway - I have a question. Unfortunately this doesnt work quite as I want it to. The 'Archive' folder you create is inside the email account itself, i.e. with an imap email its still on the server.&lt;/p&gt;&lt;p&gt;On my local files, I have the top called "ON MY MAC" and its in here I have a folder called Archive in which I want to move off the mails.&lt;/p&gt;&lt;p&gt;The objective is to keep the actual email server usage reasonably small so it loads quick, but to keep a local archive of stuff i dont delete from the inboxes.&lt;/p&gt;&lt;p&gt;I dont if Doug or anyone can help to tweak the script so it will move data it is archiving to a local folder as described?&lt;/p&gt;&lt;p&gt;Kind regards, Steve&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Walker</dc:creator><pubDate>Wed, 07 Apr 2010 10:15:22 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-17835380</link><description>&lt;p&gt;Hi, Rachel, I'm glad you found it useful. Thanks for posting the performance information, too. I don't think I've ever used it on that many emails at one time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Wed, 30 Sep 2009 07:02:38 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-17818005</link><description>&lt;p&gt;this is wonderful.  One of my favorite scripts of all time!  Thank you very much&lt;/p&gt;&lt;p&gt;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)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rachel</dc:creator><pubDate>Tue, 29 Sep 2009 23:05:38 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-6653158</link><description>&lt;p&gt;That would sort the incoming mail into year/month folders instead of your inbox, right? It would be useful if you had access to the server and could install a .procmailrc. I don't on at least one of my mail servers.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Thu, 26 Feb 2009 07:36:31 -0000</pubDate></item><item><title>Re: MailArchiveByDate - Sort Mail.app Messages into Archive Folders</title><link>http://doughellmann.com/projects/MailArchiveByDate/#comment-6634136</link><description>&lt;p&gt;In .procmailrc&lt;/p&gt;&lt;p&gt;MONTH=`date +%Y/%m`&lt;br&gt;YEAR=`date +%Y`&lt;br&gt;umask 022&lt;/p&gt;&lt;p&gt;:0 ic&lt;br&gt;* ? test ! -d $MAILDIR/$YEAR&lt;br&gt;| mkdir -p $MAILDIR/$YEAR&lt;/p&gt;&lt;p&gt;:0:&lt;br&gt;  *&lt;br&gt;  $MAILDIR/$MONTH&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">karl</dc:creator><pubDate>Thu, 26 Feb 2009 01:05:43 -0000</pubDate></item></channel></rss>