3 lei - an overview of lei mail synchronization
7 L<lei(1)> provides several plumbing-level commands to synchronize
8 mail and keywords (flags) between lei/store and existing IMAP
9 and Maildir stores. Nothing documented in this manpage is required
10 for day-to-day use against externals.
12 Mail and keyword synchronization is currently a clunky process.
13 Future work will be done to improve it and add IMAP IDLE support.
15 =head1 TYPICAL WORKFLOW
17 # import mail from a user's IMAP inbox and give it the "inbox" label:
18 lei import +L:inbox imaps://user@example.com/INBOX
20 # dump "inbox" labeled files from the past week to a Maildir
21 lei q L:inbox rt:last.week.. -o /tmp/results
23 # open /tmp/results in your favorite mail agent. If inotify or kevent
24 # works, keyword changes (e.g. marking messages as `seen') are
25 # synchronized automatically.
27 # If the inotify queue overflows, or if lei-daemon crashes,
28 # "lei index" will tell lei about keyword changes:
29 lei index /tmp/results
31 # Optional: cleanup stale entries from mail_sync.sqlite3
32 lei refresh-mail-sync /tmp/results
34 # to export keyword changes back to IMAP
35 lei export-kw imaps://user@example.com/INBOX
39 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
41 The mail archives are hosted at L<https://public-inbox.org/meta/> and
42 L<http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
46 Copyright all contributors L<mailto:meta@public-inbox.org>
48 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
52 L<lei-import(1)>, L<lei-q(1)>, L<lei-index(1)>,
53 L<lei-refresh-mail-sync(1)>, L<lei-export-kw(1)>