Re: Order of send-hook and folder-hook options.
On 2007-10-11, Benjamin A'Lee <bma+lists@xxxxxxxxxxxxxx> wrote:
> On Wed, Oct 10, 2007 at 03:50:57PM -0700, Gary Johnson wrote:
> > What I've done is nest them, so that a set of folder-hooks define
> > the set of send-hooks and/or message-hooks to be used within that
> > folder. It looks a little complicated at first, but it works quite
> > well.
>
> This occurred to me, but I couldn't get the quoting right.
That's one of the advantages to having the folder-hooks source files
of other hooks: the quoting is much simpler.
It's important to remember that the command argument to each hook
is a single command, so the whole command argument usually needs to
be quoted as a single string. I usually use the following quoting
conventions:
' outermost level
" next level in
\" next level in
Once you get the quoting right for one hook, though, you can
construct most of your other hooks by copy-paste-edit.
> Thanks, both of you.
You're welcome.
Regards,
Gary