Re: Mail.app automation
Re: Mail.app automation
- Subject: Re: Mail.app automation
- From: John Delacour <email@hidden>
- Date: Sun, 7 Sep 2003 21:34:05 +0100
- Mac-eudora-version: 6.1a2
At 10:30 am -0700 7/9/03, Michelle Steiner wrote:
and I don't know why you want to do it in this case.
To forward the Nigerian Spam, with full headers, to the two
government agency mail addresses set up to receive copies of the
spam.
Ah! In that case I'd do it another way. This gives the full raw
source, which is what they'll be looking for. If you want the body
of the message to be plain readable stuff, then there's another way.
tell application "Mail"
activate
set _original to item 1 of (get selection)
set _props to {visible:true, content:source of _original}
set _forwarded to make outgoing message with properties _props
tell _forwarded
set _to to {name:"jd", address:"email@hidden"}
make to recipient at end with properties _to
save -- or send
end tell
move _original to mailbox "Deleted Messages"
end tell
JD
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.