At 6:56 PM EST on February 27 David DeSimone sent off: > Rob Reid <[EMAIL PROTECTED]> wrote: > > > > I thought that was what . is for, matching any folder, as in: > > > > folder-hook . unset save_empty > > Maybe I should explain it a little clearer: > > Suppose you have a set of hooks like this: > > folder-hook . 'set variable=AAA' > folder-hook +folder 'set variable=BBB' > > send-hook '~C user@domain' 'set variable=CCC' > > Now, given this, I believe the original poster in this thread expects > that $variable would be set to "AAA" when he is sending to some other > user, and not in +folder, and expects it to be set to "BBB" if he sends > to another user while in +folder, and expects it to be set to "CCC" when > he sends to <user@domain>, regardless of the folder. > > In fact, though, only the last statement is true. The others are true > SOMETIMES. Depending on what has happened before. >
I thought it probably wasn't that simple. I wasn't paying attention at the start of the thread. > > Now, if we were to add a new send-hook before the other: > > send-hook ~A 'set variable=DDD' > > This wouldn't have the desired effect either, because the variable would > no longer depend on the folder that was entered. When sending to > <user@domain>, $variable has the value "CCC". When sending to anyone > else, it has the value "DDD". Regardless of folder. Maybe it could be made folder specific by tying the send-hook to an alias, or even user+folder@domain, that is only used when emailing user from folder. -- The time will come when men such as I look upon the murder of animals as they now look on the murder of men. - Leonardo da Vinci Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/ PGP Key: http://astro.utoronto.ca/~reid/pgp.html