Eugene & Josh, et al --

...and then Eugene Lee said...
% On Thu, Mar 09, 2000 at 05:25:36PM -0500, Jim Toth wrote:
% :
% :   When multiple matches occur, commands are executed in the order
% :   they are specified in the muttrc.
% 
% I got bit by this too just a little while ago.  I guess I'm used to the
% short circuit logic in C.

Don't kick yourself yet.  If more than one hook can apply, like a
send-hook, then all are checked and all matches are applied in the
order found.  If, however, only one can apply (like a folder-hook or
mebbe an fcc-hook), then the first one to generate a match drops you 
out of hook checking -- and so you should have your default case at
the end.

Sounds kinda funny at first, but you certainly couldn't have send-hooks
stopping early, and why bother to build some sort of a parse tree for
f*-hooks if you can just count on intelligent users to reverse their
order for that type of hook :-)


% 
% -- 
% Eugene Lee
% [EMAIL PROTECTED]


:-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!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to