Skip to content

Commit

Permalink
Merge pull request #6624 from thundernest/fetch_bcc_header
Browse files Browse the repository at this point in the history
Fetch BCC header when only partially downloading a message
  • Loading branch information
cketti authored Feb 3, 2023
2 parents fbd11e9 + 2618664 commit 5cfd334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ internal class RealImapFolder(
fetchFields.add("INTERNALDATE")
fetchFields.add("RFC822.SIZE")
fetchFields.add(
"BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc " +
"BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc bcc " +
"reply-to message-id references in-reply-to list-unsubscribe sender " +
K9MailLib.IDENTITY_HEADER + " " + K9MailLib.CHAT_HEADER + ")]"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@ class RealImapFolderTest {

verify(imapConnection).sendCommand(
"UID FETCH 1 (UID INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS " +
"(date subject from content-type to cc reply-to message-id references in-reply-to list-unsubscribe " +
"sender X-K9mail-Identity Chat-Version)])",
"(date subject from content-type to cc bcc reply-to message-id references in-reply-to " +
"list-unsubscribe sender X-K9mail-Identity Chat-Version)])",
false
)
}
Expand Down

0 comments on commit 5cfd334

Please sign in to comment.