From 314ae0959031e336468c9d4ca774554d6fbb6244 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 4 Jan 2016 16:53:45 +0000 Subject: Change names of identities mutt --- .msmtprc | 2 +- .mutt/id_imperial | 11 ----------- .mutt/id_personal | 11 +++++++++++ .mutt/id_private | 11 ----------- .mutt/id_work | 11 +++++++++++ .mutt/mailboxes | 2 +- .mutt/muttrc | 16 ++++++++-------- .offlineimap/offlineimaprc | 40 ++++++++++++++++++---------------------- 8 files changed, 50 insertions(+), 54 deletions(-) delete mode 100644 .mutt/id_imperial create mode 100644 .mutt/id_personal delete mode 100644 .mutt/id_private create mode 100644 .mutt/id_work diff --git a/.msmtprc b/.msmtprc index f1bbecb..565459b 100644 --- a/.msmtprc +++ b/.msmtprc @@ -25,7 +25,7 @@ user uv113@ic.ac.uk passwordeval "gpg --use-agent --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/imperial/u.vaes13@imperial.ac.uk.gpg" port 587 -account private +account openmailbox host smtp.openmailbox.org from urbain.p.vaes@openmailbox.org user urbain.p.vaes@openmailbox.org diff --git a/.mutt/id_imperial b/.mutt/id_imperial deleted file mode 100644 index d4b828d..0000000 --- a/.mutt/id_imperial +++ /dev/null @@ -1,11 +0,0 @@ -set from = "u.vaes13@imperial.ac.uk" -set sendmail="/usr/bin/msmtp -a imperial" - -set spoolfile = "+Imperial/Imperial" -set record = "+Imperial/Imperial.sent" -set postponed = "+Imperial/Imperial.drafts" -set trash = "+Imperial/Imperial.bin" - -macro index,pager gs " $record" -macro index,pager gd " $postponed" -macro index,pager gb " $trash" diff --git a/.mutt/id_personal b/.mutt/id_personal new file mode 100644 index 0000000..5449002 --- /dev/null +++ b/.mutt/id_personal @@ -0,0 +1,11 @@ +set from = "urbain.p.vaes@openmailbox.org" +set sendmail="/usr/bin/msmtp -a openmailbox" + +set spoolfile = "+Personal/Personal" +set record = "+Personal/Personal.sent" +set postponed = "+Personal/Personal.drafts" +set trash = "+Personal/Personal.bin" + +macro index,pager gs " $record" +macro index,pager gd " $postponed" +macro index,pager gb " $trash" diff --git a/.mutt/id_private b/.mutt/id_private deleted file mode 100644 index b82d298..0000000 --- a/.mutt/id_private +++ /dev/null @@ -1,11 +0,0 @@ -set from = "urbain.p.vaes@openmailbox.org" -set sendmail="/usr/bin/msmtp -a private" - -set spoolfile = "+Private/Private" -set record = "+Private/Private.sent" -set postponed = "+Private/Private.drafts" -set trash = "+Private/Private.bin" - -macro index,pager gs " $record" -macro index,pager gd " $postponed" -macro index,pager gb " $trash" diff --git a/.mutt/id_work b/.mutt/id_work new file mode 100644 index 0000000..238cfcb --- /dev/null +++ b/.mutt/id_work @@ -0,0 +1,11 @@ +set from = "u.vaes13@imperial.ac.uk" +set sendmail="/usr/bin/msmtp -a imperial" + +set spoolfile = "+Work/Work" +set record = "+Work/Work.sent" +set postponed = "+Work/Work.drafts" +set trash = "+Work/Work.bin" + +macro index,pager gs " $record" +macro index,pager gd " $postponed" +macro index,pager gb " $trash" diff --git a/.mutt/mailboxes b/.mutt/mailboxes index 5fda20c..14722ea 100644 --- a/.mutt/mailboxes +++ b/.mutt/mailboxes @@ -1 +1 @@ -mailboxes "+Imperial/Imperial" "+Imperial/Imperial.bin" "+Imperial/Imperial.drafts" "+Imperial/Imperial.sent" "+Informal/Informal" "+Informal/Informal.bin" "+Informal/Informal.drafts" "+Informal/Informal.sent" "+Main/Main" "+Main/Main.bin" "+Main/Main.drafts" "+Main/Main.sent" "+Private/Private" "+Private/Private.bin" "+Private/Private.drafts" "+Private/Private.sent" +mailboxes "+Work/Work" "+Work/Work.bin" "+Work/Work.drafts" "+Work/Work.sent" "+Main/Main" "+Main/Main.bin" "+Main/Main.drafts" "+Main/Main.sent" "+Personal/Personal" "+Personal/Personal.bin" "+Personal/Personal.drafts" "+Personal/Personal.sent" "+Informal/Informal" "+Informal/Informal.bin" "+Informal/Informal.drafts" "+Informal/Informal.sent" diff --git a/.mutt/muttrc b/.mutt/muttrc index 7f6ff40..9d6891c 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -12,7 +12,7 @@ set tmpdir = ~/.mutt/temp source ~/.mutt/crypto source ~/.mutt/alias source ~/.mutt/mailboxes -source ~/.mutt/id_main +source ~/.mutt/id_work # General information set realname = "Urbain Vaes" @@ -57,9 +57,9 @@ set include=yes # Macros macro index,pager gm " +Main/Main" -macro index,pager gp " +Private/Private" +macro index,pager gp " +Personal/Personal" macro index,pager gi " +Informal/Informal" -macro index,pager gw " +Imperial/Imperial" +macro index,pager gw " +Work/Work" # Key bindings bind index,pager \Cf next-page @@ -77,13 +77,13 @@ bind pager k previous-entry bind pager R group-reply # Hooks -send-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' -reply-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_imperial' +send-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_work' +reply-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_work' -folder-hook 'Main*' 'source ~/.mutt/id_main' +folder-hook 'Main*' 'source ~/.mutt/id_main' folder-hook 'Informal*' 'source ~/.mutt/id_informal' -folder-hook 'Private*' 'source ~/.mutt/id_private' -folder-hook 'Imperial*' 'source ~/.mutt/id_imperial' +folder-hook 'Personal*' 'source ~/.mutt/id_personal' +folder-hook 'Work*' 'source ~/.mutt/id_work' # 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 154eb8a..759e39e 100644 --- a/.offlineimap/offlineimaprc +++ b/.offlineimap/offlineimaprc @@ -1,26 +1,25 @@ [general] ui = ttyui pythonfile = /home/urbain/.offlineimap.py -accounts = Imperial, Main, Informal, Private +accounts = Work, Main, Informal, Personal maxsyncaccounts = 4 -[Account Imperial] -localrepository = Imperial-Local -remoterepository = Imperial-Remote -autorefresh = 10 +[Account Work] +localrepository = Work-Local +remoterepository = Work-Remote -[Repository Imperial-Local] +[Repository Work-Local] type = Maildir -localfolders = ~/.mail/Imperial +localfolders = ~/.mail/Work status_backend = sqlite -nametrans = lambda folder : {'Imperial' : 'INBOX', 'Imperial/sent' : 'Sent Items', 'Imperial/drafts' : 'Drafts', 'Imperial/bin' : 'Deleted Items'}.get(folder, folder) +nametrans = lambda folder : {'Work' : 'INBOX', 'Work/sent' : 'Sent Items', 'Work/drafts' : 'Drafts', 'Work/bin' : 'Deleted Items'}.get(folder, folder) -[Repository Imperial-Remote] +[Repository Work-Remote] type = IMAP remotehost = outlook.office365.com remoteuser = uv113@ic.ac.uk remotepasseval = mailpasswd('imperial/u.vaes13@imperial.ac.uk') -nametrans = lambda folder : {'INBOX' : 'Imperial', 'Sent Items' : 'Imperial/sent', 'Drafts' : 'Imperial/drafts', 'Deleted Items' : 'Imperial/bin'}.get(folder, folder) +nametrans = lambda folder : {'INBOX' : 'Work', 'Sent Items' : 'Work/sent', 'Drafts' : 'Work/drafts', 'Deleted Items' : 'Work/bin'}.get(folder, folder) folderfilter = lambda folder: folder in ['INBOX', 'Sent Items', 'Drafts', 'Deleted Items'] sslcacertfile = /etc/ssl/certs/ca-certificates.crt realdelete = no @@ -29,7 +28,6 @@ maxconnections = 3 [Account Main] localrepository = Main-Local remoterepository = Main-Remote -autorefresh = 10 [Repository Main-Local] type = Maildir @@ -50,7 +48,6 @@ maxconnections = 3 [Account Informal] localrepository = Informal-Local remoterepository = Informal-Remote -autorefresh = 10 [Repository Informal-Local] type = Maildir @@ -68,23 +65,22 @@ sslcacertfile = /etc/ssl/certs/ca-certificates.crt realdelete = no maxconnections = 3 -[Account Private] -localrepository = Private-Local -remoterepository = Private-Remote -autorefresh = 10 +[Account Personal] +localrepository = Personal-Local +remoterepository = Personal-Remote -[Repository Private-Local] +[Repository Personal-Local] type = Maildir -localfolders = ~/.mail/Private +localfolders = ~/.mail/Personal status_backend = sqlite -nametrans = lambda folder : {'Private' : 'INBOX', 'Private/sent' : 'Sent', 'Private/drafts' : 'Drafts', 'Private/bin' : 'Trash'}.get(folder, folder) +nametrans = lambda folder : {'Personal' : 'INBOX', 'Personal/sent' : 'Sent', 'Personal/drafts' : 'Drafts', 'Personal/bin' : 'Trash'}.get(folder, folder) -[Repository Private-Remote] +[Repository Personal-Remote] type = IMAP remotehost = imap.openmailbox.org remoteuser = urbain.p.vaes@openmailbox.org remotepasseval = mailpasswd("openmailbox/urbain.p.vaes@openmailbox.org") -nametrans = lambda folder : {'INBOX' : 'Private', 'Sent' : 'Private/sent', 'Drafts' : 'Private/drafts', 'Trash' : 'Private/bin'}.get(folder, folder) +nametrans = lambda folder : {'INBOX' : 'Personal', 'Sent' : 'Personal/sent', 'Drafts' : 'Personal/drafts', 'Trash' : 'Personal/bin'}.get(folder, folder) folderfilter = lambda folder: folder in ['INBOX', 'Sent', 'Drafts', 'Trash'] sslcacertfile = /etc/ssl/certs/ca-certificates.crt realdelete = no @@ -92,7 +88,7 @@ maxconnections = 3 [mbnames] enabled = yes -filename = ~/.mutt/mailboxes +filename = ~/.mutt/mailboxes.offlineimap header = "mailboxes " peritem = "+%(accountname)s/%(foldername)s" sep = " " -- cgit v1.2.3