From 690509bf826bc02af09cbec064f1f34c48dd9b0c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 10 Aug 2000 16:35:28 +0000 Subject: A better way to compress leading whitespace. The code is probably invalid 2000-08-11 Not Zed * camel-mime-parser.c (folder_scan_header): A better way to compress leading whitespace. The code is probably invalid anyway, I dont think it will work across buffer boundaries. * providers/mbox/camel-mbox-folder.c (mbox_append_message): And write out proper format From lines here too. * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_build_from): New function to build a more compatible mbox "From " line. (camel_mbox_summary_sync): Write From lines in the proper format. 2000-08-10 Not Zed * providers/mh/camel-mh-store.c (get_folder): Remove warnin g. * providers/mbox/camel-mbox-store.c (xrename): Kill some warnings with constification. * providers/imap/camel-imap-folder.c (imap_append_message): Fixed for append api change. Eek this routine seriously wastes memory. * providers/mh/camel-mh-folder.c (mh_search_free): Impelemnt. (mh_append_message): Fix for api change, and include user flags and tags in new message. * providers/vee/camel-vee-folder.c (vee_search_by_expression): Fix for search api change. * camel-folder.c (camel_folder_search_free): New function for freeing search results. (search_free): Changed my mind, implement a default that actually does something. Free as to the old interface. (camel_folder_append_message): Changed to accept a camelmessageinfo rather than flags, which just doesn't have enough info in it. (copy_message_to): Change for append_message api change. (move_message_to): Likewise. * providers/mbox/camel-mbox-folder.c (mbox_search_free): Implement. (mbox_append_message): Fix for api change, and also copy user flags/tags across to new summary. * camel-folder-search.c (search_user_tag): A search expression that returns the current use flag by name. (camel_folder_search_free_result): New function to free the result of a search. * camel-folder-summary.c: Bump summary version. (message_info_new): (message_info_load): (message_info_save): (camel_message_info_dup_to): (camel_message_info_free): Added support for arbitrary tag/value pairs (CamelTag's). (camel_tag_get): (camel_tag_set): (camel_tag_list_size): (camel_tag_list_free): Operations for working with CamelTags. svn path=/trunk/; revision=4683 --- camel/camel-folder.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'camel/camel-folder.h') diff --git a/camel/camel-folder.h b/camel/camel-folder.h index bdaebfd242..949dbae52a 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -107,7 +107,7 @@ typedef struct { void (*append_message) (CamelFolder *folder, CamelMimeMessage *message, - guint32 flags, + const CamelMessageInfo *info, CamelException *ex); guint32 (*get_permanent_flags) (CamelFolder *folder); @@ -151,8 +151,9 @@ typedef struct { const char *expression, CamelException *ex); - const CamelMessageInfo * (*get_message_info) (CamelFolder *, - const char *uid); + void (*search_free) (CamelFolder *folder, GPtrArray *result); + + const CamelMessageInfo * (*get_message_info) (CamelFolder *, const char *uid); void (*copy_message_to) (CamelFolder *source, const char *uid, @@ -226,7 +227,7 @@ void camel_folder_set_message_user_flag (CamelFolder *folder, /* message manipulation */ void camel_folder_append_message (CamelFolder *folder, CamelMimeMessage *message, - guint32 flags, + const CamelMessageInfo *info, CamelException *ex); @@ -263,6 +264,7 @@ gboolean camel_folder_has_search_capability (CamelFolder *folder); GPtrArray * camel_folder_search_by_expression (CamelFolder *folder, const char *expression, CamelException *ex); +void camel_folder_search_free (CamelFolder *folder, GPtrArray *); /* summary info */ const CamelMessageInfo *camel_folder_get_message_info (CamelFolder *summary, -- cgit v1.2.3