From e19514f1319263d57cb9ebf900513518b011c3b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 12 Mar 2002 20:36:08 +0000 Subject: Now takes a url argument. 2002-03-12 Jeffrey Stedfast * camel-digest-store.c (camel_digest_store_new): Now takes a url argument. * camel-digest-folder.c (digest_add_multipart): Fixed some memory corruption and also modified to use CAMEL_IS_MIME_MESSAGE() rather than comparing content-type strings. (digest_get_message): Fixed a logic blooper. * camel-folder-summary.c (camel_message_info_new_from_header): Set the date fields of the CamelMessageInfo as well. This may even fix some filter-related bugs where the user was trying to compare dates. svn path=/trunk/; revision=16126 --- camel/camel-digest-store.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'camel/camel-digest-store.c') diff --git a/camel/camel-digest-store.c b/camel/camel-digest-store.c index b082ac0962..3e2833442d 100644 --- a/camel/camel-digest-store.c +++ b/camel/camel-digest-store.c @@ -105,15 +105,24 @@ camel_digest_store_finalise (CamelObject *obj) /** * camel_digest_store_new: + * @url: * * Create a new CamelDigestStore object. * * Return value: A new CamelDigestStore widget. **/ CamelStore * -camel_digest_store_new (void) +camel_digest_store_new (const char *url) { - CamelStore *store = CAMEL_STORE (camel_object_new (camel_digest_store_get_type ())); + CamelStore *store; + CamelURL *uri; + + uri = camel_url_new (url, NULL); + if (!uri) + return NULL; + + store = CAMEL_STORE (camel_object_new (camel_digest_store_get_type ())); + CAMEL_SERVICE (store)->url = uri; return store; } -- cgit