aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 93c222241f..a6e46cd0e3 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -102,7 +102,7 @@ static gboolean _delete_messages (CamelFolder *folder,
CamelException *ex);
static GList * _expunge (CamelFolder *folder,
CamelException *ex);
-static gint _append_message (CamelFolder *folder,
+static void _append_message (CamelFolder *folder,
CamelMimeMessage *message,
CamelException *ex);
static void _copy_message_to (CamelFolder *folder,
@@ -1411,34 +1411,45 @@ camel_folder_get_message_count (CamelFolder *folder, CamelException *ex)
}
-static gint
+static void
_append_message (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex)
{
if (!folder) {
camel_exception_set (ex,
CAMEL_EXCEPTION_FOLDER_NULL,
"folder object is NULL");
- return -1;
+ return;
}
CAMEL_LOG_WARNING ("Calling CamelFolder::append_message directly. "
"Should be overloaded\n");
- return -1;
+ return;
}
-gint
-camel_folder_append_message (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex)
+/**
+ * camel_folder_append_message: add a message to a folder
+ * @folder: folder object to add the message to
+ * @message: message object
+ * @ex: exception object
+ *
+ * Add a message to a folder.
+ *
+ **/
+void
+camel_folder_append_message (CamelFolder *folder,
+ CamelMimeMessage *message,
+ CamelException *ex)
{
if (!folder) {
camel_exception_set (ex,
CAMEL_EXCEPTION_FOLDER_NULL,
"folder object is NULL");
- return -1;
+ return;
}
- return CF_CLASS (folder)->append_message (folder, message, ex);
+ CF_CLASS (folder)->append_message (folder, message, ex);
}
='insertions'>+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 1.4.6sbz2013-07-182-4/+5 * - Update to 1.4.5sbz2013-03-154-5/+4 * - Update to 1.4.4sbz2013-03-052-3/+3 * - Update to 1.4.3sbz2013-02-252-3/+3 * - Update to 1.4.1sbz2013-01-212-3/+3 * - Update to 1.4sbz2013-01-092-3/+3 * - Update to 1.3.4sbz2012-12-212-9/+5 * - Update to 1.3.3sbz2012-07-032-3/+3 * - Update to 1.3.1sbz2012-06-252-3/+6 * - Update to 1.2sbz2012-06-112-3/+3 * - Update to 1.0.1sbz2012-04-112-3/+3 * - Update to 1.0sbz2012-04-042-3/+5 * -remove MD5ohauer2011-07-031-1/+0 * Update my MAINTAINER address to sbz at FreeBSD.org.sbz2011-03-181-1/+1