Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Refresh Mail's Smart Mailboxes using AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Refresh Mail's Smart Mailboxes using AppleScript
Authored by: joh on Feb 04, '07 12:22:30PM

"Rebuild" is not the same. On IMAP-accounts it deletes the cached emails in the mailbox and reloads them from the server. At least Mail's help says that and on trying I found it to be true. Note that this will also remove all marks (like read/unread or flagged).

I may work on POP-accounts.



[ Reply to This | # ]
10.4: Refresh Mail's Smart Mailboxes using AppleScript
Authored by: phowell on Feb 04, '07 07:08:29PM

Right, but we're talking about Smart Mailboxes, not IMAP mailboxes. The whole problem that's trying to be solved is exactly a "rebuilding" of the smart mailbox.

Rebuild is the right way to do this one.



[ Reply to This | # ]
10.4: Refresh Mail's Smart Mailboxes using AppleScript
Authored by: joh on Feb 05, '07 12:43:56AM

I wouldn't have written an ugly script to handle that if "Rebuild" would do the same. On an IMAP account it did reload the messages from the server more than once (although not always). OK, it may also have been a bug in Mail.app...

If it works for you, fine. Much easier to bind it to a shortcut, too.



[ Reply to This | # ]
10.4: Refresh Mail's Smart Mailboxes using AppleScript
Authored by: sr105 on Mar 04, '10 10:16:32AM

My setup: Mail 4.2 on 10.6.2
Using "Rebuild" on a Smart Mailbox does seem to work, but it also seems to try and connect to my not-in-use Outgoing servers as well for some reason. I think Rebuild might be buggy.

Also, having a shortcut for Rebuild seems dangerous if you have a very large >1GB IMAP mailbox because if you get in the habit of hitting that shortcut, you might do it while inside an IMAP mailbox. Then, I hope for your sake that you're connected to the IMAP server on a very high speed connection and have 30 min or more to spare.

It would be oh-so-nice if the menu item changed to "Rebuild Smart Mailbox" so we could avoid the error.



[ Reply to This | # ]