1LEI-MAIL-SYNC-OVERVIEW(7)  public-inbox user manual  LEI-MAIL-SYNC-OVERVIEW(7)
2
3
4

NAME

6       lei - an overview of lei mail synchronization
7

DESCRIPTION

9       lei(1) provides several plumbing-level commands to synchronize mail and
10       keywords (flags) between lei/store and existing IMAP and Maildir
11       stores.  Nothing documented in this manpage is required for day-to-day
12       use against externals.
13
14       Mail and keyword synchronization is currently a clunky process.  Future
15       work will be done to improve it and add IMAP IDLE support.
16

TYPICAL WORKFLOW

18         # import mail from a user's IMAP inbox and give it the "inbox" label:
19         lei import +L:inbox imaps://user@example.com/INBOX
20
21         # dump "inbox" labeled files from the past week to a Maildir
22         lei q L:inbox rt:last.week.. -o /tmp/results
23
24         # open /tmp/results in your favorite mail agent.  If inotify or kevent
25         # works, keyword changes (e.g. marking messages as `seen') are
26         # synchronized automatically.
27
28         # If the inotify queue overflows, or if lei-daemon crashes,
29         # "lei index" will tell lei about keyword changes:
30         lei index /tmp/results
31
32         # Optional: cleanup stale entries from mail_sync.sqlite3
33         lei refresh-mail-sync /tmp/results
34
35         # to export keyword changes back to IMAP
36         lei export-kw imaps://user@example.com/INBOX
37

CONTACT

39       Feedback welcome via plain-text mail to <mailto:meta@public-inbox.org>
40
41       The mail archives are hosted at <https://public-inbox.org/meta/> and
42       <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
43
45       Copyright all contributors <mailto:meta@public-inbox.org>
46
47       License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
48

SEE ALSO

50       lei-import(1), lei-q(1), lei-index(1), lei-refresh-mail-sync(1),
51       lei-export-kw(1)
52
53
54
55public-inbox.git                  1993-10-02         LEI-MAIL-SYNC-OVERVIEW(7)
Impressum