mirror of https://github.com/djcb/mu.git
* cosmetics
This commit is contained in:
parent
9e43ded016
commit
e141908b7c
|
@ -33,7 +33,8 @@ enum _FieldFlags {
|
|||
FLAG_XAPIAN_INDEX = 1 << 1, /* field is indexed in xapian */
|
||||
FLAG_XAPIAN_TERM = 1 << 2, /* field stored as term in xapian */
|
||||
FLAG_XAPIAN_VALUE = 1 << 3, /* field stored as value in xapian */
|
||||
FLAG_XAPIAN_CONTACT = 1 << 4 /* field contains an e-mail address */
|
||||
FLAG_XAPIAN_CONTACT = 1 << 4 /* field contains an e-mail
|
||||
* address */
|
||||
};
|
||||
typedef enum _FieldFlags FieldFlags;
|
||||
|
||||
|
|
|
@ -41,21 +41,21 @@ enum _MuMsgFieldId {
|
|||
MU_MSG_FIELD_ID_TO,
|
||||
MU_MSG_FIELD_ID_MSGID,
|
||||
MU_MSG_FIELD_ID_TIMESTAMP,
|
||||
|
||||
MU_MSG_FIELD_ID_NUM
|
||||
MU_MSG_FIELD_ID_NUM,
|
||||
|
||||
/* fake fields */
|
||||
MU_MSG_PSEUDO_FIELD_ID_DATESTR, /* used in to store datestr in db */
|
||||
MU_MSG_FIELD_ID_NUM_WITH_PSEUDO /* number including these fake
|
||||
* fields */
|
||||
};
|
||||
typedef enum _MuMsgFieldId MuMsgFieldId;
|
||||
|
||||
/* some specials... */
|
||||
static const MuMsgFieldId MU_MSG_FIELD_ID_NONE = (MuMsgFieldId)-1;
|
||||
static const MuMsgFieldId MU_MSG_FIELD_ID_DATESTR =
|
||||
(MuMsgFieldId) (MU_MSG_FIELD_ID_NUM + 1);
|
||||
|
||||
#define mu_msg_field_id_is_valid(MFID) \
|
||||
((MFID) < MU_MSG_FIELD_ID_NUM)
|
||||
|
||||
|
||||
|
||||
/* don't change the order, add new types at the end (before _NUM)*/
|
||||
enum _MuMsgFieldType {
|
||||
MU_MSG_FIELD_TYPE_STRING,
|
||||
|
|
|
@ -707,13 +707,15 @@ get_body (MuMsg *msg, gboolean want_html)
|
|||
NULL;
|
||||
else
|
||||
str = data._txt_part ?
|
||||
part_to_string (GMIME_PART(data._txt_part), TRUE, &err) :
|
||||
part_to_string (GMIME_PART(data._txt_part),
|
||||
TRUE, &err) :
|
||||
NULL;
|
||||
|
||||
/* note, str may be NULL (no body), but that's not necessarily
|
||||
* an error; we only warn when an actual error occured */
|
||||
if (err)
|
||||
g_warning ("error occured while retrieving %s body for message %s",
|
||||
g_warning ("error occured while retrieving %s body"
|
||||
"for message %s",
|
||||
want_html ? "html" : "text",
|
||||
mu_msg_get_path(msg));
|
||||
|
||||
|
|
Loading…
Reference in New Issue