muttrc

   1 set nomark_old
   2 set sleep_time = 0
   3 set xterm_set_titles
   4 
   5 set nomarkers tilde
   6 auto_view text/html
   7 alternative_order text/plain
   8 
   9 set realname = 'Alexey Gagin'
  10 set fast_reply include noattribution
  11 
  12 # Keys {{{
  13 
  14 bind index Q quit
  15 
  16 bind index z collapse-thread
  17 bind index Z collapse-all
  18 
  19 bind pager <Up> previous-line
  20 bind pager <Down> next-line
  21 
  22 bind index <Left> quit
  23 bind index <Right> display-message
  24 
  25 bind pager <Left> exit
  26 bind pager <Right> view-attachments
  27 
  28 bind attach <Left> exit
  29 bind attach <Right> view-mailcap
  30 
  31 macro pager z ':set pager_index_lines = 10<Enter>'
  32 macro pager Z ':set pager_index_lines = 0<Enter>'
  33 
  34 # }}}
  35 # Threads {{{
  36 
  37 set sort = threads
  38 set sort_aux = reverse-last-date
  39 
  40 set menu_scroll
  41 set nocollapse_unread
  42 folder-hook . exec collapse-all
  43 
  44 set date_format = '%b %d'
  45 set index_format = '%3C  %S  %d  %-20.20n  %?M?[1/%M] ?%s (%c)'
  46 set folder_format = '%3C  %F  %u %g  %4s  %d  %f'
  47 
  48 # }}}
  49 # Mailboxes {{{
  50 
  51 set record = $spoolfile
  52 set postponed = +Drafts.mbox
  53 set trash = +Trash.mbox
  54 
  55 mailboxes $spoolfile
  56 mailboxes $postponed
  57 mailboxes $trash
  58 
  59 set timeout = 10
  60 macro index G '!fetchmail<Enter>'
  61 
  62 `echo set $(gpg -qd ~/.fetchmailrc.gpg | \
  63     sed 's/pop\d\?\./smtp./' | awk ' \
  64     /user/ { print "from=" $2 } \
  65     /pass/ { print "smtp_pass=" $2 } \
  66     /poll/ { print "smtp_url=\"smtps://$from@" $2 "\"" } \
  67 ' | sed 3q | sort)`
  68 
  69 # }}}
  70 # Colors {{{
  71 
  72 color status color7 default
  73 color indicator default color4
  74 color tree brightblack default
  75 
  76 color index color7 default '~f lexa@'
  77 color index color7 default '~f @lexa.by'
  78 color index color7 default '~f lexazloy@'
  79 
  80 color index brightdefault default ~U
  81 color index color1 default ~D
  82 
  83 color normal default default
  84 color quoted color3 default
  85 
  86 color hdrdefault color7 default
  87 color header color5 default '^(From|To|Subject|Date): '
  88 color attachment color4 default
  89 
  90 color body color3 default 'On .+ wrote:'
  91 color body color3 default '.*<.+@.+>.*'
  92 color body color7 default '^gpg: .+'
  93 
  94 color signature color7 default
  95 color tilde color7 default
  96 
  97 # }}}