Changeset 4745:233524ae54e3

Show
Ignore:
Timestamp:
2006-07-19 17:12:51 (2 years ago)
Author:
Alain Bench <veronatif@…>
Branch:
HEAD
Message:

Clean up a number of examples in the documentation.

Files:
7 modified

Legend:

Unmodified
Added
Removed
  • Muttrc.head.in

    r4412 r4745  
    1212 
    1313# simulate the old url menu 
    14 macro index,pager \cb "<pipe-message>urlview<Enter>" "call urlview to extract URLs out of a message" 
     14macro index,pager \cb "<pipe-message> urlview<Enter>" "call urlview to extract URLs out of a message" 
     15macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to extract URLs out of a message" 
    1516 
    1617# Show documentation when pressing F1 
    17 macro generic,pager <F1> "<shell-escape>less @docdir@/manual.txt<Enter>" "show Mutt documentation" 
     18macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation" 
    1819 
    1920# show the incoming mailboxes list (just like "mutt -y") and back when pressing "y" 
  • contrib/Mush.rc

    r2767 r4745  
    77bind index . display-message 
    88bind index t display-message 
    9 macro index n j\n 
     9macro index n "<next-entry><display-message>" 
    1010bind index + next-entry 
    1111bind index j next-entry 
  • contrib/Pine.rc

    r2767 r4745  
    2222 
    2323# Not possible to simulate zoom-out... 
    24 macro index z l~T\r 
     24macro index z "<limit>~T<Enter>" 
    2525 
    2626bind pager p previous-undeleted 
  • contrib/Tin.rc

    r2767 r4745  
    1616bind  attach  <right>  view-attach 
    1717bind  index   <right>  display-message 
    18 macro index   <left>   "c?" 
     18macro index   <left>   "<change-folder>?" 
    1919bind  browser <right>  select-entry 
    20 macro browser <left>   "qc!\r" 
     20macro browser <left>   "<exit><change-folder>!<Enter>" 
    2121 
    2222 
  • contrib/sample.muttrc

    r3832 r4745  
    4141#set forward_format="[%a: %s]"  # subject to use when forwarding messages 
    4242#set forward_quote              # quote the header and body of forward msgs 
    43 #set hdr_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s" 
    44 set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index 
     43#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s" 
     44set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index 
    4545#set hdrs                       # include `my_hdr' lines in outgoing messages 
    4646#set header                     # include message header when replying 
     
    105105set nouse_domain                # don't qualify local addresses with $domain 
    106106#set use_from                   # always generate the `From:' header field 
    107 set use_mailcap=yes             # always use a mailcap entry when found 
     107set implicit_autoview=yes       # pager shows parts having a mailcap viewer 
    108108set pgp_verify_sig=no           # don't automatically verify message signatures 
    109109#set visual=vim                 # editor invoked by ~v in the builtin editor 
     
    177177bind generic \177 last-entry 
    178178 
    179 macro index \cb |urlview\n      # simulate the old browse-url function 
    180  
    181 macro index S s+spam\n 
    182 macro pager S s+spam\n 
    183  
    184 #macro index \# /bug^M  # search for bugs 
    185 #macro index "\""        ":set realname=\"real hairy macro\"^M:set ?realname^M" # and a comment to boot! 
    186 #macro index f1 :woohoo! 
     179macro index \cb "<pipe-message> urlview<Enter>" # simulate the old browse-url function 
     180 
     181macro index S "<save-message>+spam<Enter>" 
     182macro pager S "<save-message>+spam<Enter>" 
     183 
     184#macro index \# "<search>bug<Enter>"    # search for bugs 
     185#macro index "\""       "<enter-command> set realname=\"real hairy macro\" ?realname<Enter>" # and a comment to boot! 
     186#macro index f1 "<enter-command>woohoo!" 
    187187 
    188188bind pager G bottom     # just like vi and less 
    189 #macro   pager   \Ck     "|pgp -kaf^M"   # a comment is valid here 
    190 #macro pager X "|morepgp^M"     # pipe PGP message to a script 
     189#macro   pager   \Ck     "<pipe-message> pgp -kaf<Enter>"   # a comment is valid here 
     190#macro pager X "<pipe-message> morepgp<Enter>"  # pipe PGP message to a script 
    191191 
    192192#bind editor \cy eol    # make ^Y jump to the end of the line 
     
    209209 
    210210#save-hook mutt- =mutt-mail 
    211 #save-hook aol\.com +spam 
     211#save-hook aol\\.com$ +spam 
    212212save-hook ^judge +diplomacy 
    213213 
     
    253253# <command> is executed when opening a mailbox matching <pattern> 
    254254 
    255 #folder-hook . 'set sort=date-sent' 
    256 #folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' 
    257 #folder-hook =mutt my_hdr Revolution: \#9 # real comment 
    258  
    259 #folder-hook . 'set reply_regexp="^re:[ \t]*"' 
     255#folder-hook .          'set sort=date-sent' 
     256#folder-hook mutt       'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' 
     257#folder-hook =mutt      my_hdr Revolution: \#9 # real comment 
     258 
     259#folder-hook .          'set reply_regexp="^re:[ \t]*"' 
    260260 
    261261# this mailing list prepends "[WM]" to all non reply subjects, so set 
    262262# $reply_regexp to ignore it 
    263 #folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"' 
     263# Warning: May break threads for other people. 
     264#folder-hook +wmaker    'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"' 
    264265 
    265266# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
     
    303304#       lists <list-name> [ <list-name> ... ] 
    304305 
    305 lists mutt-dev mutt-users 
     306lists ^mutt-dev@mutt\\.org$ ^mutt-users@mutt\\.org$ 
    306307 
    307308# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  • contrib/sample.muttrc-tlr

    r2767 r4745  
    105105# make it feel like emacs 
    106106 
    107 macro   generic "\ex"           ":exec " 
    108 macro   pager   "\ex"           ":exec " 
    109 macro   generic "\eX"           "\ex" 
    110 macro   pager   "\eX"           "\ex" 
    111 macro   index   "~"             ";~" 
     107macro   generic,pager   "\ex"           "<enter-command>exec " 
     108macro   generic,pager   "\eX"           "\ex" 
     109macro   index           "~"             "<limit>~" 
    112110 
    113111# move messages to the pilot folder 
    114112 
    115 macro   index   "\ew"           "<decode-copy>+pilot\n" "Copy a message to the pilot folder." 
    116 macro   pager   "\ew"           "<decode-copy>+pilot\n" "Copy a message to the pilot folder." 
     113macro   index,pager     "\ew"           "<decode-copy>+pilot<Enter>"    "Copy a message to the pilot folder." 
    117114 
    118115# for majordomo list owner and moderator jobs 
    119116 
    120 macro   index   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n" 
    121 macro   pager   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n" 
     117macro   index,pager     "\ea"           "\ 
     118<enter-command> set nopipe_decode wait_key<Enter>\ 
     119<pipe-message> approve<Enter>\ 
     120<enter-command> set nowait_key<Enter>" 
    122121 
    123122# emulate the old URL-browser key bindings. 
    124123 
    125 macro   pager   "\Cb"   "| urlview -\n" 
    126 macro   index   "\Cb"   "| urlview -\n" 
     124macro   index,pager     "\Cb"   "<pipe-message> urlview -<Enter>" 
    127125 
    128126# permit limiting from the pager. 
    129127 
    130 macro   pager   ";"     "<exit><limit>" 
     128macro   pager   ";"     "<exit><limit>" 
     129macro   pager   "~"     "<exit><limit>~" 
    131130 
    132131# emulate the old POP-feature bindings 
    133132 
    134 macro   index   G       "!fetchmail\n"   
    135 macro   pager   G       "!fetchmail\n" 
    136  
    137 macro   compose "\ee"   "Fpgp -eatf "  
     133macro   index,pager     G       "<shell-escape> fetchmail<Enter>" 
     134 
     135macro   compose "\ee"   "<filter-entry>pgp -eatf " 
    138136 
    139137 
  • doc/muttrc.man.head

    r4701 r4745  
    322322.PP 
    323323.nf 
    324 \fBset\fP [\fBno\fP|\fBinv\fP]\fIvariable\fP[=\fIvalue\fP] [ ... ] 
     324\fBset\fP [\fBno\fP|\fBinv\fP|\fB&\fP|\fB?\fP]\fIvariable\fP[=\fIvalue\fP] [ ... ] 
    325325\fBtoggle\fP \fIvariable\fP [ ... ] 
    326326\fBunset\fP \fIvariable\fP [ ... ]