diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-05-31 06:35:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-31 06:35:40 +0800 |
commit | 631dda8ae0829b1fb7b503348de541e3fe2027c5 (patch) | |
tree | b809428b7c6e01cf6bce0513b7ab20f436b0352a /camel/providers | |
parent | a9ddc24118d91139784cb0ce99789a739fdc5978 (diff) | |
download | gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar.gz gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar.bz2 gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar.lz gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar.xz gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.tar.zst gsoc2013-evolution-631dda8ae0829b1fb7b503348de541e3fe2027c5.zip |
Init filter_from to NULL, for exception case. (mbox_get_message_by_uid):
2000-05-30 Not Zed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-folder.c (mbox_append_message): Init
filter_from to NULL, for exception case.
(mbox_get_message_by_uid): Cast off_t to long int for diagnostics.
* camel-url.c (camel_url_hash): Hash funciton for using camel
url's as hash keys.
(camel_url_equal): equal function for same.
* camel-session.c (camel_session_finalise): Free cached services.
(camel_session_init): Init service cache.
(service_cache_remove): destroy callback to remove a service from
the cache.
* camel-store.c (get_folder_internal): Remove the extra ref of the
folder. That seems the right behaviour ...?
(camel_store_get_type): Doh, actually call store init, so the
cache works.
(cache_folder): strdup the folder name! no wonder it never found
it again.
svn path=/trunk/; revision=3298
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 6 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index de7a7764ba..c663824301 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -593,7 +593,7 @@ mbox_append_message (CamelFolder *folder, CamelMimeMessage *message, CamelExcept { CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER (folder); CamelStream *output_stream = NULL, *filter_stream = NULL; - CamelMimeFilter *filter_from; + CamelMimeFilter *filter_from = NULL; struct stat st; off_t seek = -1; char *xev; @@ -779,8 +779,8 @@ mbox_get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException * if (camel_mime_parser_tell_start_from(parser) != info->frompos) { g_warning("Summary doesn't match the folder contents! eek!\n" - " expecting offset %d got %d", info->frompos, - camel_mime_parser_tell_start_from(parser)); + " expecting offset %ld got %ld", (long int)info->frompos, + (long int)camel_mime_parser_tell_start_from(parser)); errno = EINVAL; goto fail; } diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index a5cd61b596..e78bede490 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -683,7 +683,7 @@ camel_mbox_summary_expunge(CamelMboxSummary *mbs) goto error; } /* update from pos here? */ - /*info->frompos += offset;*/ + info->frompos += offset; } else { d(printf("Nothing to do for this message\n")); } |