On Sun, Dec 12, 1999 at 03:48:22PM +0100, Attila Csosz wrote:
> I've set up a folder hook in my .muttrc file for my ~/Maildir/Sent-Items folder
> 
> The folder hook is:
> 
> -------------
> folder-hook Sent-Items 'set hdr_format="%4C %Z %{%m %d} %-15.15t (%4c) %s"'
> -------------
> 
> When I change to Sent-Items it works but when I change back for example my
> Inbox folder, this folder hook affects my Inbox, so this time my Inbox folder
> looks like my Sent-Items folder.

One solution is the following:

folder-hook .          'set hdr_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"'
folder-hook Sent-Items 'set hdr_format="%4C %Z %{%m %d} %-15.15t (%4c) %s"'

This will set the default format whenever you change folders, then set
your send-items format if the folder is Sent-Items.  I'm not sure about
the default format.  It wasn't in the manual I have, and querying it
from the Mutt command line returned "index_format" instead of
"hdr_format":

    index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"

-- 
Gary Johnson                                    | Formerly:
Agilent Technologies                            | Hewlett-Packard Company
RF Communications Product Generation Unit       | Spokane Division
Spokane, Washington                             | Spokane, Washington
<[EMAIL PROTECTED]>                          | <[EMAIL PROTECTED]>

Reply via email to