smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

Imap Client MoveMessage not working #89

Open brynrhodes opened 9 years ago

brynrhodes commented 9 years ago

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?

jstedfast commented 9 years ago

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

marspd commented 9 years ago

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

brynrhodes commented 9 years ago

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:notifications@github.com] 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

marspd commented 9 years ago

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

rboy1 commented 9 years ago

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