Re: problem with a sent-items folder hook

1999-12-13 Thread David T-G

Attila --

...and then Attila Csosz said...
% 
% 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.

You simply need to set a default folder-hook, since hooks are "sticky";
the last one that applies is used.
Something like

  folder-hook . 'set hdr_format="..."'

(*before any other folder-hooks or this will be all you get :-)


HTH  HAND

:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: problem with a sent-items folder hook

1999-12-12 Thread Gary Johnson

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]