aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--config.yaml8
-rw-r--r--dotfiles/offlineimap.py6
-rw-r--r--dotfiles/offlineimaprc38
-rw-r--r--install.sh8
5 files changed, 61 insertions, 0 deletions
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