From c036d6d7d172cbcbeaabc8eac19f9b44fd612d7c Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 10 May 2019 20:00:34 -0400 Subject: isync: move mbsyncrc to $XDG_CONFIG_HOME/isync --- .bashrc | 1 + .config/isync/mbsyncrc | 79 +++++++++++++++++++++++++++++++++++++++++++++++ .emacs.d/var/eshell/alias | 1 + .mbsyncrc | 79 ----------------------------------------------- 4 files changed, 81 insertions(+), 79 deletions(-) create mode 100644 .config/isync/mbsyncrc delete mode 100644 .mbsyncrc diff --git a/.bashrc b/.bashrc index a5cc322..7b7d7f8 100644 --- a/.bashrc +++ b/.bashrc @@ -33,6 +33,7 @@ alias mv="mv -iv" alias cp="cp -iv" alias scl=systemctl alias jcl=journalctl +alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc' alias m="mbsync csclub; mbsync uwaterloo; mbsync amin" alias best="youtube-dl -f best" diff --git a/.config/isync/mbsyncrc b/.config/isync/mbsyncrc new file mode 100644 index 0000000..96b3b28 --- /dev/null +++ b/.config/isync/mbsyncrc @@ -0,0 +1,79 @@ +# Global defaults +CopyArrivalDate yes +Create Both +Expunge Both + +###### +IMAPAccount amin +Host mail.bndl.org +User amin@bndl.org +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin.gpg" +SSLType IMAPS + +IMAPStore amin-remote +Account amin + +IMAPAccount amin-dovecot +Host 127.0.0.1 +Port 143 +User amin@bndl.local +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 * + +###### +IMAPAccount uwaterloo +Host connect.uwaterloo.ca +User abandali +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo.gpg" +SSLType IMAPS + +IMAPStore uwaterloo-remote +Account uwaterloo + +IMAPAccount uwaterloo-dovecot +Host 127.0.0.1 +Port 143 +User abandali@uw.local +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 * + +###### +IMAPAccount csclub +Host mail.csclub.uwaterloo.ca +User abandali +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub.gpg" +SSLType IMAPS + +IMAPStore csclub-remote +Account csclub + +IMAPAccount csclub-dovecot +Host 127.0.0.1 +Port 143 +User abandali@csc.uw.local +PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub-dovecot.gpg" +SSLType None + +IMAPStore csclub-local +Account csclub-dovecot + +Channel csclub +Master :csclub-remote: +Slave :csclub-local: +Patterns * diff --git a/.emacs.d/var/eshell/alias b/.emacs.d/var/eshell/alias index e086adf..a2d9b2f 100644 --- a/.emacs.d/var/eshell/alias +++ b/.emacs.d/var/eshell/alias @@ -14,4 +14,5 @@ alias up eshell-up $1 alias pk eshell-up-peek $1 alias vi find-file $1 alias vim find-file $1 +alias mbsync mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc $* alias m mbsync csclub; mbsync uwaterloo; mbsync amin diff --git a/.mbsyncrc b/.mbsyncrc deleted file mode 100644 index 96b3b28..0000000 --- a/.mbsyncrc +++ /dev/null @@ -1,79 +0,0 @@ -# Global defaults -CopyArrivalDate yes -Create Both -Expunge Both - -###### -IMAPAccount amin -Host mail.bndl.org -User amin@bndl.org -PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin.gpg" -SSLType IMAPS - -IMAPStore amin-remote -Account amin - -IMAPAccount amin-dovecot -Host 127.0.0.1 -Port 143 -User amin@bndl.local -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 * - -###### -IMAPAccount uwaterloo -Host connect.uwaterloo.ca -User abandali -PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo.gpg" -SSLType IMAPS - -IMAPStore uwaterloo-remote -Account uwaterloo - -IMAPAccount uwaterloo-dovecot -Host 127.0.0.1 -Port 143 -User abandali@uw.local -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 * - -###### -IMAPAccount csclub -Host mail.csclub.uwaterloo.ca -User abandali -PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub.gpg" -SSLType IMAPS - -IMAPStore csclub-remote -Account csclub - -IMAPAccount csclub-dovecot -Host 127.0.0.1 -Port 143 -User abandali@csc.uw.local -PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub-dovecot.gpg" -SSLType None - -IMAPStore csclub-local -Account csclub-dovecot - -Channel csclub -Master :csclub-remote: -Slave :csclub-local: -Patterns * -- cgit v1.2.3-60-g2f50