diff options
author | nobody <nobody@localhost> | 2003-11-10 23:57:46 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2003-11-10 23:57:46 +0800 |
commit | 4dbf72794e68857f4807a577d42cb36ca5921e3e (patch) | |
tree | fafaa10f939a97f6507dfb89af9b02347763c822 /camel/camel-folder.c | |
parent | e2919e15d1880c1ef76e5a2ffdd36f428dc05946 (diff) | |
download | gsoc2013-evolution-spam-filtering-mergepoint.tar gsoc2013-evolution-spam-filtering-mergepoint.tar.gz gsoc2013-evolution-spam-filtering-mergepoint.tar.bz2 gsoc2013-evolution-spam-filtering-mergepoint.tar.lz gsoc2013-evolution-spam-filtering-mergepoint.tar.xz gsoc2013-evolution-spam-filtering-mergepoint.tar.zst gsoc2013-evolution-spam-filtering-mergepoint.zip |
This commit was manufactured by cvs2svn to create tagspam-filtering-mergepoint
'spam-filtering-mergepoint'.
svn path=/tags/spam-filtering-mergepoint/; revision=23245
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index f682ee25ca..aae2af0a64 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -549,7 +549,7 @@ get_unread_message_count(CamelFolder *folder) CamelMessageInfo *info = camel_folder_summary_index(folder->summary, i); if (info) { - if (!(info->flags & CAMEL_MESSAGE_SEEN)) + if (!(info->flags & CAMEL_MESSAGE_SEEN) && (!(info->flags & CAMEL_MESSAGE_JUNK) || (folder->folder_flags & CAMEL_FOLDER_IS_JUNK))) unread++; camel_folder_summary_info_free(folder->summary, info); } @@ -702,7 +702,7 @@ set_message_flags(CamelFolder *folder, const char *uid, guint32 flags, guint32 s camel_folder_summary_touch(folder->summary); camel_folder_summary_info_free(folder->summary, info); - camel_object_trigger_event (folder, "message_changed", (char *) uid); + camel_object_trigger_event(CAMEL_OBJECT(folder), "message_changed", (char *) uid); } /** @@ -779,7 +779,7 @@ set_message_user_flag(CamelFolder *folder, const char *uid, const char *name, gb if (camel_flag_set(&info->user_flags, name, value)) { info->flags |= CAMEL_MESSAGE_FOLDER_FLAGGED; camel_folder_summary_touch(folder->summary); - camel_object_trigger_event (folder, "message_changed", (char *) uid); + camel_object_trigger_event(CAMEL_OBJECT(folder), "message_changed", (char *) uid); } camel_folder_summary_info_free(folder->summary, info); } @@ -859,7 +859,7 @@ set_message_user_tag(CamelFolder *folder, const char *uid, const char *name, con if (camel_tag_set(&info->user_tags, name, value)) { info->flags |= CAMEL_MESSAGE_FOLDER_FLAGGED; camel_folder_summary_touch(folder->summary); - camel_object_trigger_event (folder, "message_changed", (char *) uid); + camel_object_trigger_event(CAMEL_OBJECT(folder), "message_changed", (char *) uid); } camel_folder_summary_info_free(folder->summary, info); } @@ -1289,7 +1289,7 @@ transfer_message_to (CamelFolder *source, const char *uid, CamelFolder *dest, } camel_folder_append_message (dest, msg, info, transferred_uid, ex); - camel_object_unref (msg); + camel_object_unref (CAMEL_OBJECT (msg)); if (delete_original && !camel_exception_is_set (ex)) camel_folder_set_message_flags (source, uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_SEEN, ~0); @@ -1415,7 +1415,7 @@ camel_folder_delete (CamelFolder *folder) CAMEL_FOLDER_UNLOCK (folder, lock); - camel_object_trigger_event (folder, "deleted", NULL); + camel_object_trigger_event (CAMEL_OBJECT (folder), "deleted", NULL); } static void @@ -1451,7 +1451,7 @@ camel_folder_rename(CamelFolder *folder, const char *new) CF_CLASS (folder)->rename(folder, new); - camel_object_trigger_event (folder, "renamed", old); + camel_object_trigger_event (CAMEL_OBJECT (folder), "renamed", old); g_free(old); } @@ -1507,7 +1507,7 @@ thaw (CamelFolder * folder) CAMEL_FOLDER_UNLOCK(folder, change_lock); if (info) { - camel_object_trigger_event (folder, "folder_changed", info); + camel_object_trigger_event(CAMEL_OBJECT(folder), "folder_changed", info); camel_folder_change_info_free(info); } } |