[feat] Archive Subsystem (Streaming ZIP & SHA-256) and Restore Engine #48

Closed
opened 2026-08-30 17:58:52 +03:00 by jalmari · 1 comment
Owner

Parent

#44: [spec] Port MailSweep to Synchronous Rust

What to build

Implement the streaming archive subsystem that downloads RFC 822 .eml messages directly into timestamped .zip archives with on-the-fly SHA-256 calculation, manifest verification, and the atomic restore engine.

Acceptance criteria

  • Streaming RFC 822 .eml message extractor directly into timestamped .zip archives.
  • Simultaneous on-the-fly SHA-256 checksum calculation and .sha256 manifest generation.
  • Verification routine confirming archive checksum before allowing destructive cleanup.
  • Restore engine reading .zip archives and relocating messages from Trash back to original destination folders.
  • cargo test, cargo fmt --check, and cargo clippy --all-targets --all-features -- -D warnings pass with 0 warnings.

Blocked by

  • #45: [feat] Core Domain Types, Configuration & RFC Codecs
## Parent #44: [spec] Port MailSweep to Synchronous Rust ## What to build Implement the streaming archive subsystem that downloads RFC 822 `.eml` messages directly into timestamped `.zip` archives with on-the-fly SHA-256 calculation, manifest verification, and the atomic restore engine. ## Acceptance criteria - [ ] Streaming RFC 822 `.eml` message extractor directly into timestamped `.zip` archives. - [ ] Simultaneous on-the-fly `SHA-256` checksum calculation and `.sha256` manifest generation. - [ ] Verification routine confirming archive checksum before allowing destructive cleanup. - [ ] Restore engine reading `.zip` archives and relocating messages from Trash back to original destination folders. - [ ] `cargo test`, `cargo fmt --check`, and `cargo clippy --all-targets --all-features -- -D warnings` pass with 0 warnings. ## Blocked by - #45: [feat] Core Domain Types, Configuration & RFC Codecs
Author
Owner

Implemented streaming ZIP archive creation with on-the-fly SHA-256 calculation, manifest generation, integrity verification, and the atomic restore engine. All 36 unit and integration tests pass with zero clippy warnings.

Implemented streaming ZIP archive creation with on-the-fly SHA-256 calculation, manifest generation, integrity verification, and the atomic restore engine. All 36 unit and integration tests pass with zero clippy warnings.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Lavisys/mailsweep#48
No description provided.