From a7838c4513bdc183c98e560a724162c472674558 Mon Sep 17 00:00:00 2001 From: neodarz Date: Thu, 5 Sep 2019 09:21:31 +0200 Subject: Add offlineimap config --- README.md | 1 + config.yaml | 8 ++++++++ dotfiles/offlineimap.py | 6 ++++++ dotfiles/offlineimaprc | 38 ++++++++++++++++++++++++++++++++++++++ install.sh | 8 ++++++++ 5 files changed, 61 insertions(+) create mode 100644 dotfiles/offlineimap.py create mode 100644 dotfiles/offlineimaprc diff --git a/README.md b/README.md index 860ea0f..bbd1ad6 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ msmtp > smtp client config newsboat > rss feeds client config notmuch > notmuch mail system config + offlineimap > imap client config nvim > neovim config scripts > misc scripts systemd > user services for differents application diff --git a/config.yaml b/config.yaml index 652c9c9..4d0c5d2 100644 --- a/config.yaml +++ b/config.yaml @@ -51,6 +51,12 @@ dotfiles: f_init.vim: src: config/nvim/init.vim dst: ~/.config/nvim/init.vim + f_offlineimap.py: + src: offlineimap.py + dst: ~/.offlineimap.py + f_offlineimaprc: + src: offlineimaprc + dst: ~/.offlineimaprc profiles: unicorn: dotfiles: @@ -70,6 +76,8 @@ profiles: - d_newsboat - f_notmuch-config - f_init.vim + - f_offlineimap.py + - f_offlineimaprc fenec: dotfiles: - d_i3pystatus diff --git a/dotfiles/offlineimap.py b/dotfiles/offlineimap.py new file mode 100644 index 0000000..8309482 --- /dev/null +++ b/dotfiles/offlineimap.py @@ -0,0 +1,6 @@ +#! /usr/bin/env python2 +from subprocess import check_output + + +def get_pass(account): + return check_output("pass Mail/" + account, shell=True).splitlines()[0] diff --git a/dotfiles/offlineimaprc b/dotfiles/offlineimaprc new file mode 100644 index 0000000..f0db668 --- /dev/null +++ b/dotfiles/offlineimaprc @@ -0,0 +1,38 @@ +# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to +# get started fast. + +[general] +accounts = neodarz, corentin.breton +pythonfile = ~/.offlineimap.py + +[Account neodarz] +localrepository = neodarz-local +remoterepository = neodarz-remote + +[Repository neodarz-local] +type = Maildir +localfolders = ~/Mail/neodarz@neodarz.net + +[Repository neodarz-remote] +type = IMAP +remotehost = mail.neodarz.net +remoteuser = neodarz@neodarz.net +remotepasseval = get_pass("neodarz@neodarz.net") +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt + +[Account corentin.breton] +localrepository = corentin.breton-local +remoterepository = corentin.breton-remote + +[Repository corentin.breton-local] +type = Maildir +localfolders = ~/Mail/corentin.breton@neodarz.net + +[Repository corentin.breton-remote] +type = IMAP +remotehost = mail.neodarz.net +remoteuser = corentin.breton@neodarz.net +remotepasseval = get_pass("corentin.breton@neodarz.net") +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt diff --git a/install.sh b/install.sh index f0af9a7..fb1948d 100644 --- a/install.sh +++ b/install.sh @@ -132,6 +132,10 @@ #sudo pacman -S python-neovim python-twisted +## offlineimap + +#sudo pacman -S offlineimap + # install dotfiles # post install dotfile @@ -141,3 +145,7 @@ #git clone https://github.com/vundlevim/vundle.vim.git ~/.config/nvim/bundle/Vundle.vim #nvim +PluginInstall +qall + +# notmuch + +#notmuch new -- cgit v1.2.1