* mu-msg / mu-msg-file: move gmime init to mu_msg

we need gmime even for the MuMsgDoc backend, as there we are using gmime for
  parsing address lists. using the function without 'init' caused crashes...
This commit is contained in:
Dirk-Jan C. Binnema
2011-08-20 11:55:27 +03:00
parent 9b0a9320f5
commit 56c6863c09
3 changed files with 44 additions and 37 deletions

View File

@ -368,18 +368,23 @@ int mu_msg_cmp (MuMsg *m1, MuMsg *m2, MuMsgFieldId mfid);
gboolean mu_msg_is_readable (MuMsg *self);
struct _MuMsgIterThreadInfo;
/**
* convert the msg to a Lisp symbolic expression (for further processing in
* e.g. emacs)
*
* @param msg a valid message
* @param ti thread info for the current message, or NULL
* @param dbonly if TRUE, only include message fields which can be
* obtained from the database (this is much faster if the MuMsg is
* database-backed, so no file needs to be opened)
*
* @return a string with the sexp (free with g_free) or NULL in case of error
*/
char* mu_msg_to_sexp (MuMsg *msg, gboolean dbonly);
char* mu_msg_to_sexp (MuMsg *msg, const struct _MuMsgIterThreadInfo *ti,
gboolean dbonly);
/**
* move a message to another maildir