aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-16 05:08:34 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-16 05:08:34 +0800
commitf5aadb31ca2ab34332e8d75787090e48a510d665 (patch)
tree5b8c5b32bf6613d7e2556f4c9cfae47552bafccf /camel/camel-folder.c
parentfb5218e3532444f4d4d9a4bb96186bdf6b0e6107 (diff)
downloadgsoc2013-evolution-f5aadb31ca2ab34332e8d75787090e48a510d665.tar.gz
gsoc2013-evolution-f5aadb31ca2ab34332e8d75787090e48a510d665.tar.zst
gsoc2013-evolution-f5aadb31ca2ab34332e8d75787090e48a510d665.zip
new method.
1999-08-15 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_copy_message_to): new method. svn path=/trunk/; revision=1118
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index d701345dad..ba8fd98ea2 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -54,6 +54,7 @@ static CamelMimeMessage *_get_message (CamelFolder *folder, gint number);
static gint _get_message_count (CamelFolder *folder);
static gint _append_message (CamelFolder *folder, CamelMimeMessage *message);
static const GList *_list_permanent_flags (CamelFolder *folder);
+static void _copy_message_to (CamelFolder *folder, CamelMimeMessage *message, CamelFolder *dest_folder);
static void _finalize (GtkObject *object);
@@ -88,6 +89,7 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class)
camel_folder_class->get_message_count = _get_message_count;
camel_folder_class->append_message = _append_message;
camel_folder_class->list_permanent_flags = _list_permanent_flags;
+ camel_folder_class->copy_message_to;
/* virtual method overload */
gtk_object_class->finalize = _finalize;
@@ -940,3 +942,19 @@ camel_folder_list_permanent_flags (CamelFolder *folder)
{
return CF_CLASS (folder)->list_permanent_flags (folder);
}
+
+
+
+
+static void
+_copy_message_to (CamelFolder *folder, CamelMimeMessage *message, CamelFolder *dest_folder)
+{
+ camel_folder_append_message (dest_folder, message);
+}
+
+
+void
+camel_folder_copy_message_to (CamelFolder *folder, CamelMimeMessage *message, CamelFolder *dest_folder)
+{
+ CF_CLASS (folder)->copy_message_to (folder, message, dest_folder);;
+}