mirror of https://github.com/djcb/mu.git
* make sure tags are store in the database; this prevents reading the message
file when getting headers
This commit is contained in:
parent
05b04bdaed
commit
5310930ab8
|
@ -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
|
||||
},
|
||||
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue