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


Click here to return to the '10.6: Move message in Mail via a keyboard shortcut' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Move message in Mail via a keyboard shortcut
Authored by: rcivitarese on Oct 09, '09 02:21:22AM

I have a different approach for a different problem. I have multiple e-mail accounts; i read all together emails in my inbox, then i select some of them and i want to file them in a folder 'read' specific for the account. So each message must be filed in the specific 'read' folder of the account that received it. If a message has a flag, must remain in the inbox folder.

Well i wrote a small applescript that i run with FastScript. Here it is: (please note that the folder name 'read' is hardcoded but can be changed easily)

tell application "Mail"
set the_selection to selection
if (count of the selection) is equal to 0 then
display dialog "Please select a message in Mail first, then run this script again."
else
repeat with eachItem in the_selection
if (not the flagged status of eachItem) then -- non muove i messaggi flaggati
set theAccount to account of mailbox of eachItem
set mailbox of eachItem to mailbox "Read" of theAccount
end if
end repeat
end if
end tell



[ Reply to This | # ]