Thursday, August 4, 2011

.muttrc

# .mutt/muttrc
macro index 'imaps://user1@email.cisco.com'
macro index 'imaps://user2@imap.gmail.com/INBOX'


set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.passwd.gpg`
set my_cpass=`awk '/Cisco:/ {print $2}' ~/.secret/.tmp`
set my_gpass=`awk '/Gmail:/ {print $2}' ~/.secret/.tmp`
set my_del=`rm -f ~/.secret/.tmp`

account-hook . 'unset imap_user imap_pass' # unset first!
account-hook 'imaps://user1@email.cisco.com/' "set imap_user=
user1 imap_pass=$my_cpass "
account-hook 'imaps://
user2@imap.gmail.com/' "set imap_user=user2 imap_pass=$my_gpass "




set certificate_file=~/.mutt_certs
#set folder={
user1@email.cisco.com/ssl}INBOX
#set spoolfile={
user1@email.cisco.com/ssl}INBOX
set timeout=60
#set record ="imaps://
user1@email.cisco.com/Sent Items"
set imap_check_subscribed
set mail_check=60
set timeout=10
set header_cache=~/.hcache
set net_inc=5
#set index_format="%4C %Z %{%b %d} %-15.15F %s"

#set arrow_cursor
#set auto_tag
#set status_format=\
"[%r|%f|%b] #%M/%m=%L/%l [%nN %dD %tT] (%s.%S) %> (%P) [WM]"

#set attribution="%n(%a)@%d:" # attribution in replies

set quit=ask-yes
set menu_scroll=yes
set collapse_unread
set uncollapse_jump
set implicit_autoview
#set imap_home_namespace="INBOX"
set imap_keepalive=600 #maximum amount of time that mutt will wait before polling open IMAP connections, to prevent the server from closing.
#mailboxes !
#mailboxes =AAA-dcos-dot1x-dev
#mailboxes =blr-masala
#mailboxes =AAA-nxos-energywise-dev
#mailboxes =AAA-dc3-cts-dev
#mailboxes =AAA-nxos-aaa-dev
#mailboxes =Energywise
macro index,pager I "c\!\n" "Change to default INBOX folder"
macro index,pager D "c\=INBOX/AAA-dcos-dot1x-dev\n" "Change to AAA-dcos-dot1x-dev folder"
macro index,pager E "c\=INBOX/Energywise\n" "change to Energywise folder"
macro index,pager B "c\=INBOX/blr-masala\n" "change to blr-masala folder"
macro index,pager M "c=\t\t"
macro index ":source ~/.muttrc\n" "Reload the muttrc"
macro pager ":source ~/.muttrc\n" "Reload the muttrc"


#set postponed="=Drafts"
# Date format
set date_format = '!%Y-%m-%d %H:%M:%S %a'
set smtp_url = "smtp://outbound.cisco.com:25/"
set hostname = cisco.com
set alias_file=~/.mutt-alias
source ~/.mutt-alias
set query_command= "abook --mutt-query '%s'"
macro index,pager A "abook --add-email-quiet" "add the sender address to abook"
macro index,pager ,r ":unset wait_key; set pipe_decode\n|mutt_add_reminder\n:set wait_key; unset pipe_decode\n" "record a reminder"
set autoedit
set wrap_search

set beep_new
set delete=yes # purge deleted messages without asking
set help # show the help lines
set history=20 # number of lines of history to remember
set include # always include messages when replying
set reverse_alias # attempt to look up my names for people
set nosave_empty # remove files when no messages are left
set sort=reverse-date-received # primary sorting method
#set sort=threads
#set imap_pass =`"echo -n $(pwsafe -p ACCOUNT_NAME -e -q | tail -n 1) |"
#set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.passwd.gpg`
#set my_cpass=`awk '/Cisco:/ {print $2}' ~/.secret/.tmp`
#set my_gpass=`awk '/Gmail:/ {print $2}' ~/.secret/.tmp`
#set my_del=`rm -f ~/.secret/.tmp`
#set imap_pass=$my_cpass
# Composing
set signature = "~/.signature" #file which contains my signature
#set postpone = ask-yes
#set postponed="=Drafts"
#set editor = 'vim +/^$ "+normal j"' # Open vim one line past first blank line
set fast_reply = yes #skip initial prompts when replying
set abort_nosubject = no
set abort_unmodified = ask-yes


#Replying
#set reply_self = no # Reply to recipients, not to myself on my own msgs
set indent_string = "> "
set include = yes
set attribution = "On %d, %n wrote:"
set bounce_delivered = yes

# Forwarding
set forward_format = "Fwd: [ %s ]"
set forward_quote = yes


set mailcap_path = ~/.mutt/mailcap
auto_view text/html
auto_view application/zip
auto_view application/x-gzip
auto_view application/x-gunzip
auto_view application/pgp-signature
auto_view application/pgp
auto_view application/octet-stream
auto_view application/x-zip-compressed
auto_view application/x-arj-compressed
auto_view application/x-tar-gz
auto_view application/ms-tnef
auto_view application/msword
auto_view application/x-perl
auto_view application/x-sh
auto_view application/x-tcl
auto_view application/x-delphi-source
#auto_view text/html
auto_view text/x-vcard
#
#alternative_order text/enriched text/plain text/html
#



bind generic { top-page
bind generic } bottom-page

bind index G imap-fetch-mail

No comments:

Post a Comment