On Sun, Feb 18, 2007 at 09:45:01PM -0800, Jon Bach wrote:
> 
>    Is there any way to limit the number of results of a search?  I
>    don't see any mention of it in the documentation.  With hundreds of
>    thousands of emails indexed, anytime someone not thinking searches
>    for "a" it bogs up the server for a very long time.

I usually just do ^C if I think the search is taking too long.  Then
rerun with a d: parameter to limit the date range (remembering --unlock
too; the development version removes the lockfile on an interrupt but
that isn't in the last release.)

It sounds like a good idea, but which 200 mails do you want?  I think
you're going to end up using a date range or something anyway.

For now, you could probably script what you want with something
involving

  $(mairix -r "$@" | wc -l)

or similar, and abandon the real search if this returns too many
results.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users

Reply via email to