[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread servilio
I think it would be better to leave the To, Cc and Bcc as they are and just add a "recipient" term, the name is easier to grasp. Servilio

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread Austin Clements
Add the "exactto", "cc", and "bcc" terms just like you do but *remove* the "to" term altogether. Then in notmuch_database_open, after it's added the usual probabilistic prefixes, do something like notmuch->query_parser->add_prefix ("to", _find_prefix ("exactto")); notmuch->query_parser->add_pr

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread servilio
I think it would be better to leave the To, Cc and Bcc as they are and just add a "recipient" term, the name is easier to grasp. Servilio ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread Joel Borggrén-Franck
On Sun, Dec 12, 2010 at 7:41 AM, Austin Clements wrote: > Short of full header indexing, wouldn't a better way to achieve this be to > store only the "to" header as "XTO", the "cc" header "XCC", and the "bcc" > header as "XBCC" and use Xapian's multi-prefix support to map the "to:" > query prefix

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread Austin Clements
Add the "exactto", "cc", and "bcc" terms just like you do but *remove* the "to" term altogether. Then in notmuch_database_open, after it's added the usual probabilistic prefixes, do something like notmuch->query_parser->add_prefix ("to", _find_prefix ("exactto")); notmuch->query_parser->add_pr

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread Joel Borggrén-Franck
On Sun, Dec 12, 2010 at 7:41 AM, Austin Clements wrote: > Short of full header indexing, wouldn't a better way to achieve this be to > store only the "to" header as "XTO", the "cc" header "XCC", and the "bcc" > header as "XBCC" and use Xapian's multi-prefix support to map the "to:" > query prefix

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-12 Thread Austin Clements
Short of full header indexing, wouldn't a better way to achieve this be to store only the "to" header as "XTO", the "cc" header "XCC", and the "bcc" header as "XBCC" and use Xapian's multi-prefix support to map the "to:" query prefix to "XTO", "XCC", and "XBCC"? That way you're not storing twice a

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-11 Thread Austin Clements
Short of full header indexing, wouldn't a better way to achieve this be to store only the "to" header as "XTO", the "cc" header "XCC", and the "bcc" header as "XBCC" and use Xapian's multi-prefix support to map the "to:" query prefix to "XTO", "XCC", and "XBCC"? That way you're not storing twice a

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-03 Thread Xavier Maillard
Hi, On Thu, 02 Dec 2010 09:48:03 -0800, Dirk Hohndel wrote: > On Wed, 1 Dec 2010 21:33:55 +0100, Joel Borggr?n-Franck > wrote: > > From: Joel Borggr?n-Franck > > > > Add headers cc: bcc: and to: to index. Real header to: is searched as > > "exactto:foo at bar.baz" and search term "to:" is k

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Xavier Maillard
Hi, On Thu, 02 Dec 2010 09:48:03 -0800, Dirk Hohndel wrote: > On Wed, 1 Dec 2010 21:33:55 +0100, Joel Borggrén-Franck > wrote: > > From: Joel Borggrén-Franck > > > > Add headers cc: bcc: and to: to index. Real header to: is searched as > > "exactto:f...@bar.baz" and search term "to:" is kept

Re: [PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Dirk Hohndel
On Wed, 1 Dec 2010 21:33:55 +0100, Joel Borggrén-Franck wrote: > From: Joel Borggrén-Franck > > Add headers cc: bcc: and to: to index. Real header to: is searched as > "exactto:f...@bar.baz" and search term "to:" is kept as a union of cc:, > bcc: and to: for backward compatibility. Use search

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Dirk Hohndel
On Wed, 1 Dec 2010 21:33:55 +0100, Joel Borggr?n-Franck wrote: > From: Joel Borggr?n-Franck > > Add headers cc: bcc: and to: to index. Real header to: is searched as > "exactto:foo at bar.baz" and search term "to:" is kept as a union of cc:, > bcc: and to: for backward compatibility. Use search

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-02 Thread Joel Borggrén-Franck
From: Joel Borggrén-Franck Add headers cc: bcc: and to: to index. Real header to: is searched as "exactto:f...@bar.baz" and search term "to:" is kept as a union of cc:, bcc: and to: for backward compatibility. Use search term "cc:" resp. "bcc:" to search those headers respectively. --- lib/datab

[PATCH] add headers cc: bcc: and to: (as exactto:) to search index

2010-12-01 Thread Joel Borggrén-Franck
From: Joel Borggr?n-Franck Add headers cc: bcc: and to: to index. Real header to: is searched as "exactto:foo at bar.baz" and search term "to:" is kept as a union of cc:, bcc: and to: for backward compatibility. Use search term "cc:" resp. "bcc:" to search those headers respectively. --- lib/dat