[Users] python plugin

Holger Berndt berndth at gmx.de
Tue Nov 19 20:02:37 CET 2019


Hallo Peter,

On Di, 19.11.2019 16:55, Peter Hanlon wrote:

>But I cannot see how to get hold of the trash folder object
>to use the clawsmail move messages function.

You should be able to get the folder object by creating it like so:

trash_folder = clawsmail.Folder("#mh/mail/trash")

(or whatever the correct identifier in your case is)

>Another way might be to
>'select' the message and call in the Message/Trash action, but I can't
>see how to 'select' programmatically either.

The interface to select messages is

clawsmail.summaryview_select_messages(message_list)

Holger


More information about the Users mailing list