<<< Date Index >>>     <<< Thread Index >>>

Re: match replies in a send-hook



Gary Johnson wrote:  [Mon Jul 09 2007, 05:43:51PM EDT]
> On 2007-07-09, Aron Griffis <agriffis@xxxxxxxxx> wrote:
> > As far as I can tell, there's no way to determine in a send-hook if
> > the message is a reply.  Is that right?
> > 
> > This is the most obvious thing to try, but it doesn't work because ~h
> > is invalid in the context of a send-hook:
> > 
> >     send-hook '=h In-Reply-To:' ...
> > 
> > Here's what I'm using presently, but I'd prefer something more
> > definitive:
> > 
> >     send-hook '~s "^Re:"' ...
> 
> Would a reply-hook work for you?

Nope, because what I'm really trying to do is match messages that are
*not* replies.  Additionally I want to keep my hooks in order, which
reply-hook breaks.

Thanks,
Aron