[feat] Core Domain Types, Configuration & RFC Codecs #45
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#46 [feat] 13-Language Heuristic Classifier & Safety Tier Engine
Lavisys/mailsweep
#47 [feat] Synchronous Mailbox Gateway & Incremental Scan Cache
Lavisys/mailsweep
Reference
Lavisys/mailsweep#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#44: [spec] Port MailSweep to Synchronous Rust
What to build
Set up the root Cargo project structure and implement the core domain models (
EmailHeader,Folder,UID,UIDVALIDITY,Config,MailSweepError), environment loading withdotenvy, and pure RFC codecs (multi-pass RFC 2047 MIME decoding, RFC 3501 Modified UTF-7 folder codec,BODYSTRUCTUREattachment inspection, and RFC 2369 / RFC 8058List-Unsubscribeextraction) verified against test vectors.Acceptance criteria
Cargo.tomlconfigured with standard dependencies (email-encoding,encoding_rs,dotenvy,thiserror,serde,serde_json).BODYSTRUCTUREparser accurately detects PDF attachments and embedded media flags.EmailHeader,Folder,UID,UIDVALIDITY,Config) and structuredMailSweepErrorenums implemented.cargo test,cargo fmt --check, andcargo clippy --all-targets --all-features -- -D warningspass with 0 warnings.Blocked by
Implemented core domain models, configuration with dotenvy, structured MailSweepError enums, and pure RFC codecs (RFC 2047, RFC 3501 Modified UTF-7, BODYSTRUCTURE parser, List-Unsubscribe parser) with 100% test pass rate.