Re: Hooks...Done, but one problem.

1999-08-24 Thread Fairlight

On Tue, Aug 24, 1999 at 11:20:38AM -0400, David Thorburn-Gundlach spewed forth:
> Mark, et al --
> 
> As far as matching an exact folder name, I know what you mean but
> don't have an answer :-)/2

Since I really -don't- have 20 folders named "funnies" but have "funnies"
and "shawn-iglou-funnies" and such, I did this:

folder-hook funnies 'set move=no'
folder-hook shawn-iglou-funnies 'set move=ask-yes'

...using the "order matters" logic that was pointed out yesterday.  That
works in this situation.  But if you actually had identical filenames in
different trees, it would be a problem.

mark->
-- 
Fairlight->   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
 <__<>__> |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



Re: Hooks...Done, but one problem.

1999-08-24 Thread David Thorburn-Gundlach

Mark, et al --

It would be a kludge, but what about creating either a symlink in
~/Mail to ../folders so that you could use

  folder-hook =folders/funnies

or a dummy subdir so that you could use

  folder-hook =dummy/../../folders/funnies

(or any path).  I haven't seen a path like "=../blah" or something
else close, so this is all I can think of.

As far as matching an exact folder name, I know what you mean but
don't have an answer :-)/2


:-D
-- 
David Thorburn-Gundlach * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED] Helping out at Pfizer
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: Hooks...Done, but one problem.

1999-08-24 Thread Fairlight

On Tue, Aug 24, 1999 at 10:33:01AM +0200, Stefan `Sec` Zehl spewed forth:
> On Mon, Aug 23, 1999 at 07:12:20PM -0400, Fairlight wrote:
> > Nope...tried both and both still act under default folder-hook rules.
> > Nice try...other ideas?
> 
> I use 
> 
> folder-hook =Listen/mutt-   "set strict_threads"
> 
> Where '=' is short for $folder which is set to ~/Mail usually
> 
> And that works for me.

Heh...yeah...except I strictly use ~/Mail for "received" for historical
reasons, and $folder is set to ~/Mail.  ~/folders is where I have procmail
put all its stuff.

No, I don't know why I kept them separate outside of wanting things
orderly, but it shouldn't pose a problem.

Someone suggested:  folder-hook \~/folders/funnies 'set move=no'  ...I
tried that and it ONLY works if you explicitly call the folder up with
~/folders/funnies.  If you're in $HOME and call "folders/funnies" or are in
~/folders and call up "funnies" it won't work.  The latter I would expect,
but the former should work, since the status line displays it as
~/folders/funnies.

I also disturbingly found out that "funnies" will match shawn-iglou-funnies
...which isn't good.  And since I just discovered that if you're in
~/folders and call mutt -f funnies that it won't match folders/funnies,
that means I need to match against only "funnies" ...I tried ^funnies$ out
of desperation, but it doesn't work.  How do you limit the pattern to the
-exact- filename?

mark->
-- 
Fairlight->   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
 <__<>__> |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



Re: Hooks...Done, but one problem.

1999-08-24 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 07:12:20PM -0400, Fairlight wrote:
> Nope...tried both and both still act under default folder-hook rules.
> Nice try...other ideas?

I use 

folder-hook =Listen/mutt-   "set strict_threads"

Where '=' is short for $folder which is set to ~/Mail usually

And that works for me.

CU,
Sec
-- 
Since compiler users outnumber compiler writers 1000:1, if it's
possible to save a compiler user 1 hour, it's worth 1000 hours
of the compiler writer's time.



Re: Hooks...Done, but one problem.

1999-08-23 Thread Fairlight

On Tue, Aug 24, 1999 at 12:52:33AM +0200, Stefan `Sec` Zehl spewed forth:
> On Mon, Aug 23, 1999 at 06:29:07PM -0400, Fairlight wrote:
> > 
> > So why won't it match on ~/folders/funnies  ??
> 
> Maybe mutt doesn't expand ~ correctly ? Maybe try the full path (or
> $HOME) instead?

Nope...tried both and both still act under default folder-hook rules.
Nice try...other ideas?

mark->
-- 
Fairlight->   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
 <__<>__> |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



Re: Hooks...Done, but one problem.

1999-08-23 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 06:29:07PM -0400, Fairlight wrote:
> 
> So why won't it match on ~/folders/funnies  ??

Maybe mutt doesn't expand ~ correctly ? Maybe try the full path (or
$HOME) instead?

CU,
Sec
-- 
"Oderint dum metuant. Let them hate so long as they fear."
   -- Lucius Accius (170-90 BC). One of history's earliest BOFHs.



Hooks...Done, but one problem.

1999-08-23 Thread Fairlight

Okay...here's my setup:

mbox-hook .* =received
save-hook ~A =received
folder-hook . 'set move=ask-yes'
folder-hook folders/funnies 'set move=no'
folder-hook > 'set move=no'

This does EXACTLY what I wanted all along (thanks, folks!!)...-except-
there's a bug.  :(

Note my second folder-hook.  The folder is actually ~/folders/funnies.
Now...if I put 'funnies' as the expr, it works.  If I put
'folders/funnies', it works.  If I put '~/folders/funnies' (with or without
quotes), it still asks me and doesn't trigger the hook.

Bug?  Known explanation?  My objective was to match filenames exactly,
since it's been pointed out it will try to execute as many as could
match...  I could have 20 different "funnies" folders.  I could have 20
different "folders" directories...each containing a "funnies" folder.
...and could only want ONE excluded.

So why won't it match on ~/folders/funnies  ??

Other than that, it's everything I wanted...I just want to practice "safe
hooking"... :)

mark->
-- 
Fairlight->   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
 <__<>__> |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers