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?

Net::IMAP::Client says
# 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;
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).
  • Comment on Re^2: How do I move mail msg to another folder in ECHANGE via a MAPI connection?
  • Download Code

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

    Although what you've said is correct I suspect it is irrelevant to the poster - since MAPI is different from IMAP.

    When it comes to processing IMAP folders, moving, copying, and scripting I put together a simple perl tool which does the job. It might be useful to some.

    Steve
    --
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
    Thanks, but I am using MAPI