[evolution-data-server] Bug 767865 - [POP3] Correct Delete message after X days comparison
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 767865 - [POP3] Correct Delete message after X days comparison
- Date: Tue, 21 Jun 2016 06:55:59 +0000 (UTC)
commit 339599c52065041d4e497600c1a47e0e5ada63b5
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 21 08:54:34 2016 +0200
Bug 767865 - [POP3] Correct Delete message after X days comparison
camel/providers/pop3/camel-pop3-folder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index e41584f..8f91e1c 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -1100,7 +1100,7 @@ camel_pop3_folder_delete_old (CamelFolder *folder,
}
if (message_time) {
- gdouble time_diff = difftime (temp,message_time);
+ gdouble time_diff = difftime (temp, message_time);
gint day_lag = time_diff / (60 * 60 * 24);
d (printf (
@@ -1110,7 +1110,7 @@ camel_pop3_folder_delete_old (CamelFolder *folder,
"%s(%d): day_lag=[%d] \t days_to_delete=[%d]\n",
__FILE__, __LINE__, day_lag, days_to_delete));
- if (day_lag > days_to_delete) {
+ if (day_lag >= days_to_delete) {
if (g_cancellable_set_error_if_cancelled (cancellable, error)) {
camel_pop3_engine_busy_unlock (pop3_engine);
g_clear_object (&pop3_cache);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]