* lib: make renaming messages upon moving them optional

This commit is contained in:
djcb
2013-05-25 19:27:54 +03:00
parent 6e9390d5c2
commit 7cb3bb9e36
4 changed files with 34 additions and 26 deletions

View File

@ -855,7 +855,8 @@ get_target_mdir (MuMsg *msg, const char *target_maildir, GError **err)
*/
gboolean
mu_msg_move_to_maildir (MuMsg *self, const char *maildir,
MuFlags flags, gboolean ignore_dups, GError **err)
MuFlags flags, gboolean ignore_dups, gboolean new_name,
GError **err)
{
char *newfullpath;
char *targetmdir;
@ -871,7 +872,7 @@ mu_msg_move_to_maildir (MuMsg *self, const char *maildir,
newfullpath = mu_maildir_move_message (mu_msg_get_path (self),
targetmdir, flags,
ignore_dups, err);
ignore_dups, new_name, err);
/* update the message path and the flags; they may have
* changed */
if (!newfullpath) {