[Users] Whole thread as read (was: Re: Last tag not removed when imap flags (tags) are empty)

Igor Mammedov imammedo at redhat.com
Thu Aug 16 18:02:34 CEST 2012

On Thu, 16 Aug 2012 17:02:26 +0200
Ricardo Mones <ricardo at mones.org> wrote:

> On Thu, Aug 16, 2012 at 04:47:17PM +0200, Igor Mammedov wrote:
> [...]
> > So far I like claws, but hotkeys mapping is not perfect and for example: to
> > mark whole thread read I have to first select all messages in it and then
> > mark them as read.
> > So I sorely miss feature to mark current thread as read in one keystroke.
> > 
> > It would be nice to have macro feature where one could create a sequence
> > of keystrokes or existing menu actions and bind them to a hotkey/menu item.
> > It would make claws much more customizable in terms of internal actions.
>   See python plugin, the examples/auto/startup script adds such option to
> make whole thread as read.
Thanks for pointing out. Bellow is a small addition to make hotkey for it.
it would be nice to get mapping from menurc, but I guess it is only for
builtin menu items.

--- startup.orig	2012-08-16 17:56:18.043253205 +0200
+++ startup	2012-08-16 17:55:55.428245262 +0200
@@ -54,11 +54,15 @@
     ui_manager = clawsmail.get_mainwindow_ui_manager()
     action = gtk.Action("ThreadRead", "Mark thread as read", None, None)
     action.connect("activate", thread_read_cb)
+    ag = gtk.AccelGroup()
+    action.set_accel_group(ag)
+    action.set_accel_path("<Actions>/Menu/Edit/ThreadRead")
     merge_id = ui_manager.new_merge_id()
     ui_manager.add_ui(merge_id, "/Menu/Edit", "ThreadRead", "ThreadRead", gtk.UI_MANAGER_MENUITEM, False)
+    action.accel_map_change_entry("<Actions>/Menu/Edit/ThreadRead", ord(r), gtk.gdk.CONTROL_MASK, True)
 def add_dbus_interface():
     # exports an interface to Claws Mail on the session D-Bus

More information about the Users mailing list