summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-19 11:15:00 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-19 11:30:51 -0400
commit249a52982fcde3a36931966ab58110ca4ba5527f (patch)
tree2373679da0ad6294fc45cc649c00e8f30a15aae3
parent2e9074a435c0a80b44bd7a8d1a050884dcb44bce (diff)
downloadconfigs-249a52982fcde3a36931966ab58110ca4ba5527f.tar.gz
configs-249a52982fcde3a36931966ab58110ca4ba5527f.tar.xz
configs-249a52982fcde3a36931966ab58110ca4ba5527f.zip
getmail: move getmailrc to $XDG_CONFIG_HOME/getmail, use dovecot-lda
-rw-r--r--.bashrc5
-rw-r--r--.config/getmail/getmailrc (renamed from .getmail/getmailrc)16
-rw-r--r--.emacs.d/var/eshell/alias5
3 files changed, 16 insertions, 10 deletions
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
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