aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index ded42cb6ff..f59f322a3d 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -647,7 +647,8 @@ auto_timeout(void *data)
{
struct _auto_data *info = data;
- mail_receive_uri(info->uri, info->keep);
+ if (camel_session_is_online(session))
+ mail_receive_uri(info->uri, info->keep);
return TRUE;
}
@@ -784,4 +785,3 @@ void mail_receive_uri(const char *uri, int keep)
}
gtk_object_unref((GtkObject *)fc);
}
-