Skip to content

Commit

Permalink
g3-icap-client: use Content-Length instead of X-IMAP-Message-Size
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Dec 19, 2024
1 parent 43741b1 commit b47dd6c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/g3-icap-client/src/reqmod/imap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ impl<I: IdleCheck> ImapMessageAdapter<I> {
header.extend_from_slice(len_s.as_bytes());
header.extend_from_slice(b"\r\n");

header.extend_from_slice(b"X-IMAP-Message-Size: ");
header.extend_from_slice(len_s.as_bytes());
header.extend_from_slice(b"\r\n");

header.extend_from_slice(b"\r\n");
header
}
Expand Down
4 changes: 0 additions & 4 deletions sphinx/g3proxy/protocol/helper/icap_imap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ The following headers will be set in the HTTP PUT request:
The ICAP server can modify the mail message but should not change the mail message size.
It is recommended for the ICAP server to set Content-Length as part of the HTTP request header in it's ICAP response.

- X-IMAP-Message-Size

The value will be the exact size of the mail message in the IMAP APPEND command.

The body of the HTTP PUT request will be the corresponding mail message data.

Limitations
Expand Down

0 comments on commit b47dd6c

Please sign in to comment.