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

imap: turn FetchItem into FetchOptions #517

Merged
merged 2 commits into from
Jun 21, 2023
Merged

imap: turn FetchItem into FetchOptions #517

merged 2 commits into from
Jun 21, 2023

Conversation

emersion
Copy link
Owner

@emersion emersion commented Apr 17, 2023

  • Send both BODY and BODYSTRUCTURE when both are requested

@emersion emersion force-pushed the fetch-items branch 3 times, most recently from 19c70da to cf8d6b4 Compare June 18, 2023 09:21
Will be useful to write BODY from an extended imap.BodyStructure.
@emersion emersion marked this pull request as ready for review June 21, 2023 10:51
@emersion emersion merged commit 37d2f29 into v2 Jun 21, 2023
@emersion emersion deleted the fetch-items branch June 21, 2023 11:04
adregner added a commit to adregner/go-imap that referenced this pull request Jul 2, 2023
emersion#517 uses the new `enc.BeginList()` to encode fetch options over the IMAP protocol, but never calls `.End()` so the closing `)` character is never written out, causing errors like `T6 BAD Could not parse command`.
emersion pushed a commit that referenced this pull request Jul 2, 2023
#517 uses the new `enc.BeginList()` to encode fetch options over the IMAP protocol, but never calls `.End()` so the closing `)` character is never written out, causing errors like `T6 BAD Could not parse command`.
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

Successfully merging this pull request may close these issues.

1 participant