summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-12-11 22:40:01 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-12-11 22:40:01 +0000
commit1f7ed635e21a70b1f1a6807557cf31f5612531af (patch)
tree428ff1005afbeaf3fe8e4fd9a0c54e23a15a3a67
parente04fe8d2555db89470db0bd71579c464e349bfd4 (diff)
Add openmailbox
-rw-r--r--.msmtprc7
-rw-r--r--.mutt/id_openmailbox2
-rw-r--r--.mutt/mailboxes2
-rw-r--r--.mutt/muttrc9
-rw-r--r--.offlineimap/offlineimaprc28
5 files changed, 40 insertions, 8 deletions
diff --git a/.msmtprc b/.msmtprc
index 11d902e..8af8add 100644
--- a/.msmtprc
+++ b/.msmtprc
@@ -18,5 +18,12 @@ user uv113@ic.ac.uk
passwordeval "gpg --use-agent --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/Mail/imperial.gpg"
port 587
+account openmailbox
+host smtp.openmailbox.org
+from urbain.p.vaes@openmailbox.org
+user urbain.p.vaes
+passwordeval "gpg --use-agent --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/Mail/openmailbox.gpg"
+port 587
+
# Set a default account
account default : gmail
diff --git a/.mutt/id_openmailbox b/.mutt/id_openmailbox
new file mode 100644
index 0000000..99518a1
--- /dev/null
+++ b/.mutt/id_openmailbox
@@ -0,0 +1,2 @@
+set from = "urbain.p.vaes@openmailbox.org"
+set sendmail="/usr/bin/msmtp -a openmailbox"
diff --git a/.mutt/mailboxes b/.mutt/mailboxes
index 6161f0e..53a640f 100644
--- a/.mutt/mailboxes
+++ b/.mutt/mailboxes
@@ -1 +1 @@
-mailboxes "+Gmail/Gmail" "+Imperial/Imperial" "+Main/Drafts" "+Main/Main" "+Main/Sent"
+mailboxes "+openmailbox/Free" "+Main/Main" "+Gmail/Gmail" "+Imperial/Imperial" "+Main/Sent" "+Main/Drafts" "+Main/Bin"
diff --git a/.mutt/muttrc b/.mutt/muttrc
index f5731a7..3918c3a 100644
--- a/.mutt/muttrc
+++ b/.mutt/muttrc
@@ -32,10 +32,11 @@ set pgp_timeout = 3600
set spoolfile = "+Main/Main"
set record = "+Main/Sent"
set postponed = "+Main/Drafts"
+set trash = "+Main/Bin"
# Sidebar
set sidebar_width=26
-set sidebar_visible = no
+set sidebar_visible = yes
set sidebar_delim='|'
bind index,pager \Cn sidebar-next
bind index,pager \Cp sidebar-prev
@@ -75,9 +76,9 @@ bind index i flag-message
bind pager \Ce next-line
bind pager \Cy previous-line
-bind pager j next-entry
-bind pager k previous-entry
-bind pager R group-reply
+bind pager j next-entry
+bind pager k previous-entry
+bind pager R group-reply
# Source mutt solarized
`[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set`
diff --git a/.offlineimap/offlineimaprc b/.offlineimap/offlineimaprc
index 96c13c5..87b517a 100644
--- a/.offlineimap/offlineimaprc
+++ b/.offlineimap/offlineimaprc
@@ -1,7 +1,7 @@
[general]
ui = ttyui
pythonfile = /home/urbain/.offlineimap.py
-accounts = Imperial, Main, Gmail
+accounts = Imperial, Main, Gmail, openmailbox
maxsyncaccounts = 4
[Account Imperial]
@@ -43,8 +43,8 @@ remoteuser = urbain.p.vaes
remotepasseval = mailpasswd("main")
realdelete = no
maxconnections = 3
-nametrans = lambda folder : {'INBOX' : 'Main', '[Gmail]/Sent Mail' : 'Sent', '[Gmail]/Drafts' : 'Drafts'}.get(folder, folder)
-folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Sent Mail', '[Gmail]/Drafts']
+nametrans = lambda folder : {'INBOX' : 'Main', '[Gmail]/Sent Mail' : 'Sent', '[Gmail]/Drafts' : 'Drafts', '[Gmail]/Bin' : 'Bin'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Sent Mail', '[Gmail]/Drafts', '[Gmail]/Bin']
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
[Account Gmail]
@@ -68,6 +68,28 @@ nametrans = lambda folder: {'INBOX' : 'Gmail'}.get(folder, folder)
folderfilter = lambda folder: folder in ['INBOX']
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+[Account openmailbox]
+localrepository = openmailbox-Local
+remoterepository = openmailbox-Remote
+autorefresh = 10
+
+[Repository openmailbox-Local]
+type = Maildir
+localfolders = ~/.mail/openmailbox
+status_backend = sqlite
+nametrans = lambda folder : {'Free' : 'INBOX'}.get(folder, folder)
+
+
+[Repository openmailbox-Remote]
+type = IMAP
+remotehost = imap.openmailbox.org
+remoteuser = urbain.p.vaes@openmailbox.org
+remotepasseval = mailpasswd("openmailbox")
+nametrans = lambda folder: {'INBOX' : 'Free'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['INBOX']
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+realdelete = no
+
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes