S22.Imap
S22.Imap copied to clipboard
Imap Client MoveMessage not working
So I'm using the MoveMessage method to move mail with an IMAP connection to an Office365 account, but the call has no effect. No error, just nothing happens, the mail doesn't move. I've also tried Copying to the target folder and then Deleting the message, but neither of those calls have any effect either. Is there something I'm missing to get these commands to work against an Office365 account?
I'm not really familiar with S22.Imap (I'm the author of MimeKit and MailKit), but my recommendation would be for you to make sure you've opened the mailbox in ReadWrite mode and not ReadOnly mode.
Office365 also does not support the MOVE extension, so it'll have to be implemented as a copy & delete.
S22.Imap may already do this for you, I'm not sure...
I've got exactly the same issue with Office365, did you ever find a solution to this at all?
No, I ended up using a gmail account because it works against that. So I forward all email from the Office365 account to the gmail account. Total hack, but there it is.
From: marspd [mailto:[email protected]] Sent: Friday, October 24, 2014 5:21 AM To: smiley22/S22.Imap Cc: Bryn Rhodes Subject: Re: [S22.Imap] Imap Client MoveMessage not working (#89)
I've got exactly the same issue with Office365, did you ever find a solution to this at all?
— Reply to this email directly or view it on GitHub https://github.com/smiley22/S22.Imap/issues/89#issuecomment-60374469 . https://github.com/notifications/beacon/AGqPSk2LnWFL8j6COUejWLiY6Mr11OBdks5nGi2IgaJpZM4CV0ex.gif
Thanks for the reply. I've now moved on and downloaded MailKit which is working fine.
Are you expunging the message after moving it? As part iMAP specs (and what works for me) after the move, expunge it.