aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-08 11:43:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-08 11:43:33 +0800
commitc5d148704d28a95293daa5ff3f1dadf7012d5477 (patch)
tree40b6fc4cc3f94ef3d33b550452e694987619b040 /camel
parent06cd1f4436735c333fb3c7801711b480a0b51a3e (diff)
downloadgsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar.gz
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar.bz2
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar.lz
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar.xz
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.tar.zst
gsoc2013-evolution-c5d148704d28a95293daa5ff3f1dadf7012d5477.zip
Implement. (get_trash): Implement. (camel_pop3_store_class_init): Override
2001-03-07 Jeffrey Stedfast <fejj@ximian.com> * providers/pop3/camel-pop3-store.c (init_trash): Implement. (get_trash): Implement. (camel_pop3_store_class_init): Override the default init_trash and get_trash virtual functions. Hopefully this should fix the problem of pop3 sotre's not disconnecting after the send&recv code finishes downloading mail. Wonder if I should override the default implementation for the mbox, mh, and maildir too? svn path=/trunk/; revision=8592
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog12
-rw-r--r--camel/providers/pop3/camel-pop3-store.c19
2 files changed, 31 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index dda57d86ad..eb82e302af 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,15 @@
+2001-03-07 Jeffrey Stedfast <fejj@ximian.com>
+
+ * providers/pop3/camel-pop3-store.c (init_trash): Implement.
+ (get_trash): Implement.
+ (camel_pop3_store_class_init): Override the default init_trash and
+ get_trash virtual functions. Hopefully this should fix the problem
+ of pop3 sotre's not disconnecting after the send&recv code
+ finishes downloading mail.
+
+ Wonder if I should override the default implementation for the
+ mbox, mh, and maildir too?
+
2001-03-07 Dan Winship <danw@ximian.com>
* camel-remote-store.c (camel_remote_store_connected): Return the
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index fac9cae931..5fa80b1d87 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -77,6 +77,9 @@ static GList *query_auth_types (CamelService *service, gboolean connect, CamelEx
static CamelFolder *get_folder (CamelStore *store, const char *folder_name,
guint32 flags, CamelException *ex);
+static void init_trash (CamelStore *store);
+static CamelFolder *get_trash (CamelStore *store, CamelException *ex);
+
static int pop3_get_response (CamelPop3Store *store, char **ret, CamelException *ex);
@@ -97,6 +100,8 @@ camel_pop3_store_class_init (CamelPop3StoreClass *camel_pop3_store_class)
camel_service_class->disconnect = pop3_disconnect;
camel_store_class->get_folder = get_folder;
+ camel_store_class->init_trash = init_trash;
+ camel_store_class->get_trash = get_trash;
}
@@ -533,6 +538,20 @@ get_folder (CamelStore *store, const char *folder_name,
return camel_pop3_folder_new (store, ex);
}
+static void
+init_trash (CamelStore *store)
+{
+ /* no-op */
+ ;
+}
+
+static CamelFolder *
+get_trash (CamelStore *store, CamelException *ex)
+{
+ /* no-op */
+ return NULL;
+}
+
/**
* camel_pop3_command: Send a command to a POP3 server.