summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2019-11-27Expose MailAddrList as wellKartikaya Gupta
2019-11-09Add the addrparse module, to help parse address/mailbox listsKartikaya Gupta
Fixes #34.
2019-11-09Fix compiler warningKartikaya Gupta
2019-08-05Prevent possible underflowKartikaya Gupta
Fixes #43
2019-07-31Skip past unterminated =? escape stringKartikaya Gupta
This fixes a panic where we stupidly advance our byte index by 2 when encountering an unterminated escape. Doing this is inefficient because we'll probably just find the same unterminated escape a bunch of times, but can also put our byte index in the middle of a UTF-8 character which causes a panic. Fixes #41
2019-06-04Allow access to encoded bodyufoscout
2019-06-04Run rustfmt and add it to travis checksKartikaya Gupta
2019-05-23Stop using deprecated trim_left/rightKartikaya Gupta
2019-05-23Test UTF-7 in bodyHenri Sivonen
2019-05-23Test UTF-7 in headersHenri Sivonen
2019-05-23Test ISO-2022-JP in headersHenri Sivonen
2019-05-23Use the charset crate instead of the encoding crateHenri Sivonen
Adds support for UTF-7 and drops support for HZ.
2019-02-10Fix panic when encountering param content with new lineLewis Diamond
2018-09-12Implement MailHeaderMap for [MailHeader] instead of Vec<MailHeader>Jos van den Oever
2018-09-12key.len() > 0 -> !key.is_empty()Jos van den Oever
clippy::len_zero
2018-09-07Prefer map_err(|e| e.into()) over explicit errorThomas Hurst
2018-09-07Replace try_none! with ?Thomas Hurst
2018-09-07Tidy get_body_raw()Thomas Hurst
This saves an allocation of the empty string in the no-Content-Transfer-Encoding case.
2018-09-07Tidy get_body_raw() with is_ascii_whitespace()Thomas Hurst
Semantics aren't *identical*, since this adds vertical tab to the filter.
2018-09-07Tidy parse_param_contentThomas Hurst
2018-09-07Convert try! to ?Thomas Hurst
2018-09-07Tidy is_boundary()Thomas Hurst
2018-09-07Tidy MailHeader::get_keyThomas Hurst
2018-09-05Use while let Some(..) over loop { match { .. }}Thomas Hurst
This looks like it should be a map().collect(), but do the smaller change first. clippy:while_let_on_iterator
2018-09-05map(|x| Some(x)) -> map(Some)Thomas Hurst
clippy:redundant_closure
2018-09-05Use foo[] instead of .get().unwrap()Thomas Hurst
clippy:get_unwrap
2018-09-05Use unwrap_or_else() and unwrap_or_default()Thomas Hurst
This is particularly good for fallbacks which allocate, like String::new() and "bla".to_string(). len() is mostly to shut up clippy. clippy:or_fun_call
2018-09-05Use Struct { foo } over Struct { foo: foo }Thomas Hurst
clippy:redundant_field_names
2018-09-05Use a char rather than a &str for single-char find()Thomas Hurst
clippy:single_char_pattern
2018-09-05Use foo += bar over foo = foo + barThomas Hurst
clippy:assign_op_pattern
2018-09-04Fix #26: Incorrect unwrap() guard in is_boundary()Thomas Hurst
Guarding line.chars().nth(n) by enforcing n <= line.len() is incorrect, because len() operates in bytes, not Unicode characters. Drop the guard and make use of nth()'s Option to conditionally check the character if it's within bounds. Add a test to prevent regressions.
2018-05-23Fix indentationKartikaya Gupta
2018-05-23parse_mail: Handle missing terminating boundaries in multipart emails.Darius Jahandarie
Instead of erroring when there is no terminating boundary, assume the end of the part is the end of the email.
2018-04-18MailHeader::get_value: do not add space if special char parsedRomain Porte
2018-04-03Update quoted_printable and base64 dependenciesKartikaya Gupta
2017-10-14Add missing function docKartikaya Gupta
2017-10-14Don't expose the function to convert disposition typeKartikaya Gupta
2017-10-14Update documentation and doc-tests for new content-disposition changesKartikaya Gupta
2017-10-12rustfmtYoung Wu
2017-10-12Store all params of Content-Type into BTreeMap<String, String>Young Wu
2017-10-12Add Content-Disposition to mailYoung Wu
2016-12-26rustfmtKartikaya Gupta
2016-12-26add `get_body_raw`Wu Young
2016-12-23add name field to ParsedContentTypeWu Young
2016-12-04Followup to 9f8013c2 (fix for issue #7) - deal with empty messagesKartikaya Gupta
2016-12-04Fix for issue #7 - deal with lack of headersKartikaya Gupta
2016-12-04Less allocation by using case insensitive string comparisonJos van den Oever
2016-12-04Rename test and check for body as wellKartikaya Gupta
2016-12-03Fix panic when the mail body is missingJos van den Oever
2016-11-11Drop the redundant get_*_ci methods from MailHeaderMapBruce Guenter