• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script to make mail fwd new messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script to make mail fwd new messages


  • Subject: Script to make mail fwd new messages
  • From: Vincent <email@hidden>
  • Date: Wed, 24 Nov 2010 22:34:46 +0400

Can somebody help me?
Below is what i gathered here and there on the net.

What I would like to do is to have mail fwd all received mail from some specific address to a particular address in the case below which is "simla" from a particular account from which is "vince".

I got an internal mail server which I have my hands on and an external which I have no control. I want to otomatically forward incoming mails of external account to an internal destination using internal mail server.

On the mac receiving the mail from external, the mails are moves otomatically using defined rules to some specific and organised folder. 



Any help will be greatly appreciated.

thx 


set MsgSender to "Vince <email@hidden>" 
set MsgRecipient to "Simla <email@hidden>"
tell application "Mail"
set theMessages to the selection


repeat with current_Message in theMessages
set fwd_Message to forward current_Message with opening window
tell fwd_Message
activate
set sender to MsgSender
set my_recipient to make new to recipient at end of to recipients with properties {address:MsgRecipient}
send fwd_Message
end tell
end repeat
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Script to make mail fwd new messages
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Calling a handler in another applescript process
  • Next by Date: Re: Script to make mail fwd new messages
  • Previous by thread: Re: AppleScript to move message to nested IMAP folder?
  • Next by thread: Re: Script to make mail fwd new messages
  • Index(es):
    • Date
    • Thread