[Users] Flagging non-default accounts during compose?
pf at pfortin.com
Sat Jul 27 23:02:38 CEST 2013
On Sat, 27 Jul 2013 18:04:45 +0200 Holger Berndt wrote:
>On Fr, 19.07.2013 21:58, Pierre Fortin wrote:
>>When replying in a folder (CM list in this case) which has a non-default
>>account address, the background is yellow... Is there a way to get at
>>something like folder.Properties.Compose.DefaultTo...?
>I added some more functionality to the Python plugin in Git:
>There is now an Account type. The clawsmail module has new functions
>for querying accounts, as does the compose_window object.
>There is now a FolderProperties type. Folders have a "properties"
>member to query the corresponding object.
>So now, you should be able to do something like this in compose_any:
># not global default account and not default account of current folder
>if not clawsmail.compose_window.account.is_default and
>Does that address your issues?
Within below constraints, perfectly!! Thank you!!!!! :) :)
Sure beats trying to parse a lengthy folderitemrc.
>(There is now also a "forwardinfo" member analogous to the "replyinfo",
>but it maps directly to Claws Mail's internals, and only catches
>forwards, but not forward-as-attachment or redirect, so it's
>helpfullness is currently limited.)
Actually, it also catches replies/forwards on messages which arrived on a
non-default account in shared inbox -- raised my awareness of something CM
just does automatically and correctly... :)
>All those types are very incomplete, and as usual with the Python
>plugin, I don't aim for completeness but extend on an as-needed
>Users mailing list
>Users at lists.claws-mail.org
More information about the Users