aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-01 04:04:46 +0800
committerDan Winship <danw@src.gnome.org>2000-07-01 04:04:46 +0800
commit39361c665a62e68991e51a9c13c2b2074a130ed4 (patch)
tree4ee1bc049ec3bf8608f32159b209ac880589b02d /camel/camel-folder.h
parent83387a7fddc83a28a04c7a649762474ac591b961 (diff)
downloadgsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar.gz
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar.bz2
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar.lz
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar.xz
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.tar.zst
gsoc2013-evolution-39361c665a62e68991e51a9c13c2b2074a130ed4.zip
New function, to move a message from one folder to another. The default
* camel-folder.c (camel_folder_move_message_to): New function, to move a message from one folder to another. The default implementation just uses append_message and delete_message, but providers can implement more efficient versions for use when both folders are on the same store. svn path=/trunk/; revision=3832
Diffstat (limited to 'camel/camel-folder.h')
-rw-r--r--camel/camel-folder.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index 9e9acc6afd..d0a7ceea02 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -155,9 +155,17 @@ typedef struct {
gboolean (*has_search_capability) (CamelFolder *folder);
- GList * (*search_by_expression) (CamelFolder *folder, const char *expression, CamelException *ex);
+ GList * (*search_by_expression) (CamelFolder *folder,
+ const char *expression,
+ CamelException *ex);
- const CamelMessageInfo * (*summary_get_by_uid) (CamelFolder *, const char *uid);
+ const CamelMessageInfo * (*summary_get_by_uid) (CamelFolder *,
+ const char *uid);
+
+ void (*move_message_to) (CamelFolder *source,
+ const char *uid,
+ CamelFolder *destination,
+ CamelException *ex);
} CamelFolderClass;
@@ -271,6 +279,11 @@ GList * camel_folder_search_by_expression (CamelFolder *folder, const char
const CamelMessageInfo *camel_folder_summary_get_by_uid (CamelFolder *summary,
const char *uid);
+void camel_folder_move_message_to (CamelFolder *source,
+ const char *uid,
+ CamelFolder *dest,
+ CamelException *ex);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */