mirror of https://github.com/djcb/mu.git
* mu-msg: update for other changes
This commit is contained in:
parent
14aa3c132b
commit
a84d72e7cf
|
@ -687,14 +687,15 @@ mu_msg_is_readable (MuMsg *self)
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
mu_msg_move_to_maildir (MuMsg *self, const char* targetmdir,
|
mu_msg_move_to_maildir (MuMsg *self, const char* targetmdir,
|
||||||
MuFlags flags, GError **err)
|
MuFlags flags, gboolean ignore_dups, GError **err)
|
||||||
{
|
{
|
||||||
char *newfullpath;
|
char *newfullpath;
|
||||||
|
|
||||||
g_return_val_if_fail (self, FALSE);
|
g_return_val_if_fail (self, FALSE);
|
||||||
|
|
||||||
newfullpath = mu_maildir_move_message (mu_msg_get_path (self),
|
newfullpath = mu_maildir_move_message (mu_msg_get_path (self),
|
||||||
targetmdir, flags, err);
|
targetmdir, flags,
|
||||||
|
ignore_dups, err);
|
||||||
if (newfullpath) /* update our path to new one... */
|
if (newfullpath) /* update our path to new one... */
|
||||||
mu_msg_cache_set_str (self->_cache, MU_MSG_FIELD_ID_PATH, newfullpath,
|
mu_msg_cache_set_str (self->_cache, MU_MSG_FIELD_ID_PATH, newfullpath,
|
||||||
TRUE); /* the cache will free the string */
|
TRUE); /* the cache will free the string */
|
||||||
|
|
|
@ -395,13 +395,16 @@ char* mu_msg_to_sexp (MuMsg *msg, gboolean dbonly);
|
||||||
* that this may still involve a moved to another directory (say, from
|
* that this may still involve a moved to another directory (say, from
|
||||||
* new/ to cur/)
|
* new/ to cur/)
|
||||||
* @param flags to set for the target (influences the filename, path)
|
* @param flags to set for the target (influences the filename, path)
|
||||||
|
* @param silently ignore the src=target case (return TRUE)
|
||||||
* @param err (may be NULL) may contain error information; note if the
|
* @param err (may be NULL) may contain error information; note if the
|
||||||
* function return FALSE, err is not set for all error condition
|
* function return FALSE, err is not set for all error condition
|
||||||
* (ie. not for parameter errors)
|
* (ie. not for parameter error
|
||||||
|
*
|
||||||
* @return TRUE if it worked, FALSE otherwise
|
* @return TRUE if it worked, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
gboolean mu_msg_move_to_maildir (MuMsg *msg, const char* targetmdir,
|
gboolean mu_msg_move_to_maildir (MuMsg *msg, const char* targetmdir,
|
||||||
MuFlags flags, GError **err);
|
MuFlags flags, gboolean ignore_dups,
|
||||||
|
GError **err);
|
||||||
|
|
||||||
|
|
||||||
enum _MuMsgContactType { /* Reply-To:? */
|
enum _MuMsgContactType { /* Reply-To:? */
|
||||||
|
|
Loading…
Reference in New Issue