-
Notifications
You must be signed in to change notification settings - Fork 19
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
FETCH BODY[HEADER] hangs #22
Comments
BTW, it does not seem that the Line 69 in cc24f5d
Edit: it seems that RUST_LOG=async_imap=trace does work though. |
Ok, I've upgraded to the latest possible git version and now it looks like the fetch method returns an empty stream... Need to test more. Edit: yup, using e.g. UID instead of BODY[HEADER] results in a non-empty stream. |
This seems to happen with large enough data chunks. For example, for my test case I have the server return a literal of length 8088, and it seems to be split into several parts inside async_imap, however, only two parts are visible in the TRACE logs, and there are clearly more because these two parts don't contain the entirety of headers which I can see in the raw message. Edit: interesting, results does not seem to be consistent - on the second run, I see more trace entries which are correct, but still no proper parsed output. |
I think I found the reason - the problem is that the I might be able to send a PR to fix this later :) |
I can consistently observe that requests like
always hang when processing the
messages
stream, i.e. something likenever finishes.
The issue goes away if
BODY[HEADER]
is not requested, e.g. withBODY[TEXT]
orUID
orENVELOPE
orBODYSTRUCTURE
.BODY[]
does not work as well, so it seems that there is some issue with headers processing?I see this consistently with different mailboxes and different messages on a Fastmail account (
imap.fastmail.com
).All of these requests can be done just fine with a raw telnet connection to the server.
The text was updated successfully, but these errors were encountered: