Skip to content

Commit

Permalink
Multiline quoted continuations (closes #92)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Dec 1, 2024
1 parent 9bf766d commit c8bf355
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/content_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -1204,5 +1204,18 @@
]
]
}
},
{
"header": "attachment;\r\n\tfilename=\"=?utf-8?Q?Auftragsbest=C3=A4tigung_Xxxxx_Xxxxxx_XXXXXXXXXX=2EPD?=\r\n =?utf-8?Q?F?=\"\r\n",
"expected": {
"c_type": "attachment",
"c_subtype": null,
"attributes": [
[
"filename",
"Auftragsbestätigung Xxxxx Xxxxxx XXXXXXXXXX.PDF"
]
]
}
}
]
1 change: 1 addition & 0 deletions src/parsers/fields/content_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ impl<'x> MessageStream<'x> {
}
ContentState::AttributeQuotedValue => {
if next_is_space {
self.next();
parser.remove_crlf = true;
continue;
} else {
Expand Down

0 comments on commit c8bf355

Please sign in to comment.