mirror of https://github.com/djcb/mu.git
* minor stuff / cosmetics
This commit is contained in:
parent
424d012085
commit
5c2417a041
|
@ -172,7 +172,9 @@ set_group_find_defaults (MuConfig *opts)
|
|||
if (!opts->sortfield) {
|
||||
opts->sortfield = "d";
|
||||
opts->descending = TRUE;
|
||||
}
|
||||
} else
|
||||
opts->descending = FALSE;
|
||||
|
||||
}
|
||||
|
||||
if (!opts->formatstr) /* by default, use plain output */
|
||||
|
|
|
@ -108,7 +108,7 @@ struct _MuConfig {
|
|||
/* options for querying 'find' (and view-> 'summary') */
|
||||
char *fields; /* fields to show in output */
|
||||
char *sortfield; /* field to sort by (string) */
|
||||
gboolean descending; /* sort descending? */
|
||||
gboolean descending; /* sort descending (z->a)? */
|
||||
gboolean threads; /* show message threads */
|
||||
gboolean summary; /* include a summary? */
|
||||
char *bookmark; /* use bookmark */
|
||||
|
|
|
@ -60,7 +60,6 @@ enum _MuMsgFlags {
|
|||
* means (NEW or not SEEN) */
|
||||
MU_MSG_FLAG_UNREAD = 1 << 7,
|
||||
|
||||
|
||||
/* these we get from the contents */
|
||||
|
||||
/* "Z"->signed message */
|
||||
|
|
|
@ -813,3 +813,5 @@ error:
|
|||
return FALSE;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
18
src/mu-msg.h
18
src/mu-msg.h
|
@ -358,6 +358,21 @@ int mu_msg_cmp (MuMsg *m1, MuMsg *m2, MuMsgFieldId mfid);
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* convert the msg to a Lisp symbolic expression (for further processing in
|
||||
* e.g. emacs)
|
||||
*
|
||||
* @param msg a valid message
|
||||
* @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);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* move a message to another maildir; the function returns the full
|
||||
* path to the new message, and changes the msg to now point to the
|
||||
|
@ -463,7 +478,8 @@ typedef gboolean (*MuMsgContactForeachFunc) (MuMsgContact* contact,
|
|||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* call a function for each of the contacts in a message
|
||||
* call a function for each of the contacts in a message; the order is:
|
||||
* from to cc bcc (of each there are zero or more)
|
||||
*
|
||||
* @param msg a valid MuMsgGMime* instance
|
||||
* @param func a callback function to call for each contact; when
|
||||
|
|
Loading…
Reference in New Issue