There have been various requests to be able to index/search the X-label:
header, amongst other things.

Rather than hard-wiring the indexing of specialist headers like this,
I'm wondering if the capability ought to be customisable in some way.

Maybe in the .mairixrc file, we could have some lines like

custom 1 x-label
custom 2 organization

etc

When a new database is created, these lines would cause some custom
tables to be created within it.  The database would remember the headers
corresponding to each table.  Then, a search could look like

  mairix 1:foobar d:6m-

to find any message with the word 'foobar' in its x-label header within
the last 6 months.

Comments?  Suggestions?  Improvements?

The one aspect I haven't thought much about is how the content of each
custom header would be broken into tokens for indexing.  For example,
there are various options such as:

1. tokens are whitespace separated
2. anything in quotes has whitespace ignored
3. header contains email addresses which need to be handled in the way
the to: etc headers are now. (useful for Sender: for example)
4. tokens are semicolon or comma separated

etc.

If there are any good ideas for how to handle these issues out there, +
any other types of token separation that need to be considered, it would
help a lot.

-- 
Richard P. Curnow | Free software developer
Weston-super-Mare | 
United Kingdom    | http://www.rc0.org.uk/

-------------------------------------------------------------------------
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