aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-12 12:13:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-12 12:13:21 +0800
commitbc22c33ee2e0648493d7dc5208f8fb12c466b716 (patch)
treeb003e7c64750db6b5c51ff695b788b3d84511401 /camel/providers/imap/camel-imap-folder.c
parent08b0dbea5a3b880d0d991b6c3618fa750d8c2f80 (diff)
downloadgsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar.gz
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar.bz2
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar.lz
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar.xz
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.tar.zst
gsoc2013-evolution-bc22c33ee2e0648493d7dc5208f8fb12c466b716.zip
Updated to emit the message_changed signal. (imap_delete_message): Updated
2000-07-12 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_set_message_flags): Updated to emit the message_changed signal. (imap_delete_message): Updated to use imap_set_message_flags (). (imap_move_message_to): Updated to use imap_set_message_flags () and to emit the folder_changed signal on the destination folder. (imap_copy_message_to): Updated to emit the folder_changed signal on the destination folder. (imap_append_message): Updated to emit the folder_changed signal on the destination folder. svn path=/trunk/; revision=4105
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 5dd7926503..a102f28b19 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -350,6 +350,8 @@ imap_expunge (CamelFolder *folder, CamelException *ex)
return;
}
+ gtk_signal_emit_by_name (GTK_OBJECT (folder), "folder_changed");
+
g_free (result);
}
@@ -538,6 +540,8 @@ imap_append_message (CamelFolder *folder, CamelMimeMessage *message, guint32 fla
g_free (result);
g_free (folder_path);
+
+ gtk_signal_emit_by_name (GTK_OBJECT (folder), "folder_changed");
}
static void
@@ -570,6 +574,8 @@ imap_copy_message_to (CamelFolder *source, const char *uid, CamelFolder *destina
g_free (result);
g_free (folder_path);
+
+ gtk_signal_emit_by_name (GTK_OBJECT (destination), "folder_changed");
}
/* FIXME: Duplication of code! */
@@ -614,7 +620,9 @@ imap_move_message_to (CamelFolder *source, const char *uid, CamelFolder *destina
return;
}
- info->flags |= CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_FOLDER_FLAGGED;
+ imap_set_message_flags (source, uid, CAMEL_MESSAGE_DELETED, ~(info->flags), ex);
+
+ gtk_signal_emit_by_name (GTK_OBJECT (destination), "folder_changed");
}
static GPtrArray *
@@ -783,7 +791,7 @@ imap_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex)
return;
}
- info->flags |= CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_FOLDER_FLAGGED;
+ imap_set_message_flags (folder, uid, CAMEL_MESSAGE_DELETED, ~(info->flags), ex);
}
static CamelMimeMessage *
@@ -1455,6 +1463,8 @@ imap_set_message_flags (CamelFolder *folder, const char *uid, guint32 flags, gui
}
info->flags = (info->flags & ~flags) | (set & flags) | CAMEL_MESSAGE_FOLDER_FLAGGED;
+
+ gtk_signal_emit_by_name (GTK_OBJECT (folder), "message_changed", uid);
}
static gboolean
@@ -1466,5 +1476,5 @@ imap_get_message_user_flag (CamelFolder *folder, const char *uid, const char *na
static void
imap_set_message_user_flag (CamelFolder *folder, const char *uid, const char *name, gboolean value, CamelException *ex)
{
- return;
+ gtk_signal_emit_by_name (GTK_OBJECT (folder), "message_changed", uid);
}