Show Unread

Summary: Shows unread messages sorted by thread.
Requires: Mailsmith 1.5
Suggested Key Binding: Command-Control-U
Last Modified: 2019-10-02


Select a mailbox or a message in a mailbox. Run the script to open a new window showing all the unread messages, grouped by thread.

Installation Instructions · Download in Compiled Format · Download in Text Format


tell application "Mailsmith"
if class of selection is mailbox then
set mbox to the selection
set mbox to container of selection
end if
set windowName to "Unread Messages from “ " & name of mbox & " ”"
make new mail list window with data every message of mbox whose seen is false with properties {name:windowName}
sort window 1 by thread title sort direction forward
set bounds of window 1 to {1, 44, 782, 994}
on error e
display dialog e
end try
end tell