Re: folder-hooks applying too often
On Sat, Apr 14, 2007 at 04:59:45PM +0200, Rado S wrote: > =- Matthew Daubenspeck wrote on Sat 14.Apr'07 at 10:55:49 -0400 -= > > > > * Matthew Daubenspeck <[EMAIL PROTECTED]> [2007-04-14 09:48 -0400]: > > > > folder-hook =INBOX 'macro index d > > > > "=INBOX.Trash"' > > > > > > This hook is applied to all folders that contain =INBOX. > > > > > > > when in INBOX and INBOX.Work. However, it is using the setup in ALL > > > > folders. Any suggestions? > > > > > > Add $ at the end of the mailboxname. > > > > I must have the syntax wrong, as I tried that and it makes no > > difference: > > Please re-check how folder-hooks work, maybe > http://WIKI.mutt.org/?DebugConfig can help you. > "catch-all" default is what you miss. Ugh. My mistake. That fixed it and made it work perfectly. Thanks for the link. -- Matthew Daubenspeck http://oddprocess.org Gentoo Linux x86_64 Dual Core AMD Opteron(tm) Processor 165 01:07:02 up 72 days, 14:54, 1 user, load average: 0.00, 0.00, 0.00
Re: Trash folder
On Sat, Apr 14, 2007 at 04:22:11PM +0200, Nicolas Rachinsky wrote: > * Matthew Daubenspeck <[EMAIL PROTECTED]> [2007-04-14 09:48 -0400]: > > folder-hook =INBOX 'macro index d "=INBOX.Trash"' > > This hook is applied to all folders that contain =INBOX. > > > when in INBOX and INBOX.Work. However, it is using the setup in ALL > > folders. Any suggestions? > > Add $ at the end of the mailboxname. I must have the syntax wrong, as I tried that and it makes no difference: folder-hook =INBOX.$ 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Work$ 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Trash$ 'macro index d ' And I have tried: folder-hook =INBOX$ 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Work$ 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Trash$ 'macro index d ' -- Matthew Daubenspeck http://oddprocess.org Gentoo Linux x86_64 Dual Core AMD Opteron(tm) Processor 165 10:53:57 up 71 days, 41 min, 1 user, load average: 0.00, 0.00, 0.00
Trash folder
I am trying to use some folder hooks to create a move-to-trash setup with mutt (1.5.15). However, I only want two of my many folders to work with this. Here is what I have tried: folder-hook =INBOX 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Work 'macro index d "=INBOX.Trash"' folder-hook =INBOX.Trash 'macro index d ' It works, but too well. It seems to ignore that I only want it to copy when in INBOX and INBOX.Work. However, it is using the setup in ALL folders. Any suggestions? -- Matthew Daubenspeck http://oddprocess.org Gentoo Linux x86_64 Dual Core AMD Opteron(tm) Processor 165 09:42:49 up 70 days, 23:30, 1 user, load average: 0.05, 0.02, 0.00