Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-11-27 | Implement the Display trait on addrparse result types. Fixes #46 | Kartikaya Gupta | |
2019-11-10 | Add Clone implementation to addr types | Kartikaya Gupta | |
2019-11-10 | Add documentation | Kartikaya Gupta | |
2019-11-09 | Add the addrparse module, to help parse address/mailbox lists | Kartikaya Gupta | |
Fixes #34. | |||
2019-11-09 | Fix compiler warning | Kartikaya Gupta | |
2019-08-05 | Prevent possible underflow | Kartikaya Gupta | |
Fixes #43 | |||
2019-07-31 | Skip past unterminated =? escape string | Kartikaya 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-04 | Allow access to encoded body | ufoscout | |
2019-06-04 | Run rustfmt and add it to travis checks | Kartikaya Gupta | |
2019-05-23 | Stop using deprecated trim_left/right | Kartikaya Gupta | |
2019-05-23 | Test UTF-7 in body | Henri Sivonen | |
2019-05-23 | Test UTF-7 in headers | Henri Sivonen | |
2019-05-23 | Test ISO-2022-JP in headers | Henri Sivonen | |
2019-05-23 | Use the charset crate instead of the encoding crate | Henri Sivonen | |
Adds support for UTF-7 and drops support for HZ. | |||
2019-02-10 | Fix panic when encountering param content with new line | Lewis Diamond | |
2018-09-12 | Implement MailHeaderMap for [MailHeader] instead of Vec<MailHeader> | Jos van den Oever | |
2018-09-12 | key.len() > 0 -> !key.is_empty() | Jos van den Oever | |
clippy::len_zero | |||
2018-09-07 | Prefer map_err(|e| e.into()) over explicit error | Thomas Hurst | |
2018-09-07 | Replace try_none! with ? | Thomas Hurst | |
2018-09-07 | Tidy get_body_raw() | Thomas Hurst | |
This saves an allocation of the empty string in the no-Content-Transfer-Encoding case. | |||
2018-09-07 | Tidy get_body_raw() with is_ascii_whitespace() | Thomas Hurst | |
Semantics aren't *identical*, since this adds vertical tab to the filter. | |||
2018-09-07 | Tidy parse_param_content | Thomas Hurst | |
2018-09-07 | Convert try! to ? | Thomas Hurst | |
2018-09-07 | Tidy is_boundary() | Thomas Hurst | |
2018-09-07 | Tidy MailHeader::get_key | Thomas Hurst | |
2018-09-05 | Use i64::from(x) over x as i64 | Thomas Hurst | |
clippy:cast_lossless | |||
2018-09-05 | Use if let Ok() over single-armed match { .. } | Thomas Hurst | |
clippy:single_match | |||
2018-09-05 | Use 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-05 | map(|x| Some(x)) -> map(Some) | Thomas Hurst | |
clippy:redundant_closure | |||
2018-09-05 | Use foo[] instead of .get().unwrap() | Thomas Hurst | |
clippy:get_unwrap | |||
2018-09-05 | Use 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-05 | Use Struct { foo } over Struct { foo: foo } | Thomas Hurst | |
clippy:redundant_field_names | |||
2018-09-05 | Use a char rather than a &str for single-char find() | Thomas Hurst | |
clippy:single_char_pattern | |||
2018-09-05 | Use foo += bar over foo = foo + bar | Thomas Hurst | |
clippy:assign_op_pattern | |||
2018-09-04 | Fix #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-23 | Fix indentation | Kartikaya Gupta | |
2018-05-23 | parse_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-18 | MailHeader::get_value: do not add space if special char parsed | Romain Porte | |
2018-04-03 | Update quoted_printable and base64 dependencies | Kartikaya Gupta | |
2017-10-14 | Add missing function doc | Kartikaya Gupta | |
2017-10-14 | Don't expose the function to convert disposition type | Kartikaya Gupta | |
2017-10-14 | Update documentation and doc-tests for new content-disposition changes | Kartikaya Gupta | |
2017-10-12 | rustfmt | Young Wu | |
2017-10-12 | Store all params of Content-Type into BTreeMap<String, String> | Young Wu | |
2017-10-12 | Add Content-Disposition to mail | Young Wu | |
2016-12-26 | rustfmt | Kartikaya Gupta | |
2016-12-26 | add `get_body_raw` | Wu Young | |
2016-12-23 | add name field to ParsedContentType | Wu Young | |
2016-12-04 | Followup to 9f8013c2 (fix for issue #7) - deal with empty messages | Kartikaya Gupta | |
2016-12-04 | Fix for issue #7 - deal with lack of headers | Kartikaya Gupta | |