aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index b48ea8fb4b..71d0431552 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -791,6 +791,23 @@ move_msg (GtkWidget *button, gpointer user_data)
camel_exception_free (rfd.ex);
}
+void
+mark_all_seen (BonoboUIHandler *uih, void *user_data, const char *path)
+{
+ FolderBrowser *fb = FOLDER_BROWSER(user_data);
+ MessageList *ml = fb->message_list;
+ GPtrArray *uids;
+ int i;
+
+ uids = camel_folder_get_uids (ml->folder);
+ for (i = 0; i < uids->len; i++)
+ {
+ camel_folder_set_message_flags (ml->folder, uids->pdata[i],
+ CAMEL_MESSAGE_SEEN,
+ CAMEL_MESSAGE_SEEN);
+ }
+}
+
static void
real_delete_msg (MessageList *ml, const char *uid, gpointer user_data)
{