aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 160e729da6..2704442bc7 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -1304,7 +1304,10 @@ mail_component_init (MailComponent *component)
mail_autoreceive_init();
priv->mail_sync_in_progress = 0;
- priv->mail_sync_id = g_timeout_add_seconds (mail_config_get_sync_timeout (), call_mail_sync, component);
+ if (g_getenv("CAMEL_FLUSH_CHANGES"))
+ priv->mail_sync_id = g_timeout_add_seconds (mail_config_get_sync_timeout (), call_mail_sync, component);
+ else
+ priv->mail_sync_id = 0;
}
/* Public API. */