On 2000.11.07, in <[EMAIL PROTECTED]>,
        "Mikko Hänninen" <[EMAIL PROTECTED]> wrote:
> Jonathan Scott Duff <[EMAIL PROTECTED]> wrote on Mon, 06 Nov 2000:
> > Hi, I'm using mutt 1.2.5i and was wondering if there were some
> > convient way to match messages based on the number of paragraphs,
> > lines, words, characters, etc.?
> 
> No way currently.  Well, characters is the same as the message size,
> so ~z works for that.  But nothing else is available.  A patch might
> be added if someone made one available. :-)

Word/paragraph information is not present in the message object in
mutt's code, and I don't think it should be, and I don't think it will
be. :)

However, I can imagine a pattern expression that pipes each message
through a command, and matches based on that command's exit status: if
0, match; else, no match.  This could work like:
        ~Z 'set -- `wc %s`; [ $2 -gt 1000 ] && true || false'

to match messages with more than 1000 words.  This would be slow, but
simple, and possibly useful.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to