Commit 7ebda349 7ebda3496ee47c3b5821375f11bd0833da2e14e4 by Sergey Poznyakoff

movemail: bugfix.

* movemail/movemail.c (guess_mbox_owner): Fix setting GID
with --owner=set-id.
(main): Don't attempt to expunge source mailbox if preserve_mail
is set.
1 parent ff95af18
......@@ -606,6 +606,8 @@ guess_mbox_owner (mu_mailbox_t mbox, struct user_id *id)
rc = 1;
}
}
else
id->gid = meth->owner.id.gid;
break;
case set_owner_name:
......@@ -891,7 +893,7 @@ main (int argc, char **argv)
mu_mailbox_destroy (&dest);
if (rc)
mu_error (_("cannot close destination mailbox: %s"), mu_strerror (rc));
else
else if (!preserve_mail)
mu_mailbox_flush (source, 1);
mu_mailbox_close (source);
......