From: Amin Bandali Date: Sun, 19 May 2019 15:15:00 +0000 (-0400) Subject: getmail: move getmailrc to $XDG_CONFIG_HOME/getmail, use dovecot-lda X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/249a52982fcde3a36931966ab58110ca4ba5527f getmail: move getmailrc to $XDG_CONFIG_HOME/getmail, use dovecot-lda --- diff --git a/.bashrc b/.bashrc index dded17c..5928570 100644 --- a/.bashrc +++ b/.bashrc @@ -36,7 +36,10 @@ 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 getmail='getmail --getmaildir "$XDG_CONFIG_HOME"/getmail --rcfile getmailrc' +alias mb="mbsync csclub; mbsync uwaterloo; mbsync amin" +alias gm="getmail" +alias m="mb; gm" alias best="youtube-dl -f best" aur() { diff --git a/.config/getmail/getmailrc b/.config/getmail/getmailrc new file mode 100644 index 0000000..1f1a72d --- /dev/null +++ b/.config/getmail/getmailrc @@ -0,0 +1,19 @@ +[retriever] +type = SimplePOP3SSLRetriever +server = fencepost.gnu.org +username = bandali +password_command = ("gpg2", "--no-tty", "-q", "-d", "/home/amin/.passwd/gnu.gpg") +port = 995 +use_apop = True + +[destination] +type = MDA_external +path = /usr/lib/dovecot/deliver +arguments = ('-e', '-f', '%(sender)', '-d', 'bandali@gnu.local') + +[options] +read_all = false +delete = false +delete_after = 14 +received = false +delivered_to = false diff --git a/.emacs.d/var/eshell/alias b/.emacs.d/var/eshell/alias index a2d9b2f..0cc10a0 100644 --- a/.emacs.d/var/eshell/alias +++ b/.emacs.d/var/eshell/alias @@ -15,4 +15,7 @@ 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 +alias getmail getmail --getmaildir $XDG_CONFIG_HOME/getmail --rcfile getmailrc $* +alias mb mbsync csclub; mbsync uwaterloo; mbsync amin +alias gm getmail +alias m mb; gm diff --git a/.getmail/getmailrc b/.getmail/getmailrc deleted file mode 100644 index f2bff62..0000000 --- a/.getmail/getmailrc +++ /dev/null @@ -1,19 +0,0 @@ -[retriever] -type = SimplePOP3SSLRetriever -server = fencepost.gnu.org -username = bandali -password_command = ("gpg2", "--no-tty", "-q", "-d", "/home/amin/.passwd/gnu.gpg") -port = 995 -use_apop = True - -[destination] -type = Maildir -path = ~/mail/gnu/Inbox/ - -# [destination] -# type = MDA_external -# path = /usr/lib/dovecot/deliver -# arguments = ('-d', 'amin@aminb.org') - -[options] -delete = True