[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
t;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"? Tha

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
RECIPIENT_TYPE_TO); > +_index_address_list (message, "exactto", addresses); > + > +addresses = g_mime_message_get_recipients (mime_message, > GMIME_RECIPIENT_TYPE_CC); > +_index_address_list (message, "cc", addresses); > + > +addresses = g_mime_message_get_recipients (mime_message, > GMIME_RECIPIENT_TYPE_BCC); > +_index_address_list (message, "bcc", addresses); > + > addresses = g_mime_message_get_all_recipients (mime_message); > _index_address_list (message, "to", addresses); > > -- > 1.7.3.2 > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101212/86384473/attachment.html>