aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b22b8703b3..8f13667c2a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,12 @@
2003-09-22 Not Zed <NotZed@Ximian.com>
+ ** See bug #41610
+
+ * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
+ divide by 0 for 0 length messages.
+
+2003-09-22 Not Zed <NotZed@Ximian.com>
+
* providers/imap/camel-imap-provider.c: Added "offline_sync"
option, which lets you synchronise all mail to local storage
automagically.
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 0598a26a51..db77ad8191 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -365,7 +365,8 @@ cmd_tocache(CamelPOP3Engine *pe, CamelPOP3Stream *stream, void *data)
w += n;
if (w > fi->size)
w = fi->size;
- camel_operation_progress(NULL, (w * 100) / fi->size);
+ if (fi->size != 0)
+ camel_operation_progress(NULL, (w * 100) / fi->size);
}
/* it all worked, output a '#' to say we're a-ok */