From 9a033f3c532c6886e29f6a56af70abe9ba9790d6 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 20 Sep 2015 08:47:29 +0200 Subject: [PATCH] mu4e: mbsync & mail auth files for emacs smtp --- .gitignore | 2 ++ Makefile | 8 +++++++- authinfo.m4 | 1 + mbsyncrc.m4 | 20 ++++++++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 authinfo.m4 create mode 100644 mbsyncrc.m4 diff --git a/.gitignore b/.gitignore index bf3257c..8f6b246 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ procmailrc gitconfig ctags i3/config +mbsyncrc +authinfo diff --git a/Makefile b/Makefile index b78a5c3..4995a30 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ FILES = bashrc vimrc zshrc gitconfig screenrc commonshrc \ gnomerc gvimrc muttrc pentadactylrc mailcap latexmkrc ctags \ - i3/config i3status.conf msmtprc spacemacs emacs.d + i3/config i3status.conf msmtprc spacemacs emacs.d mbsyncrc authinfo .PHONY: install clean check @@ -38,6 +38,12 @@ install-vim-plug: test -f $(VIM_DIR)/autoload/plug.vim || curl -fLo $(VIM_DIR)/autoload/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +mbsyncrc: mbsyncrc.m4 + umask 077; m4 $< >$@ + +authinfo: authinfo.m4 + umask 077; m4 $< >$@ + endif clean: diff --git a/authinfo.m4 b/authinfo.m4 new file mode 100644 index 0000000..2827b30 --- /dev/null +++ b/authinfo.m4 @@ -0,0 +1 @@ +machine mail.gebner.org login gebner password esyscmd(`pass 2b7e.org/mail.gebner.org | head -n1') diff --git a/mbsyncrc.m4 b/mbsyncrc.m4 new file mode 100644 index 0000000..21c3e01 --- /dev/null +++ b/mbsyncrc.m4 @@ -0,0 +1,20 @@ +IMAPAccount gebner_org +Host mail.gebner.org +User gebner +SSLType IMAPS +SSLVersions TLSv1.2 +CertificateFile /etc/ssl/certs/ca-certificates.crt +Pass esyscmd(`pass 2b7e.org/mail.gebner.org | head -n1') + +IMAPStore gebner_org-remote +Account gebner_org + +MaildirStore local +Path ~/Maildir/ + +Channel ge +Master :gebner_org-remote: +Slave :local: +Pattern * +Create Both +Expunge Both