diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-12-18 22:59:36 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-12-18 22:59:36 +0800 |
commit | 83f5a95caaae7b6b5dc49ccc2e4f1c0279d1c709 (patch) | |
tree | 32ed06a8c0f4874b74f712d406a798785d426d9e /camel/camel-folder.c | |
parent | 3027e9e45d86d8deb143447c95e207749dc48824 (diff) | |
download | gsoc2013-evolution-83f5a95caaae7b6b5dc49ccc2e4f1c0279d1c709.tar.gz gsoc2013-evolution-83f5a95caaae7b6b5dc49ccc2e4f1c0279d1c709.tar.zst gsoc2013-evolution-83f5a95caaae7b6b5dc49ccc2e4f1c0279d1c709.zip |
updated to take the change on append into account.
1999-12-18 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-folder-pt-proxy.c (_append_message):
updated to take the change on append into account.
* camel/camel-folder.h:
updated class def concerning append.
* camel/camel-folder.c
(camel_folder_append_message): documented.
(camel_folder_append_message): don't return the
message number. Use specific methods instead.
(_append_message): idem.
svn path=/trunk/; revision=1502
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 27 |
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); } |