Commit Graph
201 Commits
Author SHA1 Message Date
sftse 0baffddb28 Minor fixes (#87)
* Move multipart classification into own closure

* Add classification enum

* Express classification indirectly with an enum

* Express logic clause in equivalent way, add assert inline test to make sure of it

* Remove old classifier

* Remove enum indirection

* Remove closure

* Hoist common if condition into outer scope

* Simplify expression

* Simplify lifetime bounds

A missing lifetime in the GetHeader trait was inferred by lifetime elision rules
to be shorter than necessary, leading to awkward lifetime constraints being
propagated throughout many functions that didnt need them.

* Prohibit Rust 2018 idioms, return longest feasible lifetimes

* Dont duplicate crlf in extension when saving failing results
2024-10-21 17:21:56 +02:00
董彬 54ca7df6eb Update multi_byte.rs (#86)
Under some extreme circumstances, the pre-allocated length might not be sufficient.
2024-09-08 18:18:48 +02:00
mdecimus c3f28cb4d1 v0.9.4 2024-09-04 09:10:33 +02:00
mdecimus e512a66bb0 More flexible charset name parsing (closes #85) 2024-08-30 17:04:00 +02:00
mdecimus 6a48ed69b6 Removed FUNDING 2024-08-09 18:28:23 +02:00
mdecimus dfda00c939 Fix nestead attachment contents and len functions (fixes #84) 2024-08-09 18:27:09 +02:00
mdecimus a96497d7a3 v0.9.3 2024-03-28 15:46:25 +01:00
Clément DOUIN ad4dff69c3 fix address name containing @ (#80) 2024-03-14 13:29:37 +01:00
Arif Driessen cf87d3556c initial commit (#77) 2024-02-07 13:48:28 +01:00
Mauro D 4ff4c57e2c Clippy fixes 2024-01-08 19:31:34 +01:00
Mauro D 598cba3b87 Added liberapay 2024-01-08 19:23:59 +01:00
sftse 716c0d747e correctly parse obsolete years as in RFC5322 section 4.3 (#72) 2024-01-05 18:28:36 +01:00
mdecimus 65533d3faf v0.9.2 v0.9.2 2023-11-27 09:34:59 +01:00
mdecimus 28a9b67b9a Fix Received struct serialization for bincode compatibility 2023-11-09 17:40:47 +01:00
mdecimus b6c080ff45 Updaded keywords v0.9.1 2023-09-22 13:39:53 +02:00
mdecimus 56d2c3b8b0 v0.9.1 2023-09-22 13:38:55 +02:00
mdecimus 816d944f2e Updated Rust version 2023-09-16 17:28:58 +02:00
mdecimus e5a4e65112 v0.9.0 v0.9.0 2023-09-05 18:11:49 +02:00
mdecimus b0a5925eac v0.9.0 2023-09-05 11:07:39 +02:00
mdecimus 4b5455c196 MessageParser builder 2023-09-05 10:54:39 +02:00
mdecimus ec04c1412d Merged RfcHeader into HeaderName 2023-09-04 19:48:47 +02:00
mdecimus e230000856 Moved address related object to Address enum 2023-09-04 18:27:15 +02:00
mdecimus 8e5381f60b Project reorganization 2023-09-04 15:23:45 +02:00
mdecimus 5a7b50059f Received header parser 2023-09-03 20:49:20 +02:00
mdecimus 7c08078617 Into_owned returns static lifetime 2023-09-01 09:01:29 +02:00
mdecimus da62659eb6 Support for trailing whitespaces in quoted printable MIME encoded parts. 2023-07-03 11:05:03 +02:00
mdecimus 405b742be2 Support for trailing whitespaces in quoted printable MIME encoded parts. 2023-07-03 10:42:33 +02:00
mdecimus 743aacafad Support for trailing whitespaces in quoted printable MIME encoded parts. 2023-07-03 10:17:26 +02:00
mdecimus ffb5a7fd61 Added header_as function 2023-07-03 09:14:24 +02:00
Geert Stappers 154591697f cargo fmt (#48) 2023-05-14 11:01:14 +02:00
Mauro D c7790a8925 Clippy fixes. 2023-04-12 09:13:48 +00:00
Mauro D 77fe8cd0d1 v0.8.2 0.8.2 2023-02-22 13:18:24 +00:00
Mauro D b4478f74e2 Fix: Missing space when folded header begins with RFC2047 word (#43) 2023-02-21 18:39:25 +00:00
Dany Laporte da1e6180db Fix parsing name from address (#41) 2023-02-19 20:25:42 +01:00
Mauro D cf8de086c7 Added raw_message() function 0.8.1 2023-02-09 00:08:30 +00:00
Mauro D c7ae90b3bf Fixed clippy warnings. 2023-02-08 23:53:08 +00:00
Mauro D bb0e42e13b Minor fixes. 0.8.0 2022-11-30 18:31:07 +00:00
Mauro D 8ff26db481 Renamed body_html and body_text functions. 2022-11-28 13:03:29 +00:00
Mauro D f4424eeefc Removed get_() prefixes (#31) 2022-11-28 12:37:33 +00:00
Rudi HornandRudi Horn c542f8a0db Use modified time instead of created time (#32)
Co-authored-by: Rudi Horn <dyn-git@rudi-horn.de>
2022-11-20 21:08:44 +01:00
Mauro D 26bca49aac base64_decode_stream and quoted_printable_decode_char 2022-11-03 17:24:57 +00:00
Mauro D 58b1bc8966 HeaderName parse function implementation. 0.7.0 2022-10-21 07:15:42 +00:00
Mauro D fbd53cb094 Added additional functionality to DateTime. 2022-10-16 14:01:16 +00:00
Mauro D be32ba64a9 Fixed values of non-RFC headers. 2022-10-14 13:43:29 +00:00
Mauro D 7b08027955 Added len() to PartType. 2022-10-13 16:57:15 +00:00
Mauro D b653d6fa3d Update single byte decoder. 2022-10-13 14:59:32 +00:00
Mauro D 1bf8860da8 Fixed fuzz tests. Removed serde from default features. 2022-10-13 14:28:24 +00:00
Mauro D 6fcc57a3d9 Refactoring or MessageStream to use iterators more efficiently. 2022-10-13 14:09:43 +00:00
Mauro D ef19d20f9c Automatic parsing of base64/qp encoded nested messages. 2022-10-12 15:48:23 +00:00
Mauro D b5af895140 Added helper functions. 2022-10-11 20:20:21 +00:00