From 249a52982fcde3a36931966ab58110ca4ba5527f Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 19 May 2019 11:15:00 -0400 Subject: [PATCH] getmail: move getmailrc to $XDG_CONFIG_HOME/getmail, use dovecot-lda --- .bashrc | 5 ++++- {.getmail => .config/getmail}/getmailrc | 16 ++++++++-------- .emacs.d/var/eshell/alias | 5 ++++- 3 files changed, 16 insertions(+), 10 deletions(-) rename {.getmail => .config/getmail}/getmailrc (52%) 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/.getmail/getmailrc b/.config/getmail/getmailrc similarity index 52% rename from .getmail/getmailrc rename to .config/getmail/getmailrc index f2bff62..1f1a72d 100644 --- a/.getmail/getmailrc +++ b/.config/getmail/getmailrc @@ -7,13 +7,13 @@ 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') +type = MDA_external +path = /usr/lib/dovecot/deliver +arguments = ('-e', '-f', '%(sender)', '-d', 'bandali@gnu.local') [options] -delete = True +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 -- 2.20.1