]> granicus.if.org Git - mutt/commitdiff
Clean up a number of examples in the documentation.
authorAlain Bench <veronatif@free.fr>
Thu, 20 Jul 2006 00:12:51 +0000 (00:12 +0000)
committerAlain Bench <veronatif@free.fr>
Thu, 20 Jul 2006 00:12:51 +0000 (00:12 +0000)
Muttrc.head.in
contrib/Mush.rc
contrib/Pine.rc
contrib/Tin.rc
contrib/sample.muttrc
contrib/sample.muttrc-tlr
doc/muttrc.man.head

index 93730726daf029823423d3bc37c8332d6ded5828..a01449bce02cc142ffbe04d43f4723cf3fcc37bf 100644 (file)
@@ -11,10 +11,11 @@ ignore sender references return-path lines
 macro index \eb "<search>~b " "search in message bodies"
 
 # simulate the old url menu
-macro index,pager \cb "<pipe-message>urlview<Enter>" "call urlview to extract URLs out of a message"
+macro index,pager \cb "<pipe-message> urlview<Enter>" "call urlview to extract URLs out of a message"
+macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to extract URLs out of a message"
 
 # Show documentation when pressing F1
-macro generic,pager <F1> "<shell-escape>less @docdir@/manual.txt<Enter>" "show Mutt documentation"
+macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation"
 
 # show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
 macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
index 630ee0d2e895d58286b74e4dd28e71b03774ba2b..cdbb4ded8d4f23bad91cd4a506c10bfe252f9e72 100644 (file)
@@ -6,7 +6,7 @@
 
 bind index . display-message
 bind index t display-message
-macro index n j\n
+macro index n "<next-entry><display-message>"
 bind index + next-entry
 bind index j next-entry
 bind index J next-entry
index 94d90e13af3e6083b79a0b76cefbca8fc6985adc..b0deea16fac6d31d08d2b008a6acfe9a63ba6ddf 100644 (file)
@@ -21,7 +21,7 @@ bind index a tag-prefix
 bind index \; tag-entry
 
 # Not possible to simulate zoom-out...
-macro index z l~T\r
+macro index z "<limit>~T<Enter>"
 
 bind pager p previous-undeleted
 bind pager n next-undeleted
index 8f8b1de4e5be827fcb419b4b89588ffef1546b33..e0ad010f2cae75595aad88acfe53d0e0fe250b47 100644 (file)
@@ -15,8 +15,8 @@ bind  pager   <right>  view-attachments
 bind  attach  <left>   exit
 bind  attach  <right>  view-attach
 bind  index   <right>  display-message
-macro index   <left>   "c?"
+macro index   <left>   "<change-folder>?"
 bind  browser <right>  select-entry
-macro browser <left>   "qc!\r"
+macro browser <left>   "<exit><change-folder>!<Enter>"
 
 
index 55780b61a79d1fc0c30d096a6bd7163ff0f4567a..07dbe1797fef033134ab87428f8868ed2f4f9bf0 100644 (file)
@@ -40,8 +40,8 @@ set edit_headers              # let me edit the message header when composing
 #set forward_decode            # weed and MIME decode forwaded messages
 #set forward_format="[%a: %s]" # subject to use when forwarding messages
 #set forward_quote             # quote the header and body of forward msgs
-#set hdr_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
-set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
+#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
+set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
 #set hdrs                      # include `my_hdr' lines in outgoing messages
 #set header                    # include message header when replying
 set help                       # show the help lines
@@ -104,7 +104,7 @@ set tilde                   # virtual lines to pad blank lines in the pager
 #set use_8bitmime              # enable the -B8BITMIME sendmail flag
 set nouse_domain               # don't qualify local addresses with $domain
 #set use_from                  # always generate the `From:' header field
-set use_mailcap=yes            # always use a mailcap entry when found
+set implicit_autoview=yes      # pager shows parts having a mailcap viewer
 set pgp_verify_sig=no          # don't automatically verify message signatures
 #set visual=vim                        # editor invoked by ~v in the builtin editor
 #set nowait_key                        # prompt when a pipe returns normal status
@@ -176,18 +176,18 @@ bind generic { top-page
 bind generic } bottom-page
 bind generic \177 last-entry
 
-macro index \cb |urlview\n     # simulate the old browse-url function
+macro index \cb "<pipe-message> urlview<Enter>"        # simulate the old browse-url function
 
-macro index S s+spam\n
-macro pager S s+spam\n
+macro index S "<save-message>+spam<Enter>"
+macro pager S "<save-message>+spam<Enter>"
 
-#macro index \# /bug^M # search for bugs
-#macro index "\""        ":set realname=\"real hairy macro\"^M:set ?realname^M" # and a comment to boot!
-#macro index f1 :woohoo!
+#macro index \#        "<search>bug<Enter>"    # search for bugs
+#macro index "\""      "<enter-command> set realname=\"real hairy macro\" ?realname<Enter>" # and a comment to boot!
+#macro index f1        "<enter-command>woohoo!"
 
 bind pager G bottom    # just like vi and less
