diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-09-12 18:42:49 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-09-12 19:11:03 +0300 |
commit | 6a1aaa2561049ba404ad5bc05820ba830fbe4af0 (patch) | |
tree | 9aa1db6cae03fce38348aa4cb9e9147c7dda8401 | |
parent | 323afc48194347cf8c52d329bfb2a0712137cf8d (diff) | |
download | mailutils-6a1aaa2561049ba404ad5bc05820ba830fbe4af0.tar.gz mailutils-6a1aaa2561049ba404ad5bc05820ba830fbe4af0.tar.bz2 |
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.
-rw-r--r-- | movemail/movemail.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/movemail/movemail.c b/movemail/movemail.c index 3c910930c..afb83e8ae 100644 --- a/movemail/movemail.c +++ b/movemail/movemail.c @@ -607,6 +607,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: @@ -892,7 +894,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); |