879dfaec14bb5692b91ede5e4bf2a359d7eaf5e3
PIM/Mail.md
... | ... | @@ -59,17 +59,33 @@ ExecStart=/usr/bin/mbsync -c %h/%i/config/isync/mbsyncrc -V -a |
59 | 59 | ExecStartPost=%h/%i/config/notmuch-hook.sh |
60 | 60 | ``` |
61 | 61 | |
62 | -Sync flags when local flags are changed by notmuch by watching the notmuch xapian directory. |
|
62 | +Sync flags when flags are changed locally by watching the notmuch directory: |
|
63 | 63 | |
64 | 64 | `~/.config/systemd/user/mbsync@.path` |
65 | 65 | ```ini |
66 | 66 | [Path] |
67 | -PathChanged=%h/%i/mail/.notmuch/xapian |
|
67 | +PathChanged=%h/%i/mail/.notmuch |
|
68 | 68 | |
69 | 69 | [Install] |
70 | 70 | WantedBy=default.target |
71 | 71 | ``` |
72 | 72 | |
73 | +Finally, sync flags when flags are changed remotely with a timer: |
|
74 | + |
|
75 | +`~/.config/systemd/user/mbsync@.timer` |
|
76 | +```ini |
|
77 | +[Unit] |
|
78 | +Description=Mailbox synchronization timer |
|
79 | + |
|
80 | +[Timer] |
|
81 | +OnBootSec=2m |
|
82 | +OnUnitActiveSec=10m |
|
83 | +Unit=mbsync@%i.service |
|
84 | + |
|
85 | +[Install] |
|
86 | +WantedBy=timers.target |
|
87 | +``` |
|
88 | + |
|
73 | 89 | ## offlineimap |
74 | 90 | |
75 | 91 | `~/.offlineimaprc` example: |
... | ... | @@ -157,4 +173,4 @@ done |
157 | 173 | [3]: Mail?action=sourceblock&num=1 |
158 | 174 | [4]: http://docs.offlineimap.org/en/latest/FAQ.html#what-can-i-do-to-ensure-offlineimap-is-still-running-and-hasnt-crashed |
159 | 175 | [5]: Mail?action=sourceblock&num=2 |
160 | - [6]: http://blog.developwithpassion.com/2013/05/02/getting-up-and-running-with-a-sane-mutt-setup/ |
|
... | ... | \ No newline at end of file |
0 | + [6]: http://blog.developwithpassion.com/2013/05/02/getting-up-and-running-with-a-sane-mutt-setup/ |