summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile2
-rw-r--r--offlineimap/pass.py5
-rw-r--r--offlineimaprc31
-rwxr-xr-xservices/offlineimap/log/run3
-rwxr-xr-xservices/offlineimap/run3
6 files changed, 46 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 0c45ef1..f808b58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,8 @@ interhack/ttyrec
mutt/aliases
mutt/cache
mutt/extra
+offlineimap
+!offlineimap/pass.py
pentadactyl/info
procmail/log
ssh
diff --git a/Makefile b/Makefile
index d7fd7e4..884c795 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ INSTALL = aliases \
mutt \
nethackrc \
notmuch-config \
+ offlineimaprc \
pentadactylrc \
procmailrc \
proverc \
@@ -44,6 +45,7 @@ INSTALL = aliases \
fortune \
ncmpc \
procmail \
+ offlineimap \
pentadactyl \
services \
ssh \
diff --git a/offlineimap/pass.py b/offlineimap/pass.py
new file mode 100644
index 0000000..20ca510
--- /dev/null
+++ b/offlineimap/pass.py
@@ -0,0 +1,5 @@
+from subprocess import Popen, PIPE
+
+def get_password(key):
+ (out, err) = Popen(["pass", key], stdout=PIPE).communicate()
+ return out.strip()
diff --git a/offlineimaprc b/offlineimaprc
new file mode 100644
index 0000000..0d6b41b
--- /dev/null
+++ b/offlineimaprc
@@ -0,0 +1,31 @@
+[general]
+accounts = main
+maxsyncaccounts = 1
+fsync = false
+status_backend = sqlite
+pythonfile = ~/.offlineimap/pass.py
+
+[Account main]
+localrepository = main-local
+remoterepository = main-remote
+autorefresh = 5
+quick = 10
+
+[Repository main-local]
+type = Maildir
+localfolders = ~/Maildir
+
+[Repository main-remote]
+type = IMAP
+ssl = yes
+cert_fingerprint = aa7eaf38f6d1f00a91dc1024aadfc973d5f5266f
+remotehost = mail.tozt.net
+remoteuser = doy
+remotepasseval = get_password("mail/mail.tozt.net/doy")
+maxconnections = 2
+keepalive = 60
+holdconnectionopen = yes
+idlefolders = ['work', 'work.tickets', 'work.events', 'work.notifications', 'work.tools']
+subscribedonly = no
+
+# vim:ft=dosini:
diff --git a/services/offlineimap/log/run b/services/offlineimap/log/run
new file mode 100755
index 0000000..c8a46fd
--- /dev/null
+++ b/services/offlineimap/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+multilog t * $HOME/.log/offlineimap
diff --git a/services/offlineimap/run b/services/offlineimap/run
new file mode 100755
index 0000000..5589a60
--- /dev/null
+++ b/services/offlineimap/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec offlineimap 2>&1