One difference I notice is that I'm checking the return code of expunge the same way you do for delete. I don't remember whether I had a good reason for doing this, but it's worth trying.
Have you tried turning debugging on? I found that very useful when I had some trouble with a MS Exchange server that didn't behave properly for one of the imap commands.
In reply to Re: Mail::IMAPClient Troubles
by blahblahblah
in thread Mail::IMAPClient Troubles
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |