From: Mart Lubbers Date: Mon, 3 Mar 2014 23:28:48 +0000 (+0100) Subject: muttrc add, offlineimap and msmtp is needed still X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=1cce2d664871e9f0f910a8f6c044c92b129b73a8;p=dotfiles.git muttrc add, offlineimap and msmtp is needed still --- diff --git a/install b/install index c8ad1e7..db6246f 100755 --- a/install +++ b/install @@ -1,3 +1,5 @@ #!/bin/bash cp -if `pwd`/.vimrc ~/.vimrc cp -if `pwd`/.bashrc ~/.bashrc +cp -if `pwd`/.Xresources ~/.Xresources +cp -if `pwd`/muttrc ~/.mutt/muttrc diff --git a/muttrc b/muttrc new file mode 100644 index 0000000..4c4fe7e --- /dev/null +++ b/muttrc @@ -0,0 +1,122 @@ +# Name and info +set realname="Mart Lubbers" +set from="mart@martlubbers.net" +set use_from=yes +set envelope_from=yes +set sendmail="/usr/bin/msmtp -C /home/mart/.mutt/msmtp -f mart@martlubbers.net -a net" +set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc" + +# Force offlineimap to refresh in the background +macro index,pager \CR "offlineimap -c ~/.mutt/offlineimaprc &" "Force refresh" +# Move all the mailing lists to the appropriate folder +macro index,pager \CT "~C vim@vim.org | ~C vim_use=vim~C lists.debian.org=debian~C mutt-users@mutt.org=mutt" "Clean up mailing lists" + +# Folders +set mbox_type=Maildir +set folder=~/.mutt/mail/ # Local mailbox +set spoolfile=+/INBOX/ # Inbox(first folder) +set record="+Sent/" # Sent messages +set trash="+Trash/" # Trash +set postponed="+Drafts/" # Drafts +set mask="!^\\.[^.]" +set certificate_file=~/.mutt/certs +set imap_check_subscribed=yes +set sleep_time=0 +set mail_check=5 +source ~/.mutt/mailboxes # Generated by offlineimap + +#View +unset wait_key +unset markers +set sort_browser=reverse-date +set sort_aux=reverse-last-date-received +set editor="vim" +set duplicate_threads = yes +auto_view text/html +#Pager +set pager_index_lines=20 +set pager_context=3 +set pager_stop +set menu_scroll +set tilde +set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" +alternative_order text/plain text/enriched text/html +bind pager k previous-line +bind pager j next-line +bind pager gg top +bind pager G bottom +bind pager R group-reply + +#Sidebar options +set sidebar_visible=yes +set sidebar_sort=yes +set sidebar_delim=" " +set sidebar_width=15 +color sidebar_new brightyellow default +bind index,pager \CL sidebar-prev +bind index,pager \CH sidebar-next +bind index,pager \CO sidebar-open + +# Adress book and url view +set alias_file="~/.mutt/alias" +source "~/.mutt/alias" +macro index,pager \cb "|urlview\n" + +# Mailing lists +subscribe debian-user-dutch@lists.debian.org +subscribe debian-user@lists.debian.org +subscribe vim_use@googlegroups.com +subscribe vim@vim.org +subscribe mutt-user@mutt.org + +#Skip some options +set include=yes +set delete=yes +set confirmappend=no +set fast_reply=yes + +#Colors +color normal white default +color attachment brightyellow default +color hdrdefault cyan default +color indicator default cyan +color markers brightred default +color quoted green default +color signature cyan default +color status brightgreen blue +color tilde blue default +color tree red default +color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ +color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+ + +color quoted1 brightyellow default +color quoted2 red default +color hdrdefault cyan default +color signature cyan default + +color index green default ~p# To me +color index brightyellow default ~N# New +color index blue default ~T# Tagged +color index red default ~D# Deleted + +#Crypto stuff +set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" +set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" +set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" +set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" +set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +set pgp_import_command="gpg --no-verbose --import -v %f" +set pgp_export_command="gpg --no-verbose --export --armor %r" +set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" +set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" +set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" + +set pgp_sign_as=0xAD3FEBE7 +set pgp_timeout=60 +set pgp_good_sign="^gpg: Good signature from" + +set crypt_autosign +set crypt_replysign +set crypt_replysignencrypted=yes +set crypt_verify_sig=yes