On Jul 21, 2010, at 11:51 AM, Jashanjeet Singh wrote: My question is that is it possible to move messages from one mailbox to another by telling the Mail application that move first 5 messages of the mailbox "Inbox" to mailbox "Filed" without selecting the messages that needs to move.
I use this line to get a list of messages ...
set messageList to reverse of (get messages of (mailboxReference))
The first item in the list is the oldest message in the mailbox. To move these messages to another mailbox, you should probably try using Mail's 'move' command. Something like ...
repeat with msg in messageList move msg to newMBReference end repeat
I've never used Mail's 'move' command, so I can't say much more.
|