From 592f68f495c59990e10c3d82e42a7654327c9a8c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 3 Nov 2014 09:19:48 +0000 Subject: Working offlineimap --- mutt/colormutt | 2 +- mutt/mailboxes | 2 +- mutt/muttrc | 127 +++++++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 107 insertions(+), 24 deletions(-) (limited to 'mutt') diff --git a/mutt/colormutt b/mutt/colormutt index 41bf46d..a3b64d8 100644 --- a/mutt/colormutt +++ b/mutt/colormutt @@ -9,4 +9,4 @@ else theme=dark fi -echo "/home/urbain/mutt-colors-solarized/mutt-colors-solarized-"$theme"-16.muttrc" +echo "/home/urbain/.mutt/mutt-colors-solarized/mutt-colors-solarized-"$theme"-16.muttrc" diff --git a/mutt/mailboxes b/mutt/mailboxes index da3cebf..d259b41 100644 --- a/mutt/mailboxes +++ b/mutt/mailboxes @@ -1 +1 @@ -mailboxes "+Gmail/INBOX" "+Gmail/[Gmail].Sent Mail" "+Imperial/INBOX" "+Imperial/Sent Items" +mailboxes "+Gmail/Gmail" "+Hotmail/Hotmail" "+Imperial/Imperial" "+Main/Drafts" "+Main/Main" "+Main/Sent" diff --git a/mutt/muttrc b/mutt/muttrc index bc599e7..7efdffa 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -1,10 +1,45 @@ -# IMAP: offlineimap +# General information +set from = "urbain.p.vaes@gmail.com" +set realname = "Urbain Vaes" +set use_from = yes +set envelope_from = "yes" + +# Folders set folder = "~/.mail" -source ~/.mutt/mailboxes -set spoolfile = "+account/INBOX" -set record = "+account/Sent\ Items" -set postponed = "+account/Drafts" +set folder = ~/.mail +set alias_file = ~/.mutt/alias +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates +set mailcap_path = ~/.mutt/mailcap +set tmpdir = ~/.mutt/temp +set signature = ~/.mutt/sig + +# Maildirs +set spoolfile = "+Main/Main" +set record = "+Main/Sent" +set postponed = "+Main/Drafts" +# Status Bar +set status_chars = " *%A" +set status_format = "───( Folder: %f )───(%r%m messages%?n? (%n new)?%?d?\ + (%d to delete)?%?t? (%t tagged)? )───%>─%?p?( %p postponed )?───" + +# Headers +ignore * +unignore from: to: cc: date: subject: +unhdr_order * +hdr_order from: to: cc: date: subject: + +# Mailboxes +mailboxes +Main/Main \ + +Imperial/Imperial \ + +Hotmail/Hotmail \ + +Gmail/Gmail \ + +Main/Sent \ + +Main/Drafts \ + +# Encryption source /usr/share/doc/mutt/examples/gpg.rc set pgp_use_gpg_agent = yes set pgp_sign_as = 08AC6A48 @@ -13,24 +48,22 @@ set crypt_autosign = no set crypt_replyencrypt = yes set fcc_clear = yes -set from = "u.vaes13@imperial.ac.uk" -set realname = "Urbain Vaes" -set use_from = yes -set envelope_from = "yes" - -# set folder = "~/Mail" -# set spoolfile = /home/urbain/.mail -# set record = "+sent" -# set postponed = "+postponed" -# set move = no - -set header_cache = ~/.mutt/cache/headers -set message_cachedir = ~/.mutt/cache/bodies -set certificate_file = ~/.mutt/certificates +# Pager +set pager_index_lines = 10 # number of index lines to show +set pager_context = 3 # number of context lines to show +set pager_stop # don't go to next message automatically +set menu_scroll # scroll in menus +set tilde # show tildes like in vim +unset markers # no ugly plus signs +set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" +alternative_order text/plain text/enriched text/html +# Email editing set editor="vim" set edit_headers set include=yes + +# Mail out set sendmail="/usr/sbin/ssmtp" # Sorting options @@ -41,12 +74,62 @@ set sort_browser = reverse-date # Colorscheme for inside mutt source `sh /home/urbain/.mutt/colormutt` -# macro index G "|fetchmail\n" -macro index G "!fetchmail \n" - # HTML messages auto_view text/html +# Key bindings +bind generic l select-entry + +bind index,browser g top-page +bind index,browser GG bottom-page +bind pager,index,browser \Cb previous-page +bind pager,index,browser \Cf next-page + +bind index gg first-entry +bind index G last-entry + +## Bindings +# Generic +bind generic l select-entry +bind generic select-entry + +# Index +bind index l display-message +bind index h change-folder +bind index display-message +bind index change-folder +bind index H display-toggle-weed +macro index , '!^M' +macro index I '~N^M' + +# Pager +bind pager j next-line +bind pager k previous-line +bind pager h exit +bind pager l view-attachments +bind pager next-line +bind pager previous-line +bind pager exit +bind pager view-attachments +bind pager H display-toggle-weed +macro pager , '!^M' + +# Attach +bind attach l view-attach +bind attach view-attach +bind attach h exit +bind attach exit +bind attach H display-toggle-weed + +# Compose +bind compose l view-attach +bind compose view-attach + +# Sidebar Navigation --------------------------------- +bind index,pager J sidebar-next +bind index,pager K sidebar-prev +bind index,pager O sidebar-open + set reverse_alias alias krystle Krystle Acquah alias khoi Khoi Nguyen -- cgit v1.2.3