diff --git a/src/mu-msg.c b/src/mu-msg.c index 6883a1d5..2613f9ee 100644 --- a/src/mu-msg.c +++ b/src/mu-msg.c @@ -687,14 +687,15 @@ mu_msg_is_readable (MuMsg *self) */ gboolean mu_msg_move_to_maildir (MuMsg *self, const char* targetmdir, - MuFlags flags, GError **err) + MuFlags flags, gboolean ignore_dups, GError **err) { char *newfullpath; g_return_val_if_fail (self, FALSE); 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... */ mu_msg_cache_set_str (self->_cache, MU_MSG_FIELD_ID_PATH, newfullpath, TRUE); /* the cache will free the string */ diff --git a/src/mu-msg.h b/src/mu-msg.h index 826fe476..3c47dc56 100644 --- a/src/mu-msg.h +++ b/src/mu-msg.h @@ -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 * new/ to cur/) * @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 * 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 */ 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:? */