On Mon, Aug 14, 2000 at 06:41:59PM +0300, Mikko Hänninen wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on Mon, 14 Aug 2000:
> >     push l ! 'DELETE THIS MESSAGE'
> > 
> > but, at startup, mutt just says:-
> >     Error in /usr/home/chris/.mutt/muttrc, line 96: push: too many arguments
> > 
> > What am I doing wrong?  I guess it's something to do with the '!' and
> > the RE but I can't work out the right syntax.
> 
> Push is a command that takes exactly one argument.  If you want to push
> a space, you need to quote the entire string:
> 
>   push "l! 'DELETE THIS MESSAGE'"
> 
> You should also be careful with the limit, and make sure it matches
> *only* that one message, and for example, not messages to mutt-users
> discussing how to avoid seeing that message...  And you may in fact
> wanted to use "l!~s 'DELETE THIS MESSAGE'", to match the subject, or
> something.
> 
Thanks for the response, I now have the above push working OK.
Yes, I appreciate there's always a risk of missing other messages as
well, however the message number in the index gives one a clue by
indicating how many messages have been ignored by the limit.

I have 'improved' the limit RE now so that it's:-

    push "l!~s '^DON'\\''T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA$'^M"

This (I hope) anchors the string at both ends so that only messages
with this exact subject will be matched so messages with 'Re:' on the
front etc. will not be ignored.

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]           Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/

Reply via email to