X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=muttrc;h=2a0efbc9c46fe3de86decdc3fa4e3e8297dd0a5f;hb=e2f378ea68c820070e3687b72821877a05ebf272;hp=4c4fe7e73613a30bb806ee1f2fae4f6993ffe031;hpb=1cce2d664871e9f0f910a8f6c044c92b129b73a8;p=dotfiles.git diff --git a/muttrc b/muttrc index 4c4fe7e..2a0efbc 100644 --- a/muttrc +++ b/muttrc @@ -3,13 +3,19 @@ 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_msmtp_pass=`gpg --use-agent -d ~/passwd.gpg | grep -i mail | awk '{print $3}'` +set sendmail="/usr/local/bin/msmtp -C /home/mart/.mutt/msmtp --password=$my_msmtp_pass -f mart@martlubbers.net -a net" set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc" +# Macros # Force offlineimap to refresh in the background -macro index,pager \CR "offlineimap -c ~/.mutt/offlineimaprc &" "Force refresh" +macro index,pager $ "offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass" "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" +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 @@ -21,8 +27,8 @@ set postponed="+Drafts/" # Drafts set mask="!^\\.[^.]" set certificate_file=~/.mutt/certs set imap_check_subscribed=yes -set sleep_time=0 -set mail_check=5 +#set sleep_time=0 +#set mail_check=5 source ~/.mutt/mailboxes # Generated by offlineimap #View @@ -99,7 +105,7 @@ color index brightyellow default ~N# New color index blue default ~T# Tagged color index red default ~D# Deleted -#Crypto stuff +#Crypto 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"