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

Show the total number of messages in Mail mailboxes Apps
Mail lets you choose to show the number of unread messages in mailboxes, but there's no way to show the total number of messages in your mailboxes. While most people may not want this, you might want to know how many messages are in certain mailboxes.

There's an interesting solution to this problem over at Stack Exchange, where user jaume presents two AppleScripts to accomplish this. The idea is to use the AppleScript to count the number of messages in the mailbox, then change the name accordingly, to something like "Messages (23)." The two scripts either change the names of a number of specified mailboxes, or of mailboxes whose names begin with the @ character. The script can be set to run via a Mail rule, such as every time new messages are received.

This is a nifty solution to a problem that many people wouldn't think of, but that can be useful in certain situations.
    •    
  • Currently 2.14 / 5
  You rated: 1 / 5 (7 votes cast)
 
[8,001 views]  

Show the total number of messages in Mail mailboxes | 11 comments | Create New Account
Click here to return to the 'Show the total number of messages in Mail mailboxes ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Show the total number of messages in Mail mailboxes
Authored by: designr on Mar 22, '13 08:31:36AM

I hadn't thought it a problem.

Wouldn't it be easier to select the mailbox and type Command-I?



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: earthsaver on Mar 22, '13 08:51:44AM

I think Command-I only shows mailboxes on the server, not those on one's computer. However, the title bar of the Mail main window shows the total number of messages in a selected mailbox.

---
- Ben Rosenthal
MacBook Pro 2.8GHz - Mountain Lion
iPad 3 4G



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: kirkmc on Mar 22, '13 09:11:55AM

Yes, but in either case, you have to do something to see the number.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: stevebr on Mar 22, '13 09:18:07AM

You can do something similar with different flag colours: Flagging a message creates a pseudo-mailbox that displays the total message count the way other mailboxes display unread count (on a dark background, flush right). Having more than one flag colour in use creates corresponding mailboxes, one for each colour, visible when opening the "Flagged" disclosure triangle. You can change the names of the flag mailboxes from the defaults to something more meaningful than Red, Orange, etc. the same way you change a mailbox name

Of course, you're limited to 7 different flag-mailboxes, and I don't know of a way to apply more than one flag to the messages (i.e. to make the flag mailboxes behave more like Gmail labels).



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: argh128 on Mar 22, '13 09:30:17AM

I misinterpreted the original post. It was about total counts, not unread. This still kind of works but you need to click into the mailbox.

Original post bellow:
I do this by using a SmartMailbox. Much simpler.

Create a smart mailbox, with multiple "Messages in Mailbox" and voila, you can have unread counts for as many mailboxes as you want. They can even be nested. AKA I have one with "recent new mail" which is a smart mailbox for mail arrived in the last 48 hours, and a second for "flag for followup" which speaks for itself.

Both of these are combined into a "inbox count" mailbox, which shows up on my dock icon.<!-- COMMENTSIG --><div class="comment-sig">---

A completely SANE Canadian.</div><!-- /COMMENTSIG -->

---

A completely SANE Canadian.
Edited on Mar 22, '13 09:31:57AM by argh128



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: frgough on Mar 22, '13 09:35:31AM

Or you could just click the mailbox and look at the window title which will show you the total count of messages in that mailbox in parentheses after the mailbox name.



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: designr on Mar 22, '13 05:08:06PM

D'oh!



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: EmileEssent on Mar 22, '13 09:50:10AM

Won't your backup software create a new backup every time the mailbox name is changed ? With large mailboxes that would become bothersome.



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: marksch on Mar 23, '13 06:47:08AM

Hi,

A much better solution is to count the number of messages and set the number badge in the dock to that number with AppleScript:

http://macscripter.net/viewtopic.php?id=35064

You could add this script to a rule that always runs the script after downloading any mail or you could create a cron script.

Mark

---
Mark

Economy-x-Talk
Have your own custom software created
http://economy-x-talk.com



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: xplora on Mar 23, '13 04:56:28PM

This will be more useful to people that use Mail.app in Full Screen Mode, where the title bar is not visible.



[ Reply to This | # ]
Show the total number of messages in Mail mailboxes
Authored by: gimparoo on Mar 25, '13 01:50:49PM

How about an application that is small and free, Dockview, it shows the 'unread' mail in the mailbox on the icon in the dock as a badge and can be used to see how many windows are open on any open apps....



[ Reply to This | # ]