dovecot: Don't assert-crash if COPYing didn't copy any messages.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Sat Sep 22 11:07:27 EEST 2007
    
    
  
details:   http://hg.dovecot.org/dovecot/rev/758016646062
changeset: 6441:758016646062
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 22 11:07:23 2007 +0300
description:
Don't assert-crash if COPYing didn't copy any messages.
diffstat:
1 file changed, 2 insertions(+)
src/imap/cmd-copy.c |    2 ++
diffs (12 lines):
diff -r e10e2147d994 -r 758016646062 src/imap/cmd-copy.c
--- a/src/imap/cmd-copy.c	Thu Sep 20 17:05:19 2007 +0300
+++ b/src/imap/cmd-copy.c	Sat Sep 22 11:07:23 2007 +0300
@@ -140,6 +140,8 @@ bool cmd_copy(struct client_command_cont
 	else if (mailbox_transaction_commit_get_uids(&t, 0, &uid_validity,
 						     &uid1, &uid2) < 0)
 		ret = -1;
+	else if (copy_count == 0)
+		msg = "OK No messages copied.";
 	else {
 		i_assert(copy_count == uid2 - uid1 + 1);
 
    
    
More information about the dovecot-cvs
mailing list