Fix division-by-zero in imapx message fetch
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 22 Jun 2010 10:04:06 +0000 (11:04 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 24 Jun 2010 10:21:55 +0000 (11:21 +0100)
commit79107d2547812926f51343b23e551da794f2a8a7
treef0fe84b841aa155456f26149a546e2b4454b1083
parent7e0e64e76a0771fd6681d21fc63ce97251410e88
Fix division-by-zero in imapx message fetch

Use ifolder->exists_on_server, not imap->exists (which could have come
from a STATUS command and be the value for some other folder).

And it's possible to get here when we thought there were no messages, so
add ?:1 to avoid the division by zero in that case too.
camel/providers/imapx/camel-imapx-server.c