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) {
|
if (!opts->sortfield) {
|
||||||
opts->sortfield = "d";
|
opts->sortfield = "d";
|
||||||
opts->descending = TRUE;
|
opts->descending = TRUE;
|
||||||
}
|
} else
|
||||||
|
opts->descending = FALSE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!opts->formatstr) /* by default, use plain output */
|
if (!opts->formatstr) /* by default, use plain output */
|
||||||
|
|
|
@ -108,7 +108,7 @@ struct _MuConfig {
|
||||||
/* options for querying 'find' (and view-> 'summary') */
|
/* options for querying 'find' (and view-> 'summary') */
|
||||||
char *fields; /* fields to show in output */
|
char *fields; /* fields to show in output */
|
||||||
char *sortfield; /* field to sort by (string) */
|
char *sortfield; /* field to sort by (string) */
|
||||||
gboolean descending; /* sort descending? */
|
gboolean descending; /* sort descending (z->a)? */
|
||||||
gboolean threads; /* show message threads */
|
gboolean threads; /* show message threads */
|
||||||
gboolean summary; /* include a summary? */
|
gboolean summary; /* include a summary? */
|
||||||
char *bookmark; /* use bookmark */
|
char *bookmark; /* use bookmark */
|
||||||
|
|
|
@ -60,7 +60,6 @@ enum _MuMsgFlags {
|
||||||
* means (NEW or not SEEN) */
|
* means (NEW or not SEEN) */
|
||||||
MU_MSG_FLAG_UNREAD = 1 << 7,
|
MU_MSG_FLAG_UNREAD = 1 << 7,
|
||||||
|
|
||||||
|
|
||||||
/* these we get from the contents */
|
/* these we get from the contents */
|
||||||
|
|
||||||
/* "Z"->signed message */
|
/* "Z"->signed message */
|
||||||
|
|
|
@ -813,3 +813,5 @@ error:
|
||||||
return FALSE;
|
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
|
* 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
|
* 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);
|
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 msg a valid MuMsgGMime* instance
|
||||||
* @param func a callback function to call for each contact; when
|
* @param func a callback function to call for each contact; when
|
||||||
|
|
Loading…
Reference in New Issue