Skip to content

Commit 059eec0

Browse files
committed
g3-icap-client: use Content-Length instead of X-IMAP-Message-Size
1 parent 7f34756 commit 059eec0

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/g3-icap-client/src/reqmod/imap/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ impl<I: IdleCheck> ImapMessageAdapter<I> {
8787
header.extend_from_slice(len_s.as_bytes());
8888
header.extend_from_slice(b"\r\n");
8989

90-
header.extend_from_slice(b"X-IMAP-Message-Size: ");
91-
header.extend_from_slice(len_s.as_bytes());
92-
header.extend_from_slice(b"\r\n");
93-
9490
header.extend_from_slice(b"\r\n");
9591
header
9692
}

sphinx/g3proxy/protocol/helper/icap_imap.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ The following headers will be set in the HTTP PUT request:
2929
The ICAP server can modify the mail message but should not change the mail message size.
3030
It is recommended for the ICAP server to set Content-Length as part of the HTTP request header in it's ICAP response.
3131

32-
- X-IMAP-Message-Size
33-
34-
The value will be the exact size of the mail message in the IMAP APPEND command.
35-
3632
The body of the HTTP PUT request will be the corresponding mail message data.
3733

3834
Limitations

0 commit comments

Comments
 (0)