* mu-msg-fields.c: store TERM for maildir field as well; add some more comments
This commit is contained in:
@ -46,8 +46,9 @@ enum _FieldFlags {
|
|||||||
FLAG_XAPIAN_BOOLEAN = 1 << 6, /* use 'add_boolean_prefix'
|
FLAG_XAPIAN_BOOLEAN = 1 << 6, /* use 'add_boolean_prefix'
|
||||||
* for Xapian queries */
|
* for Xapian queries */
|
||||||
FLAG_XAPIAN_PREFIX_ONLY = 1 << 7, /* whether this fields
|
FLAG_XAPIAN_PREFIX_ONLY = 1 << 7, /* whether this fields
|
||||||
* matches only in queries
|
* matches only when the
|
||||||
* when a prefix is used */
|
* prefix is explicitly
|
||||||
|
* included */
|
||||||
FLAG_NORMALIZE = 1 << 8, /* field needs flattening for
|
FLAG_NORMALIZE = 1 << 8, /* field needs flattening for
|
||||||
* case/accents */
|
* case/accents */
|
||||||
FLAG_DONT_CACHE = 1 << 9 /* don't cache this field in
|
FLAG_DONT_CACHE = 1 << 9 /* don't cache this field in
|
||||||
@ -150,8 +151,7 @@ static const MuMsgField FIELD_DATA[] = {
|
|||||||
MU_MSG_FIELD_TYPE_STRING,
|
MU_MSG_FIELD_TYPE_STRING,
|
||||||
"maildir", 'm', 'M',
|
"maildir", 'm', 'M',
|
||||||
FLAG_GMIME | FLAG_XAPIAN_TERM | FLAG_XAPIAN_VALUE |
|
FLAG_GMIME | FLAG_XAPIAN_TERM | FLAG_XAPIAN_VALUE |
|
||||||
FLAG_NORMALIZE | FLAG_XAPIAN_ESCAPE |
|
FLAG_NORMALIZE | FLAG_XAPIAN_ESCAPE | FLAG_XAPIAN_PREFIX_ONLY
|
||||||
FLAG_XAPIAN_BOOLEAN | FLAG_XAPIAN_PREFIX_ONLY
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -175,7 +175,7 @@ static const MuMsgField FIELD_DATA[] = {
|
|||||||
MU_MSG_FIELD_TYPE_STRING,
|
MU_MSG_FIELD_TYPE_STRING,
|
||||||
"subject", 's', 'S',
|
"subject", 's', 'S',
|
||||||
FLAG_GMIME | FLAG_XAPIAN_INDEX | FLAG_XAPIAN_VALUE |
|
FLAG_GMIME | FLAG_XAPIAN_INDEX | FLAG_XAPIAN_VALUE |
|
||||||
FLAG_NORMALIZE
|
FLAG_XAPIAN_TERM | FLAG_NORMALIZE
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user