* mu-msg-util: some minor cosmetic fixes
This commit is contained in:
@ -29,7 +29,6 @@
|
|||||||
#include "mu-util.h"
|
#include "mu-util.h"
|
||||||
#include "mu-msg-gmime.h"
|
#include "mu-msg-gmime.h"
|
||||||
|
|
||||||
|
|
||||||
enum _StringFields {
|
enum _StringFields {
|
||||||
|
|
||||||
HTML_FIELD = 0, /* body as HTML */
|
HTML_FIELD = 0, /* body as HTML */
|
||||||
@ -844,13 +843,13 @@ fill_contact (MuMsgContact *contact, InternetAddress *addr,
|
|||||||
if (!addr)
|
if (!addr)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
contact->_name = internet_address_get_name (addr);
|
contact->name = internet_address_get_name (addr);
|
||||||
contact->_type = ctype;
|
contact->type = ctype;
|
||||||
|
|
||||||
/* we only support internet addresses;
|
/* we only support internet addresses;
|
||||||
* if we don't check, g_mime hits an assert
|
* if we don't check, g_mime hits an assert
|
||||||
*/
|
*/
|
||||||
contact->_addr = internet_address_mailbox_get_addr
|
contact->address = internet_address_mailbox_get_addr
|
||||||
(INTERNET_ADDRESS_MAILBOX(addr));
|
(INTERNET_ADDRESS_MAILBOX(addr));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
@ -293,11 +293,11 @@ gint64 mu_msg_gmime_get_field_numeric (MuMsgGMime *msg,
|
|||||||
const MuMsgField* field);
|
const MuMsgField* field);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the message priority for this message
|
* get the message priority for this message (MU_MSG_PRIORITY_LOW,
|
||||||
* (MU_MSG_PRIORITY_LOW, MU_MSG_PRIORITY_NORMAL or MU_MSG_PRIORITY_HIGH)
|
* MU_MSG_PRIORITY_NORMAL or MU_MSG_PRIORITY_HIGH) the X-Priority,
|
||||||
* the X-Priority, X-MSMailPriority, Importance and Precedence header are
|
* X-MSMailPriority, Importance and Precedence header are checked, in
|
||||||
* checked, in that order.
|
* that order. if no known or explicit priority is set,
|
||||||
* if no explicit priority is set, MU_MSG_PRIORITY_NORMAL is assumed
|
* MU_MSG_PRIORITY_NORMAL is assumed
|
||||||
*
|
*
|
||||||
* @param msg a valid MuMsgGMime* instance
|
* @param msg a valid MuMsgGMime* instance
|
||||||
*
|
*
|
||||||
@ -314,6 +314,16 @@ MuMsgPriority mu_msg_gmime_get_priority (MuMsgGMime *msg);
|
|||||||
*/
|
*/
|
||||||
time_t mu_msg_gmime_get_timestamp (MuMsgGMime *msg);
|
time_t mu_msg_gmime_get_timestamp (MuMsgGMime *msg);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* callback function
|
||||||
|
*
|
||||||
|
* @param contact
|
||||||
|
* @param user_data a user provided data pointer
|
||||||
|
*
|
||||||
|
* @return TRUE if we should continue the foreach, FALSE otherwise
|
||||||
|
*/
|
||||||
typedef gboolean (*MuMsgGMimeContactsForeachFunc) (MuMsgContact* contact,
|
typedef gboolean (*MuMsgGMimeContactsForeachFunc) (MuMsgContact* contact,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
|||||||
@ -52,9 +52,9 @@ enum _MuMsgContactType { /* Reply-To:? */
|
|||||||
typedef enum _MuMsgContactType MuMsgContactType;
|
typedef enum _MuMsgContactType MuMsgContactType;
|
||||||
|
|
||||||
struct _MuMsgContact {
|
struct _MuMsgContact {
|
||||||
const char *_name; /* Foo Bar */
|
const char *name; /* Foo Bar */
|
||||||
const char *_addr; /* foo@bar.cuux */
|
const char *address; /* foo@bar.cuux */
|
||||||
MuMsgContactType _type; /*MU_MSG_CONTACT_TYPE_{TO,CC,BCC,FROM}*/
|
MuMsgContactType type; /*MU_MSG_CONTACT_TYPE_{TO,CC,BCC,FROM}*/
|
||||||
};
|
};
|
||||||
typedef struct _MuMsgContact MuMsgContact;
|
typedef struct _MuMsgContact MuMsgContact;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user