in reply to Re^4: Downloading IMAP Folders to mbox file
in thread Downloading IMAP Folders to mbox file

You could try the moveMessage method, which is supposed to copy and delete in one function call. Or you could try the delete method.

Replies are listed 'Best First'.
Re^6: Downloading IMAP Folders to mbox file
by madbombX (Hermit) on Jun 19, 2006 at 03:41 UTC
    I apologize, I should have been clearer with the with actual. I can't seem to get it to close the mailbox thereby expunging the messages. When I try to connect to the Exchange server using the builtin method of Mail::IMAP4, then I get an error saying "Can't use 'NTLM' as array ref in strict subs". Ok, no problem, I'll connect to the server via another perl module. I do and I can't open the imap folders 'rw' which means that when I close them, it won't let me WRITE my changes thus expunging the mail. (This script is killing me).

    Eric