From bc5fc28e5b2e3602b186ee430d45c48c919ae9da Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 17 Mar 2004 09:23:49 +0000 Subject: See bug #55618. 2004-03-17 Not Zed * See bug #55618. * camel-disco-diary.c (camel_disco_diary_new): seek to the end of the file after we open it. c99 apparently says the file merely adds to the end of the file when you write, not that it is opened and positioned at the end of the file (linux's man pages are out of date). * camel-folder-summary.c (content_info_new): setup the content type as well, from the headers. * providers/imap/camel-imap-summary.c (camel_imap_summary_add_offline): copy size from the source info. svn path=/trunk/; revision=25096 --- camel/camel-disco-store.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camel/camel-disco-store.c') diff --git a/camel/camel-disco-store.c b/camel/camel-disco-store.c index 65cbc16194..02ac74cd3f 100644 --- a/camel/camel-disco-store.c +++ b/camel/camel-disco-store.c @@ -32,6 +32,8 @@ #include "camel-exception.h" #include "camel-session.h" +#define d(x) + #define CDS_CLASS(o) (CAMEL_DISCO_STORE_CLASS (CAMEL_OBJECT_GET_CLASS (o))) static CamelStoreClass *parent_class = NULL; @@ -154,6 +156,7 @@ disco_connect (CamelService *service, CamelException *ex) case CAMEL_DISCO_STORE_RESYNCING: if (!CDS_CLASS (service)->connect_online (service, ex)) return FALSE; + d(printf(" diary is %s\n", camel_disco_diary_empty(store->diary)?"empty":"not empty")); if (camel_disco_diary_empty (store->diary)) return TRUE; @@ -322,6 +325,8 @@ camel_disco_store_set_status (CamelDiscoStore *store, CamelDiscoStoreStatus status, CamelException *ex) { + d(printf("disco store set status: %s\n", status == CAMEL_DISCO_STORE_ONLINE?"online":"offline")); + CDS_CLASS (store)->set_status (store, status, ex); } -- cgit v1.2.3