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


Finding the reply to a message

Author Christian Smith
Last modified 2003-05-13
What is this?

Is it possible to find the reply to a message?

Yes, it can be done. Below is a script which does this. The only part that is missing is deciding which mailbox to search in. If you only have a single outgoing mailbox, this is easy. Otherwise you need to have some way of picking a mailbox to search (or you could search through a list of mailboxes until you found a suitable message).


tell application "Mailsmith 1.5"
	
	set search_mailbox to "something needs to go here"
	
	
	if class of window 1 is message window then
		set m to message of window 1
	else
		set m to selection
	end if
	set msg_id to message_ID of m
	
	open (first message of search_mailbox whose reply reference is msg_id)
end tell