diff options
-rw-r--r-- | .msmtprc | 7 | ||||
-rw-r--r-- | .mutt/id_openmailbox | 2 | ||||
-rw-r--r-- | .mutt/mailboxes | 2 | ||||
-rw-r--r-- | .mutt/muttrc | 9 | ||||
-rw-r--r-- | .offlineimap/offlineimaprc | 28 |
5 files changed, 40 insertions, 8 deletions
@@ -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 |