mail

command
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

usr/bin/env go run "$0" "$@"; exit bin/mail/sync.go - async download of OnlyOffice and Gmail mail to var/mail/.

./bin/mail/sync.go --source onlyoffice,gmail --limit 50 --workers 8
./bin/mail/sync.go --source gmail --force
./bin/mail/sync.go --dry-run

Writes raw message.json + attachments under var/mail/<folder>/<id>/; run bin/mail/import --from-raw afterwards to convert everything to markdown.

Shebang trick: first line is a Go `//` comment; the real code lives in the importable package (module path, never a relative import). NOTE: never run `gofmt -w` on this file - it rewrites `//usr/bin/env` to `// usr/...` and breaks the shebang.

Directories

Path Synopsis
Package synccmd wires the sync library to a CLI: reads .env, parses flags, picks sources, prints stats.
Package synccmd wires the sync library to a CLI: reads .env, parses flags, picks sources, prints stats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL