<sect1>Change settings before formatting a message<label id="message-hook">
<p>
-Usage: <tt/display-hook/ [!]<em/pattern/ <em/command/
+Usage: <tt/message-hook/ [!]<em/pattern/ <em/command/
This command can be used to execute arbitrary configuration commands
before viewing or formatting a message based upon information about the message.
Example:
<tscreen><verb>
-display-hook ~a 'set pager=builtin'
-display-hook '~f freshmeat-news' 'set pager="less \"+/^ subject: .*\""'
+message-hook ~a 'set pager=builtin'
+message-hook '~f freshmeat-news' 'set pager="less \"+/^ subject: .*\""'
</verb></tscreen>
<sect1>Choosing the PGP key of the recipient<label id="pgp-hook">
<itemize>
<item><ref id="folder-hook" name="folder-hook">
<item><ref id="send-hook" name="send-hook">
-<item><ref id="display-hook" name="display-hook">
+<item><ref id="message-hook" name="message-hook">
<item><ref id="save-hook" name="save-hook">
<item><ref id="mbox-hook" name="mbox-hook">
<item><ref id="fcc-hook" name="fcc-hook">
<sect2>Message Matching in Hooks<label id="pattern_hook">
<p>
Hooks that act upon messages (<tt/send-hook, save-hook, fcc-hook,
-display-hook/) are evaluated in a slightly different manner. For the other
+message-hook/) are evaluated in a slightly different manner. For the other
types of hooks, a <ref id="regexp" name="regular expression"> is
sufficient. But in dealing with messages a finer grain of control is
needed for matching since for different purposes you want to match
<item>
<tt><ref id="color" name="color"></tt> <em/object/ <em/foreground/ <em/background/ [ <em/regexp/ ]
<item>
-<tt><ref id="display-hook" name="display-hook"></tt> <em/pattern/ <em/command/
+<tt><ref id="message-hook" name="message-hook"></tt> <em/pattern/ <em/command/
<item>
<tt><ref id="folder-hook" name="folder-hook"></tt> <em/pattern/ <em/command/
<item>