Skip to content

Commit

Permalink
g3-icap-client: add mime type for smtp request
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Jun 7, 2024
1 parent 1ab3263 commit 0cf699c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/standards.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ The code should comply to these, but should be more compliant to existing popula

- [rfc2045](https://datatracker.ietf.org/doc/html/rfc2045)
: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
- [rfc2046](https://datatracker.ietf.org/doc/html/rfc2046)
: Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
- [rfc2047](https://datatracker.ietf.org/doc/html/rfc2047)
: MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text
- [rfc2231](https://datatracker.ietf.org/doc/html/rfc2231)
Expand Down
1 change: 1 addition & 0 deletions lib/g3-icap-client/src/reqmod/smtp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl<I: IdleCheck> SmtpMessageAdapter<I> {
pub fn build_http_header(&self) -> Vec<u8> {
let mut header = Vec::with_capacity(128);
header.extend_from_slice(b"PUT / HTTP/1.1\r\n");
header.extend_from_slice(b"Content-Type: message/rfc822\r\n");
header.extend_from_slice(b"\r\n");
header
}
Expand Down

0 comments on commit 0cf699c

Please sign in to comment.