Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-11-11 | Make MailHeaderMap perform case-insensitive searches | Bruce Guenter | |
The trait MailHeaderMap has two methods for searching headers, normal and case-insensitive. This documentation says: > According to the spec the mail headers are supposed to be > case-sensitive, but in real-world scenarios that's not always the > case. Actually, the spec says nothing that headers supposed to case-sensitive, and historical precedent is to be case-insensitive. Certainly, all the mail processing software I am familiar with (Thunderbird, qmail, ezmlm, and mutt) treat headers as case insensitive. RFC 822 section 3.4.7 says: > When matching any other syntactic unit, case is to be ignored. For > example, the field-names "From", "FROM", "from", and even "FroM" are > semantically equal and should all be treated identically. While RFC 2822 did drop that section (and RFC 5322 didn't restore it), others interpret other parts to indicate case insensitivity. https://stackoverflow.com/a/6143644 > RFC 5322 does actually specify this, but it is very indirect. https://www.gnu.org/software/emacs/manual/html_node/emacs/Mail-Headers.html > Upper and lower case are equivalent in field names. https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.email.ExtractEmailHeaders/index.html > NOTE the header key is case insensitive This change makes all header searches case insensitive. | |||
2016-10-02 | rustfmt | Kartikaya Gupta | |
2016-10-02 | Update main examples to include a dateparse usage | Kartikaya Gupta | |
2016-10-02 | Expose the dateparse module from mailparse | Kartikaya Gupta | |
2016-06-22 | Add case-insensitive accessors for headers | Kartikaya Gupta | |
2016-06-22 | Handle case where an encoded-word has trailing whitespace inside the encoding | Kartikaya Gupta | |
2016-06-22 | Recognize encoded words in more places | Kartikaya Gupta | |
2016-06-22 | Accept lowercase transfer-codings for the encoded-word | Kartikaya Gupta | |
2016-06-22 | Allow quoted-printable header words to be wrapped in quotes | Kartikaya Gupta | |
2016-06-18 | rustfmt | Kartikaya Gupta | |
2016-06-18 | Make formatting a little prettier using concat | Kartikaya Gupta | |
2016-06-18 | Add rustdoc to the source code | Kartikaya Gupta | |
2016-06-18 | Drop position property from generic error | Kartikaya Gupta | |
2016-06-18 | Make decode_word return an Option instead of an ignored Error | Kartikaya Gupta | |
2016-06-18 | Default unknown body charsets to ASCII | Kartikaya Gupta | |
2016-06-18 | Strip out whitespace before base64-decoding the mail body | Kartikaya Gupta | |
2016-06-18 | Make the MailParseErrors hold a static string mostly | Kartikaya Gupta | |
2016-06-15 | Use the stringify macro to print out the mattern in assert_match | Kartikaya Gupta | |
2016-06-12 | Handle content-transfer-encoding in mail bodies | Kartikaya Gupta | |
2016-06-12 | Bump quoted-printable dependency to 0.3 | Kartikaya Gupta | |
2016-06-11 | Add a parse_mail function to build the subpart tree for multipart mails | Kartikaya Gupta | |
2016-06-11 | Update header-parsing to skip past empty newline at the end of the headers, ↵ | Kartikaya Gupta | |
and also to allow CRLF instead of just LF | |||
2016-06-11 | Add some code to extract content-type header components that we need for ↵ | Kartikaya Gupta | |
parsing the body | |||
2016-06-11 | Add a test from a real mailfile with non-ASCII characters in header fields | Kartikaya Gupta | |
2016-06-10 | Add a helper find_from_u8 function | Kartikaya Gupta | |
2016-06-08 | Remove unused import | Kartikaya Gupta | |
2016-06-08 | rustfmt | Kartikaya Gupta | |
2016-06-08 | When converting header keys and values from bytes to Strings, assume ↵ | Kartikaya Gupta | |
ISO-8859-1 instead of UTF-8 | |||
2016-06-08 | Add a simple assert_match macro for help with testing | Kartikaya Gupta | |
2016-06-08 | Start cleaning up the MailParseError to be more strongly typed | Kartikaya Gupta | |
2016-06-08 | Allow tab characters in header value overhangs | Kartikaya Gupta | |
2016-06-07 | Convert mailparse to take [u8] instead of &str as the raw input | Kartikaya Gupta | |
2016-06-06 | Add some mapping functions to more easily extract mail headers | Kartikaya Gupta | |
2016-06-01 | Add more tests | Kartikaya Gupta | |
2016-06-01 | rustfmt | Kartikaya Gupta | |
2016-06-01 | Some more test assertions | Kartikaya Gupta | |
2016-05-30 | Add support for decoding encoded-word pieces of header values. | Kartikaya Gupta | |
2016-05-28 | Return the body start offset from parse_headers | Kartikaya Gupta | |
2016-05-28 | rustfmt | Kartikaya Gupta | |
2016-05-28 | Make code a bit more compact | Kartikaya Gupta | |
2016-05-28 | Add a function to parse multiple headers | Kartikaya Gupta | |
2016-05-28 | rustfmt | Kartikaya Gupta | |
2016-05-28 | Add some tests for failure conditions, update parse_header to return the ↵ | Kartikaya Gupta | |
offset of the next header | |||
2016-05-27 | Make the header parsing code more hideous but more correct | Kartikaya Gupta | |
2016-05-27 | rustfmt | Kartikaya Gupta | |
2016-05-27 | Super basic header parser | Kartikaya Gupta | |
2016-05-27 | Initial commit of library stub | Kartikaya Gupta | |