};
#+end_src
+** dovecot
+:PROPERTIES:
+:header-args+: :tangle "/sudo::/etc/dovecot/dovecot.conf"
+:END:
+
+#+begin_src conf
+protocols = imap
+
+listen = 127.0.0.1
+log_path = /var/log/dovecot.log
+info_log_path = /var/log/dovecot-info.log
+
+ssl = no
+disable_plaintext_auth = no
+
+auth_verbose = yes
+auth_mechanisms = plain
+
+passdb {
+ driver = passwd-file
+ args = /etc/dovecot/passwd
+}
+
+userdb {
+ driver = static
+ args = uid=amin gid=amin home=/home/amin/mail/%d/%n
+ default_fields = mail=maildir:/home/amin/mail/%d/%n/mail
+}
+
+# mail_home = /home/amin/mail/%d/%n
+# mail_location = maildir:/home/amin/mail/%d/%n/mail:LAYOUT=fs:INBOX=/home/amin/mail/%d/%n/mail/Inbox
+
+# namespace {
+# inbox = yes
+# separator = /
+# }
+
+mail_plugins = $mail_plugins fts fts_lucene
+
+plugin {
+ fts = lucene
+ fts_lucene = whitespace_chars=@.
+ fts_autoindex = yes
+}
+#+end_src
+
** Dunst
:PROPERTIES:
:header-args+: :tangle ~/.config/dunst/dunstrc
#+begin_src conf
# Global defaults
CopyArrivalDate yes
+Create Both
+Expunge Both
######
IMAPAccount amin
IMAPStore amin-remote
Account amin
-MaildirStore amin-local
-Path ~/mail/amin/
-Inbox ~/mail/amin/Inbox
-SubFolders Verbatim
+IMAPAccount amin-dovecot
+Host 127.0.0.1
+Port 143
+User amin@aminb.org
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin-dovecot.gpg"
+SSLType None
+
+IMAPStore amin-local
+Account amin-dovecot
Channel amin
Master :amin-remote:
Slave :amin-local:
-Patterns * !dovecot*
-Create Both
-SyncState *
+Patterns *
######
IMAPAccount uwaterloo
IMAPStore uwaterloo-remote
Account uwaterloo
-MaildirStore uwaterloo-local
-Path ~/mail/uwaterloo/
-Inbox ~/mail/uwaterloo/Inbox
-SubFolders Verbatim
+IMAPAccount uwaterloo-dovecot
+Host 127.0.0.1
+Port 143
+User abandali@uwaterloo.ca
+PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo-dovecot.gpg"
+SSLType None
+
+IMAPStore uwaterloo-local
+Account uwaterloo-dovecot
Channel uwaterloo
Master :uwaterloo-remote:
Slave :uwaterloo-local:
-Patterns * !dovecot*
-Create Both
-SyncState *
+Patterns *
#+end_src
*** mbsync.service
# configured here named ".notmuch".
#
[database]
-path=/home/amin/mail
+path=/home/amin/oldmail
# User configuration
#
alias cp="cp -iv"
alias scl=systemctl
alias jcl=journalctl
-alias m="mbsync -a; notmuch new"
+alias m="mbsync -a"
alias best="youtube-dl -f best"
alias sd="ssh deb"
alias sf="ssh fp"