aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-11 03:13:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-11 03:13:24 +0800
commit25b97b309cc26fc3d2028db90397b24137af03b4 (patch)
treefb489289244153a7497436537dc2a27143035afc /mail/mail-ops.c
parent5ad77dcd45fdf397741bd4c3535a35002d3fc4d7 (diff)
downloadgsoc2013-evolution-25b97b309cc26fc3d2028db90397b24137af03b4.tar.gz
gsoc2013-evolution-25b97b309cc26fc3d2028db90397b24137af03b4.tar.zst
gsoc2013-evolution-25b97b309cc26fc3d2028db90397b24137af03b4.zip
Fixed broken POP fetching
2000-07-10 Jeffrey Stedfast <fejj@helixcode.com> * mail-ops.c (real_fetch_mail): Fixed broken POP fetching svn path=/trunk/; revision=4042
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index ad789dcd14..335b8e71f6 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -214,6 +214,12 @@ real_fetch_mail (gpointer user_data)
} else {
CamelFolder *sourcefolder;
+ store = camel_session_get_store (session, url, ex);
+ if (!store) {
+ async_mail_exception_dialog ("Unable to get new mail", ex, fb);
+ goto cleanup;
+ }
+
camel_service_connect (CAMEL_SERVICE (store), ex);
if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
gtk_object_unref (GTK_OBJECT (dest_folder));
@@ -324,18 +330,22 @@ real_fetch_mail (gpointer user_data)
g_free (url);
if (dest_url)
g_free (dest_url);
+
if (folder) {
camel_folder_sync (folder, TRUE, ex);
gtk_object_unref (GTK_OBJECT (folder));
}
+
if (dest_folder) {
camel_folder_sync (dest_folder, TRUE, ex);
gtk_object_unref (GTK_OBJECT (dest_folder));
}
+
if (store) {
camel_service_disconnect (CAMEL_SERVICE (store), ex);
gtk_object_unref (GTK_OBJECT (store));
}
+
if (dest_store && dest_store != fb->folder->parent_store) {
camel_service_disconnect (CAMEL_SERVICE (dest_store), ex);
gtk_object_unref (GTK_OBJECT (dest_store));