Add export-files: an archive as Maildir, vCard, iCalendar and Sieve files #26

Merged
jcoffey-dev merged 1 commits from feat/export-files into main 2026-10-30 05:42:15 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev fe96d7d234 Add export-files: an archive as Maildir, vCard, iCalendar and Sieve files
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 4m23s
ci / announce (pull_request) Skipped
The way out of an archive for anything that doesn't speak JMAP: mail as a
Maildir++ tree Dovecot and Courier serve as it is, each address book as a
.vcf, each calendar as one .ics, Sieve scripts, the file tree, and a
manifest.json with what those formats don't hold (real folder names, roles,
the active script, identities, links). No network; a new or empty
directory only, private to its owner; every name from the source made safe
as a path. Photos and attachments are inlined as data: URIs, as export
sends them. Links are listed, never made.

The readers it round-trips through get what that needs:
- import maildir decodes modified UTF-7 folder names and reads each
  folder's dovecot-keywords, so Junk and labels come back;
- import takeout unfolds and unescapes X-WR-CALNAME and X-WR-CALDESC.

tests/export_files.rs writes an archive out and reads it back with import
maildir and import takeout.
2026-10-29 22:37:08 -07:00