in reply to Re: How do I move mail msg to another folder in ECHANGE via a MAPI connection?
in thread How do I move mail msg to another folder in ECHANGE via a MAPI connection?
IMAP has no built in move command, when you move a message you actually copy it to another folder and then delete the original (mark as deleted, expunge).# copy messages between folders $imap->select('INBOX'); $imap->copy(\@msg_ids, 'Archive'); # delete messages ("Move to Trash") $imap->copy(\@msg_ids, 'Trash'); $imap->add_flags(\@msg_ids, '\\Deleted'); $imap->expunge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I move mail msg to another folder in ECHANGE via a MAPI connection?
by skx (Parson) on Feb 06, 2009 at 18:20 UTC | |
|
Re^3: How do I move mail msg to another folder in ECHANGE via a MAPI connection?
by boat73 (Scribe) on Feb 06, 2009 at 19:27 UTC |