Copy messages in mail.app to a second mailbox
Copy messages in mail.app to a second mailbox
- Subject: Copy messages in mail.app to a second mailbox
- From: "Husson, Michael" <email@hidden>
- Date: Wed, 9 Oct 2002 23:24:34 -0400
I am stuck with a simple applescript which, although generating no errors,
does not produce the desired result of copying selected message(s) to a
second mailbox. My basic purpose is to keep simultaneous copies of selected
mail on my IMAP server as well as my iMac by selecting the message, copying
it to one mailbox on my iMac, and moving the original to a different mailbox
folder on the IMAP server. The following script is the initial step, which
isn't getting anywhere.
tell application "Mail"
set theSelectedMessages to the selection
repeat with eachMessage in theSelectedMessages
duplicate eachMessage to mailbox "Archive"
end repeat
end tell
The event log generates the following:
copy message x of mailbox "INBOX" of account myaccount to mailbox "Archive"
However, these messages never appear in the mailbox "Archive"
What am I doing wrong?
Thanks for any help regarding this.
Michael Husson
Department of Pathology
Pennsylvania Hospital
Philadelphia, PA
email@hidden
_______________________________________________
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.