Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Office365 append pending forever #67

Open
Kludex opened this issue May 6, 2021 · 0 comments
Open

Office365 append pending forever #67

Kludex opened this issue May 6, 2021 · 0 comments

Comments

@Kludex
Copy link

Kludex commented May 6, 2021

Hi there! 👋

I need help, but I'll probably be vague, and I know this is probably not the best place to ask this. I'm already using the package, so I'll give it a try here. 😅

I'm having an issue when appending a message on the outlook.office365.com IMAP server. What happened is that it basically keeps on the appending command for a long time (I've removed the timeout, to see if it was just taking too long, but it doesn't finish).

The snippet I'm using is the following:

await imap_client.store(uid, "+FLAGS", "(\\Deleted)")
await imap_client.expunge()
await imap_client.append(message.as_bytes())

I'm trying to modify a body of a message, so I need to get the message, modify it, remove it from the server and add a new one. The log of the first two commands above are fine:

Response(result='OK', lines=[b'4 FETCH (FLAGS (\\Deleted \\Recent))', b'STORE completed.'])
Response(result='OK', lines=[b'4 EXPUNGE', b'EXPUNGE completed.'])

But again, the append keeps forever. 😓

I hope someone can help me out. :)
Thanks for the package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant