Re: vacation mail revisited
Re: vacation mail revisited
- Subject: Re: vacation mail revisited
- From: Brian <email@hidden>
- Date: Sun, 3 Apr 2005 18:45:13 +0200
Hello Ed,
I make it work with the help of "Sample Rule Action Script" (in the Mail's script menu) :
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
if (name of theRule) = "phaseout" then
tell application "Mail"
repeat with message_to_process in theMessages
-- I add the next line after reading the archives...
if junk mail status of message_to_process is false then
set the_sender to the sender of the message_to_process
set the_reply_message to reply the message_to_process
set the sender of the_reply_message to "email@hidden"
set the subject of the_reply_message to "Re: " & the subject of the message_to_process & " (Automatic response)"
set the content of the_reply_message to "Automatically generated message from me about my old and new e-mail accounts"
send the_reply_message
-- this next bit forwards the message to my new account, mostly so that when I'm at a different location,
-- I can verify that these messages are being caught and auto-responded to
set ccToEd to forward the message_to_process
set theName to "xxx"
set theAddress to "email@hidden"
tell ccToEd
make new to recipient at end of to recipients with properties {theName, theAddress}
set the subject of ccToEd to "SENT NOTIFICATION: " & the subject of the message_to_process
set the content of ccToEd to the content of the message_to_process
end tell
send ccToEd
my extract address from the_sender)
end if
end repeat
end tell
end if
end perform mail action with messages
end using terms from
on email_sender)
using terms from application "Address Book"
tell application "Address Book"
set the newbie to make new person at after the people of group "netwayremind"
make new email at after the emails of the newbie with properties {label:"reminded", email_sender}
save addressbook
end tell
end using terms from
end addtogroup
I then use the "Sender is not a member of group" rule, and it's works fine, just think to add your email addresses to a group or you will get notification of notification mails the first time you'll run it...
Hope that will work for you and many thanks to Michelle Steiner, I was searching something like that.
Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden