Changeset 5311:96f931ae0b22 for doc

Show
Ignore:
Timestamp:
2007-11-20 10:46:52 (12 months ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Document that save-hook/fcc-hook/fcc-save-hook use $index_format expandos. Closes #2135.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/manual.xml.head

    r5310 r5311  
    26722672 
    26732673<sect1 id="save-hook"> 
    2674 <title>Specify default save filename</title> 
    2675  
    2676 <para> 
    2677 Usage: <literal>save-hook</literal> &lsqb;!&rsqb;<emphasis>pattern</emphasis> <emphasis>filename</emphasis> 
    2678 </para> 
    2679  
    2680 <para> 
    2681 This command is used to override the default filename used when saving 
    2682 messages.  <emphasis>filename</emphasis> will be used as the default filename if the message is 
    2683 <emphasis>From:</emphasis> an address matching <emphasis>regexp</emphasis> or if you are the author and the 
    2684 message is addressed <emphasis>to:</emphasis> something matching <emphasis>regexp</emphasis>. 
    2685 </para> 
    2686  
    2687 <para> 
    2688 See <xref linkend="pattern-hook"/> for information on the exact format of <emphasis>pattern</emphasis>. 
     2674<title>Specify default save mailbox</title> 
     2675 
     2676<para> 
     2677Usage: <literal>save-hook</literal> &lsqb;!&rsqb;<emphasis>pattern</emphasis> <emphasis>mailbox</emphasis> 
     2678</para> 
     2679 
     2680<para> 
     2681This command is used to override the default mailbox used when saving 
     2682messages. <emphasis>mailbox</emphasis> will be used as the default if the message 
     2683matches <emphasis>pattern</emphasis>, see <xref linkend="pattern-hook"/> for information 
     2684on the exact format. 
     2685</para> 
     2686 
     2687<para> 
     2688To provide more flexibility and good defaults, Mutt applies the 
     2689expandos of <link linkend="index-format">&dollar;index&lowbar;format</link> to 
     2690<emphasis>mailbox</emphasis> after it was expanded. 
    26892691</para> 
    26902692 
     
    26962698 
    26972699<screen> 
     2700# default: save all to ~/Mail/&lt;author name&gt; 
     2701save-hook . ~/Mail/%F 
     2702# save from me@turing.cs.hmc.edu/me@cs.hmc.edu to $folder/elinks 
    26982703save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins 
     2704# save from aol.com to $folder/spam 
    26992705save-hook aol\\.com$ +spam 
    27002706</screen> 
     
    27242730 
    27252731<para> 
     2732To provide more flexibility and good defaults, Mutt applies the 
     2733expandos of <link linkend="index-format">&dollar;index&lowbar;format</link> to 
     2734<emphasis>mailbox</emphasis> after it was expanded. 
     2735</para> 
     2736 
     2737<para> 
    27262738See <xref linkend="pattern-hook"/> for information on the exact format of <emphasis>pattern</emphasis>. 
    27272739</para> 
     
    27472759<para> 
    27482760This command is a shortcut, equivalent to doing both a <link linkend="fcc-hook">fcc-hook</link> 
    2749 and a <link linkend="save-hook">save-hook</link> with its arguments. 
     2761and a <link linkend="save-hook">save-hook</link> with its arguments, 
     2762including &percnt;-expansion on <emphasis>mailbox</emphasis> according 
     2763to <link linkend="index-format">&dollar;index&lowbar;format</link>. 
    27502764</para> 
    27512765