Commit 2877cb1
Handle multipart content-type with no parts
Fix parsing of emails that have multipart content-type headers
but no actual parts in the body.
Previously these would fail to parse correctly. Now they are treated as regular
single-part messages with the body content preserved.1 parent 19d7ac6 commit 2877cb1
File tree
2 files changed
+21
-2
lines changed- lib/mail/parsers
- test/mail/parsers
2 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
971 | 987 | | |
972 | 988 | | |
973 | 989 | | |
| |||
0 commit comments