-#macro   pager   \Ck     "|pgp -kaf^M"   # a comment is valid here
-#macro pager X "|morepgp^M"    # pipe PGP message to a script
+#macro   pager   \Ck     "<pipe-message> pgp -kaf<Enter>"   # a comment is valid here
+#macro pager X "<pipe-message> morepgp<Enter>" # pipe PGP message to a script
 
 #bind editor \cy eol   # make ^Y jump to the end of the line
 
@@ -208,7 +208,7 @@ bind pager G bottom # just like vi and less
 # <mailbox> is provided as default when saving messages from <pattern>
 
 #save-hook mutt- =mutt-mail
-#save-hook aol\.com +spam
+#save-hook aol\\.com$ +spam
 save-hook ^judge +diplomacy
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -252,15 +252,16 @@ save-hook ^judge +diplomacy
 #
 # <command> is executed when opening a mailbox matching <pattern>
 
-#folder-hook . 'set sort=date-sent'
-#folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
-#folder-hook =mutt my_hdr Revolution: \#9 # real comment
+#folder-hook .         'set sort=date-sent'
+#folder-hook mutt      'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
+#folder-hook =mutt     my_hdr Revolution: \#9 # real comment
 
-#folder-hook . 'set reply_regexp="^re:[ \t]*"'
+#folder-hook .         'set reply_regexp="^re:[ \t]*"'
 
 # this mailing list prepends "[WM]" to all non reply subjects, so set
 # $reply_regexp to ignore it
-#folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'
+# Warning: May break threads for other people.
+#folder-hook +wmaker   'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 #
@@ -302,7 +303,7 @@ hdr_order date from subject to cc
 #
 #      lists <list-name> [ <list-name> ... ]
 
-lists mutt-dev mutt-users
+lists ^mutt-dev@mutt\\.org$ ^mutt-users@mutt\\.org$
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 #
index 4e2959ad598a36610fbd338dd1c519b7ac96092e..7c8d3816b878091e942db295f5c68ea5e64e7579 100644 (file)
@@ -104,37 +104,35 @@ bind      query   i               exit
 
 # make it feel like emacs
 
-macro  generic "\ex"           ":exec "
-macro  pager   "\ex"           ":exec "
-macro  generic "\eX"           "\ex"
-macro  pager   "\eX"           "\ex"
-macro  index   "~"             ";~"
+macro  generic,pager   "\ex"           "<enter-command>exec "
+macro  generic,pager   "\eX"           "\ex"
+macro  index           "~"             "<limit>~"
 
 # move messages to the pilot folder
 
-macro  index   "\ew"           "<decode-copy>+pilot\n" "Copy a message to the pilot folder."
-macro  pager   "\ew"           "<decode-copy>+pilot\n" "Copy a message to the pilot folder."
+macro  index,pager     "\ew"           "<decode-copy>+pilot<Enter>"    "Copy a message to the pilot folder."
 
 # for majordomo list owner and moderator jobs
 
-macro  index   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
-macro  pager   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
+macro  index,pager     "\ea"           "\
+<enter-command> set nopipe_decode wait_key<Enter>\
+<pipe-message> approve<Enter>\
+<enter-command> set nowait_key<Enter>"
 
 # emulate the old URL-browser key bindings.
 
-macro  pager   "\Cb"   "| urlview -\n"
-macro  index   "\Cb"   "| urlview -\n"
+macro  index,pager     "\Cb"   "<pipe-message> urlview -<Enter>"
 
 # permit limiting from the pager.
 
-macro   pager  ";"     "<exit><limit>"
+macro  pager   ";"     "<exit><limit>"
+macro  pager   "~"     "<exit><limit>~"
 
 # emulate the old POP-feature bindings
 
-macro  index   G       "!fetchmail\n"  
-macro  pager   G       "!fetchmail\n"
+macro  index,pager     G       "<shell-escape> fetchmail<Enter>"
 
-macro   compose "\ee"   "Fpgp -eatf " 
+macro  compose "\ee"   "<filter-entry>pgp -eatf "
 
 
 #
index ff25172b4c02f887ed897faaa4495bfcc26e7cf5..1a5ba27cb5231234dbb6d174165ea48df4c63b4c 100644 (file)
@@ -321,7 +321,7 @@ or even just an arbitrary search string.
 This command adds the named \fIstring\fP to the keyboard buffer.
 .PP
 .nf
-\fBset\fP [\fBno\fP|\fBinv\fP]\fIvariable\fP[=\fIvalue\fP] [ ... ]
+\fBset\fP [\fBno\fP|\fBinv\fP|\fB&\fP|\fB?\fP]\fIvariable\fP[=\fIvalue\fP] [ ... ]
 \fBtoggle\fP \fIvariable\fP [ ... ]
 \fBunset\fP \fIvariable\fP [ ... ]
 \fBreset\fP \fIvariable\fP [ ... ]