[Users] Mark as read/unread

Ricardo Mones ricardo at mones.org
Wed Aug 13 09:25:55 CEST 2014


On Tue, Aug 12, 2014 at 11:23:42PM +0200, Holger Berndt wrote:
> On Mo, 11.08.2014 11:45, Ricardo Mones wrote:
> 
> >  This can already be achieved with Python plugin. Place this into some
> >file.py in your ~/.claws-mail/python-scripts/main directory and refresh
> >your python scripts:
[…]
> That works, however, it's a bit clunky due to missing API. I just
> pushed a commit that adds read/write attributes for the "unread",
> "locked" and "marked" flags, and read-only attributes for the "new",
> "replied" and "forwarded" flags (deprecating the respective is_FLAG()
> methods). So with git master, you can now do
> 
> #------------------------------
> for msg in clawsmail.get_summaryview_selected_message_list():
>     msg.unread = not msg.unread
> #------------------------------
> 
> to toggle the "unread" attribute.

Great! Thanks Holger!

In my naivety I tried something similar at first, but since it didn't
work I went the summaryview selection + activating menu options route
to replicate what would be done by hand :)
-- 
  Ricardo Mones 
  ~
  Quantity derives from measurement, figures from quantities, 
  comparisons from figures, and victories from comparisons. 
                                                              Sun Tzu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20140813/3eb93d83/attachment.sig>


More information about the Users mailing list