Mailsmith
Other Programs
Scripts
Mailsmith.scpt
Archive to sub-mailbox
Check Spelling
Find reply
Change font size
Submit Script to JEM
Fix common spelling errors
Setting SMTP server
URL from Safari
Address from AB
linkMunge
Export to Address Book
Saving attachments
Digest Script
File with same
POP window position
Position of new windows
iCal and Mailsmith
Edit From Line
Modified Thread Script
Reply to Selection
Temporary Text Window
Compact gain
Tracking backups
Edit subject
Googler
Auto-rewrap
MMA
SMTP server
Open, fetch, and close
URL Manager
BrainForest
Thread by Author
Thread by subject
Export Email
Get Selection
Read Addresses
Export Email
Organize Email
Account setup
Mailsmith 2 BBEdit
BBEdit 2 Mailsmith
Search II
Check One
Delete Enclosure
Open, fetch, close
Set Answered
Set Redirected
Empty Trash
List found
Print Several
Del. old. msg.
Delete Enclosures
Accounts
Address Book
Editing
Filters
General
Import/Export
Links
Mailboxes
Memory
Scripting
Speed
send/receive
Tips/Tricks


Thread by Author

Author Jan Erik Moström
Last modified 2001-03-12
What is this?

This script takes the message(s) that you have selected and collects all messages in the same mailbox that has the same author.

See also the script "Thread by Subject "


on run
  tell application "Mailsmith 1.1"
    set xs to selection
    if class of xs ≠ list then
      set xs to xs as list
    end if
    repeat with currentItem from 1 to the number of items of xs
      set m to item currentItem of xs
      -- Check to make sure that the selection is something
      -- the script understands what to do with
      if class of m = string then
        set m to message of window 1
      else if class of m ≠ message then
        display dialog ¬
          "Oppps, you have to select a message for this script to work" buttons {"OK"} default button "OK"
        return
      end if
      set c to container of m
      set y to originator of m
      set adr to address string of y
      make new mail list window with data every message of c whose originator contains adr with properties {name:"Author: " & adr}
    end repeat
  end tell
end run