]> git.phdru.name Git - dotfiles.git/blobdiff - .muttrc
.muttrc: "close" backtick to fix color highlighting in vim
[dotfiles.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index 14649aaa2f5c8a29a5911604d469e40e4ee6dac3..9ddb4ae580446c7c607ac622c16cb6e94a881e79 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -52,7 +52,7 @@ set sort_alias=unsorted
 set sort_browser=alpha
 
 set history=1000                 # Number of lines of history in memory
-set history_file==tmp/.mutt-history
+set history_file==tmp/.mutt_history
 set save_history=1000            # Number of lines of history in file
 
 set read_inc=10                  # Progress indicator when reading folders.
@@ -61,7 +61,7 @@ set write_inc=10                 # Progress indicator when writing folders.
 set allow_8bit                   # Never do Q-P encoding on legal 8-bit chars
 set abort_unmodified=no          # Let me send empty messages
 set alias_file==tmp/aliases      # Where to store aliases
-set attribution="`case "$LC_TIME" in ru_RU*) echo 'В %{%a, %d %b %Y в %I:%M:%S%p %Z} %f написал(а):' ;; *) echo 'On %d, %f wrote:' ;; esac`"
+set attribution="`case "$LC_TIME" in ru_RU*) echo 'В %{%a, %d %b %Y в %I:%M:%S%p %Z} %f написал(а):' ;; *) echo 'On %d, %f wrote:' ;; esac`" # `
 set beep=no                      # Never beep on errors
 set collapse_unread=no           # Do not collapse thread with unread messages
 set confirmappend=no             # Don't ask me if i want to append to mailboxes
@@ -79,7 +79,7 @@ set move=no                      # Do not move read messages to ~/mbox
 set pager_context=1              # No. of lines of context to give when scrolling
 set pager_index_lines=6          # How many index lines to show in the pager
 set pager_stop                   # Don't move to the next message on next-page
-set postponed==tmp/.mutt-postponed
+set postponed==tmp/.mutt_postponed
 set print=ask-no                 # Don't waste paper
 set recall=no                    # When I say "compose", ask me whether I want to continue composing a postponed message.
 set reply_regexp="^((re([\\[0-9\\]+])*|aw|на):[ \t]*)+[ \t]*" # A regular expression to detect replies
@@ -152,7 +152,7 @@ my_hdr X-Attribution: phd
 
 my_hdr X-Face: \"4chVP^f8\;3Bi>x\"ic0%DuP(ZLyn:\;kzQ1njs]5,GRZG<{<\\~\`|Shxi7|)d|8uO~HFRfyym\n\
  {[xs@OYG]2Q]0\#}0sjJp\`1^1+B6]A2+{9fW=S<O7^\"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7\n\
- c0x8?W,UfhCAx^YY\#1ALhvG\\2yG}LW:)zw\#1\;Yajq\"hK~S
+ c0x8?W,UfhCAx^YY\#1ALhvG\\2yG}LW:)zw\#1\;Yajq\"hK~S # `
 
 my_hdr X-Operating-System: Debian GNU/Linux
 
@@ -283,41 +283,83 @@ bind index,pager <Esc>S decode-save
 # Macros
 #
 
-# Go to the first folder with unread messages
-macro index,pager C <Enter><exit><Home><change-folder><Enter>
-
-# Move current message to inbox
-macro index,pager S <save-message>!<Enter>
-
-macro index,pager <Esc>h ":auto_view text/html<Enter>"
-macro index,pager <Esc>H ":unauto_view text/html<Enter>"
-
-# Pipe spam
-macro index,pager <Esc>s <Enter><exit> \
-   "<pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter> \
-   <next-undeleted>"
-macro index,pager <Esc>z \
-   "<Enter><exit>:set editor='vim -s ~/mail/misc/spamcop.vim'<Enter> \
-   r:set editor=vim.sh<Enter><exit><next-undeleted>"
-
-# Go to main mailboxes
-macro index,pager H      <Enter><exit><Home><change-folder>!<Enter>
-macro index,pager <Esc>m <Enter><exit><Home><change-folder>=sent-mail<Enter>
+macro index C \
+   <Home><change-folder><Enter> \
+   "Go to the first folder with unread messages"
+macro pager C \
+   <exit><Home><change-folder><Enter> \
+   "Go to the first folder with unread messages"
+
+macro index,pager S \
+   <save-message>!<Enter> \
+   "Move current message to inbox"
+
+macro index,pager <Esc>h \
+   ":auto_view text/html<Enter>" \
+   "View HTML attachments"
+macro index,pager <Esc>H \
+   ":unauto_view text/html<Enter>" \
+   "Don't show HTML attachments"
+
+macro index <Esc>s \
+   "<pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
+   "Send spam to SpamCop"
+macro pager <Esc>s \
+   "<exit><pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
+   "Send spam to SpamCop"
+macro index <Esc>z \
+   ":set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
+   "Process message from SpamCop"
+macro pager <Esc>z \
+   "<exit>:set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
+   "Process message from SpamCop"
+
+macro index H \
+   <Home><change-folder>!<Enter> \
+   "Go to inbox"
+macro pager H \
+   <exit><Home><change-folder>!<Enter> \
+   "Go to inbox"
+macro index M \
+   <Home><change-folder>=sent-mail<Enter> \
+   "Go to sent-mail"
+macro pager M \
+   <exit><Home><change-folder>=sent-mail<Enter> \
+   "Go to sent-mail"
 
 # Go to python mailbox
-macro index,pager Y <Enter><exit><Home><change-folder>=lists/python<Enter>
+macro index Y \
+   <Home><change-folder>=lists/python<Enter> \
+   "Go to python"
+macro pager Y \
+   <exit><Home><change-folder>=lists/python<Enter> \
+   "Go to python"
 
 # Go to STCnet "Atlas"/STM mailboxes
-macro index,pager A      <Enter><exit><Home><change-folder>=stcnet<Enter>
-macro index,pager <Esc>a <Enter><exit><Home><change-folder>=sent-stcnet<Enter>
+macro index A \
+   <Home><change-folder>=stcnet<Enter> \
+   "Go to stcnet inbox"
+macro pager A \
+   <exit><Home><change-folder>=stcnet<Enter> \
+   "Go to stcnet inbox"
+macro index <Esc>a \
+   <Home><change-folder>=sent-stcnet<Enter> \
+   "Go to sent-stcnet"
+macro pager <Esc>a \
+   <exit><Home><change-folder>=sent-stcnet<Enter> \
+   "Go to sent-stcnet"
 
 # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc.
-macro index,pager M "<pipe-message>mimedecode.py | less<Enter>"
+macro index,pager \
+   <Esc>m "<pipe-message>mimedecode.py | less<Enter>" \
+   "View MIME-decoded message"
 macro index,pager E \
-   ":set editor=mimedecode.sh<Enter><edit>:set editor=vim.sh<Enter>"
+   ":set editor=mimedecode.sh<Enter><edit>:set editor=vim.sh<Enter>" \
+   "MIME-decode and save"
 
-# Convert X-Face header to an image and display it
-macro index,pager <Esc>f <pipe-message>~/mail/bin/view-x-face<Enter>
+macro index,pager <Esc>f \
+   <pipe-message>~/mail/bin/view-x-face<Enter> \
+   "Convert X-Face header to an image and display it"
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 #