Fix the progress for get_message - imapx
authorChenthill Palanisamy <pchenthill@novell.com>
Fri, 26 Feb 2010 21:42:10 +0000 (03:12 +0530)
committerChenthill Palanisamy <pchenthill@novell.com>
Fri, 26 Feb 2010 21:42:10 +0000 (03:12 +0530)
camel/providers/imapx/camel-imapx-server.c

index fd37a62..19a571a 100644 (file)
@@ -2251,7 +2251,7 @@ imapx_command_fetch_message_done(CamelIMAPXServer *is, CamelIMAPXCommand *ic)
 
        if (job->u.get_message.use_multi_fetch) {
 
-               if (!failed && job->u.get_message.body_len == MULTI_SIZE) {
+               if (!failed && job->u.get_message.fetch_offset <= job->u.get_message.size) {
                        camel_imapx_command_free (ic);
                        camel_operation_progress (job->op, (job->u.get_message.fetch_offset *100)/job->u.get_message.size);