aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2000-07-29 12:20:38 +0800
committerCody Russell <bratsche@src.gnome.org>2000-07-29 12:20:38 +0800
commitf34353458d545d679e9daebb22ade4f1f02c8e00 (patch)
tree9e2cd77f1d69f07e24167acdd158ab77161e76ac /mail/mail-ops.c
parentda2fff47da91473e5299e311b7ec698463823f1f (diff)
downloadgsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar.gz
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar.bz2
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar.lz
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar.xz
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.tar.zst
gsoc2013-evolution-f34353458d545d679e9daebb22ade4f1f02c8e00.zip
Added mark_all_seen(), to mark every message in the list with
2000-07-28 Cody Russell <bratsche@gnome.org> * mail-ops.c, mail.h: Added mark_all_seen(), to mark every message in the list with CAMEL_MESSAGE_SEEN. * folder-browser-factory.c: Added "Actions/Mark all seen". svn path=/trunk/; revision=4412
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)
{