S22.Imap icon indicating copy to clipboard operation
S22.Imap copied to clipboard

Imap Client MoveMessage not working

Open brynrhodes opened this issue 10 years ago • 5 comments

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?

brynrhodes avatar Aug 10 '14 01:08 brynrhodes

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...

jstedfast avatar Oct 10 '14 11:10 jstedfast

I've got exactly the same issue with Office365, did you ever find a solution to this at all?

marspd avatar Oct 24 '14 11:10 marspd

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

brynrhodes avatar Oct 24 '14 14:10 brynrhodes

Thanks for the reply. I've now moved on and downloaded MailKit which is working fine.

marspd avatar Oct 24 '14 14:10 marspd

Are you expunging the message after moving it? As part iMAP specs (and what works for me) after the move, expunge it.

rboy1 avatar Dec 04 '14 17:12 rboy1