[Users] Flagging non-default accounts during compose?

Holger Berndt berndth at gmx.de
Sat Jul 20 01:43:48 CEST 2013

Hello Pierre,

On Di, 16.07.2013 12:53, Pierre Fortin wrote:

>Is there a way to change the background of the compose window for all but
>the default account to some color (say yellow) as a warning? 

That's possible with the Python plugin and the following snippet in the
auto compose_any script:

if "<pf at pfortin.com>" not in clawsmail.compose_window.get_from():
        clawsmail.compose_window.text.modify_base(gtk.STATE_NORMAL, gtk.gdk.color_parse("#FFF0AA"))

It will only be applied when the compose window is opened. If you actively change
the account in the window later on, no change will happen.


More information about the Users mailing list