Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sorting on regular expression?

5 views
Skip to first unread message

Andrew

unread,
Apr 12, 2006, 9:40:04 AM4/12/06
to
can one do something like

:set sort=regexp subject "v[il1]aga?ra"

and have all the matched ones grouped, say, at the bottom?

any equivalent workaround?

andrew

Rado S

unread,
Apr 12, 2006, 10:03:54 AM4/12/06
to

It's certainly easier if you tell us what you finally want to
achieve. Your suggestion doesn't work literally.

You can use the "limit" action with proper patterns.
(see manual for details)

Or use filters (procmail) to split into separate folders before
mutt gets to see the msg.

--
© Rado S. -- You must provide YOUR effort for your goal!

... and more on http://WIKI.mutt.org/

Alok Singhal

unread,
Apr 12, 2006, 10:14:18 AM4/12/06
to

Maybe you want mutt's "limit" command?

In the index view, type "l" (ell, without the quotes), followed by

~s v[il1]aga?ra

That would only display messages with the subject matching your regexp.
See section 4.2 (Patterns) in the mutt manual for more.

Alok

Andrew

unread,
Apr 12, 2006, 3:50:33 PM4/12/06
to
Alok Singhal wrote:
> On Wed, 12 Apr 2006 06:40:04 -0700, Andrew wrote:
>
> > can one do something like
> >
> > :set sort=regexp subject "v[il1]aga?ra"
> >
> > and have all the matched ones grouped, say, at the bottom?
> >
> > any equivalent workaround?
>
> Maybe you want mutt's "limit" command?
>
> In the index view, type "l" (ell, without the quotes), followed by
>
> ~s v[il1]aga?ra

Fantastic. This is what i was looking for -- to be able to isolate the
matching messages (I don't need multi-level sorting with regexp's ...
for now, at least :-))

Now I'll delve deeper into mutt's regexp specifics, in the hope that
they are reasonably robust (i don't expect the full power of, say,
Perl's regexp's, but would like some basic stuff like alpha vs. numeric
distinction, word boundary, negated sets (in the midst of non-negated
("affirmed"?) subpatterns) )

> That would only display messages with the subject matching your regexp.
> See section 4.2 (Patterns) in the mutt manual for more.

I read through this section -- beyond it there does not seem to be any
more detail about mutt's re's - or am i wrong? - i'll continue to
research

thank you!

andrew
>
> Alok

Message has been deleted
0 new messages