Thunderbird: Change default sort/view settings

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 342
Joined: Tue Nov 12, 2013 2:05 am

Thunderbird: Change default sort/view settings

Post by peter_b »

The following settings can be modified to change the default sort/view behavior of *new* folders in Mozilla Thunderbird:
  • mailnews.default_view_flags: 0=unthreaded / 1=threaded
  • mailnews.default_sort_type: 18=sort by date
  • mailnews.default_sort_order: 1=ascending / 2=descending
Save, modify and restart.


Here's a copy of a post on "Sort order for mail/news not configurable by default (back-end part) thead on bugzilla" with the available configuration values:
Prefs are named as follows; first three apply to Mail and RSS folders, the second three to Newsgroups.
mailnews.default_sort_order
mailnews.default_sort_type
mailnews.default_view_flags
mailnews.default_news_sort_order
mailnews.default_news_sort_type
mailnews.default_news_view_flags
In about:config (Tools | Options | Advanced | General, Config Editor), you can enter "news._def" to filter out all the prefs but these.

sort_order:
byNone 17 byPriority 23 byLocation 29
byDate 18 * byStatus 24 byTags 30
bySubject 19 * bySize 25 byJunkStatus 31
byAuthor 20 * byFlagged 26 byAttachments 32
byId 21 ** byUnread 27 byAccount 33
byThread 22 byRecipient 28 byCustom 34
* = commonly desired values
** = by Order Received (?)

sort_type:
ascending 1
descending 2

view_flags -- the second group of values can be added to one of the first group to combine effects, with several limitations:
Unthreaded 0
Threaded 1
Grouped 64 [mail only (?)]

ShowIgnored 8 [news only]
ShowUnreadOnly 16
ShowExpanded 32 [doesn't seem to work]
ShowUnreadOnly will check the View|Threads|Unread menu; this will cause only
unread items to be seen, but doesn't force a threaded view.

Thanks to:
Sort order for mail/news not configurable by default (back-end part)
https://www.badpenguin.org/thunderbirds-default-sort/
Post Reply