Depending on what you want to do, you can use an applescript script to do some things.
This script can be modified to move outbound messages to different folders:
using terms from application "Mail"
on perform mail action with messagestheSelectedMessagesfor ruletheRule
set messageList to {}
set x to messages in mailbox "Sent Messages" in account "<Account-1>" -- *1
set messageList to x
set x to messages in mailbox "Sent Messages" in account "<Account-2>"
set messageList to messageList & x
set x to messages in mailbox "Sent Messages" in account "<Account-3>"
set messageList to messageList & x
repeat with i from 1 to countitems in messageList
set msg to itemi of messageList
if all headers of msg contains "<trigger>" then -- *2
set mailbox of msg to mailbox "<destination mailbox>" of mailbox "Local" -- *3
end if
end repeat
end perform mail action with messages
end using terms from
Open Applications/Utilities/Script Editor.app
Cut and paste the above script.
Change all values between "<" and ">".
*1: If you have more accounts, add them. If you have fewer then delete the excess ones.
*2: Change 'trigger' to whatever identifies the message you want to move.
*3: Set your destination mailbox.
Save the script with a meaningful name: You have to place the script in folder: /Users/<your id>/Library/Application Scripts/com.apple.mail/
Create a rule in Mail for "All Messages" and select 'Run Applescript' as the action, then select your script from the drop down.
Your script will run whenever new mail arrives.
For those script experts out there, this was my first one, so take it easy on me.