Show Unread
Summary: Shows unread messages sorted by thread.
Requires: Mailsmith 1.5
Suggested Key Binding: Command-Control-U
Last Modified: 2019-10-02
Description
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
Script
tell application "Mailsmith"
if class of selection is mailbox then
set mbox to the selection
else
set mbox to container of selection
end if
set windowName to "Unread Messages from “ " & name of mbox & " ”"
try
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