Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to sort the messages in my inbox by the number of messages from / to email address.

After having sorted by Sort by -> From and Grouped By Sort and then displaying the Total column, I am unable to sort by the Total while keeping the sort grouping intact.

How can I sort the messages in my inbox by message count in Thunderbird?

Thunderbird inbox state after having sorted

share|improve this question
@amiregelz, thanks for the screenshot. The count 1,4,3,93,42,29 is showing for me too. But how do I sort that to get 1,3,4,29,42,93? – Rajasankar Sep 26 '12 at 13:26
I searched for a solution too, but couldn't find anything. – amiregelz Sep 26 '12 at 15:29
up vote 0 down vote accepted

As it is not possible to sort the count in Thunderbird, I used python mail module to sort. My code is below

import email,collections
mboxfile = 'C:/INBOX'
for em in mailbox.mbox(mboxfile):

This has given what I expected. This can be used for To,Cc,Bcc fields too.

share|improve this answer
Can this be installed as an Add-on? – McArthey Jun 25 '14 at 22:36
It is python code, I dont is there any addons exists for sorting via count – Rajasankar Jun 26 '14 at 3:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.