* make sure tags are store in the database; this prevents reading the message

file when getting headers
This commit is contained in:
djcb 2012-12-27 15:57:17 +02:00
parent 05b04bdaed
commit 5310930ab8
2 changed files with 3 additions and 2 deletions

View File

@ -233,7 +233,8 @@ static const MuMsgField FIELD_DATA[] = {
MU_MSG_FIELD_ID_TAGS,
MU_MSG_FIELD_TYPE_STRING_LIST,
"tag", 'x', 'X',
FLAG_GMIME | FLAG_XAPIAN_TERM | FLAG_XAPIAN_ESCAPE
FLAG_GMIME | FLAG_XAPIAN_TERM | FLAG_XAPIAN_ESCAPE |
FLAG_XAPIAN_VALUE
},

View File

@ -257,7 +257,7 @@ get_str_list_field (MuMsg *self, MuMsgFieldId mfid)
if (self->_doc && mu_msg_field_xapian_value (mfid))
val = mu_msg_doc_get_str_list_field (self->_doc, mfid);
if (!val) {
if (!val && !self->_doc) {
/* if we don't have a file object yet, we need to
* create it from the file on disk */
if (!mu_msg_load_msg_file (self, NULL))