Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Mark email message as replied-to in Mail Apps
Apple Mail doesn't provide a built-in mechanism for marking emails as replied (or clearing said mark). I solved this weakness with a simple AppleScript that operates on whatever messages are currently selected. Simply create the following script using the Script Editor, and save it to Library » Scripts » Applications » Mail in your home directory, or in /Library » Scripts » Mail Scripts for use by all users.

This script marks the selected messages as replied to:
using terms from application "Mail"
  tell application "Mail"
    set selectedMessages to selection

    repeat with eachMessage in selectedMessages
      -- set was replied to of eachMessage to false
      set was replied to of eachMessage to true
    end repeat

  end tell
end using terms from
For marking as unreplied, I used the brain-dead solution of simply creating a second script which is identical with the exception of substituting the value false into the set was replied to line, as demonstrated by the commented line which starts with --. Save the two versions of the script to one of the above folders.

Now you should see whatever name you chose for your scripts available from the AppleScript menu. (Assuming you have the AppleScript menu enabled.)

[robg adds: Mail should automatically track reply status for messages, and if you're using IMAP, that information should appear on all your Macs. However, I have seen Mail get confused in the past and lose the reply status on certain messages. The above script provides a simple fix for those times.]
    •    
  • Currently 2.25 / 5
  You rated: 5 / 5 (12 votes cast)
 
[6,606 views]  

Mark email message as replied-to in Mail | 5 comments | Create New Account
Click here to return to the 'Mark email message as replied-to in Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mark email message as replied-to in Mail
Authored by: escowles on Nov 10, '09 09:13:20AM

The main way I've seen Mail not mark messages as replied-to is if I start a reply, save it as a draft, and then later open the draft and send it. So this script might be nice in situations like that. Using this script is easier than the other solution (opening the draft and copying my text, finding the original message and starting a new reply).

I just tried this script, to see if it would successfully link to the reply, and it does. So this is a good way to preserve the links to my replies when I'm working from a draft.



[ Reply to This | # ]
Mark email message as replied-to in Mail
Authored by: flip on Nov 10, '09 10:07:29AM
Nice one! You can easily toggle it both ways with a single script, though:
using terms from application "Mail"
	tell application "Mail"
		set selectedMessages to selection
		
		repeat with aMessage in selectedMessages
			set was replied to of aMessage to (not was replied to of aMessage)
		end repeat
		
	end tell
end using terms from


[ Reply to This | # ]
Mark email message as replied-to in Mail
Authored by: Anonymous on Nov 10, '09 12:19:08PM

But this toggles every selected message. Not exactly intuitive.

When I get home, I might have a crack at modifying the script so it does two things: take a vote on what the current state is. If there's a clear winner, all messages are set to the opposite state. If there's no clear winner, ask the user.



[ Reply to This | # ]
Mark email message as replied-to in Mail
Authored by: motees on Nov 11, '09 01:15:05AM

A bit off-topic, but is there any way to prevent Mail from automatically marking an email as Read when an Unread email is simply selected in a mailbox. This just drives me crazy because I often click on an Unread email in the list but do not want Mail to assume that I have read it. Thank for any suggestions.



[ Reply to This | # ]
Mark email message as replied-to in Mail
Authored by: BiL Castine on Nov 11, '09 05:25:19AM

try the True Previewmail plug-in, as mentioned in the comments to thishint



[ Reply to This | # ]