Unverified Commit a048b9e0 authored by Copilot's avatar Copilot Committed by GitHub
Browse files

Add RFC 2047 non-ASCII header encoding/decoding support (#405)



* Add RFC 2047 encoding/decoding support for non-ASCII header values

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Address code review feedback for RFC 2047 implementation

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Focus PR on rfc2047 module only and add comprehensive tests for 100% coverage

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Improve test comment clarity

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Use Cow to reduce allocations and thiserror for error definitions

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>

* Enforce RFC 2047 75-character limit for encoded-words

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Fix UTF-8 character boundaries and whitespace handling in RFC 2047

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Apply review feedback: safety assertions and empty result check

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Apply comprehensive review feedback: security, optimizations, and testing improvements

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* Add input size validation to decode and comprehensive EncodeError tests

Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>

* fix

---------

Co-authored-by: default avatarcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: default avatarNugine <30099658+Nugine@users.noreply.github.com>
Co-authored-by: default avatarNugine <nugine@foxmail.com>
Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 5b238ecc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
pub mod crypto;
pub mod parser;
pub mod rfc2047;

pub mod format;

+721 −0

File added.

Preview size limit exceeded, changes collapsed.