Re: Use entered email address in action

Milan Obuch <[email protected]> Sat, 12 Mar 2022 08:22:25 +0100
Newsgroups gmane.mail.sylpheed.claws.general
Message-ID <[email protected]>
On Sat, 12 Mar 2022 08:18:39 +0100
Christoph Klassen <[email protected]> wrote:

> Thank you very much for your answer, Milan!
> 
> On Sat, 12 Mar 2022 08:05:42 +0100
> Milan Obuch <[email protected]> wrote:
> 
> > I see three options here:
> > 
> > 1. adding some new parameter for actions, say %A - list of
> > addresses, you can then define new action. No idea how much work
> > that is.  
> That would mean to make changes to the source code of Claws Mail
> wouldn't it?
> 
> > 2. use Python plugin and write a script using get_header_list()
> > method of class ComposeWindow to extract required info and invoke
> > command(s) as required. Easy if Python plugin is available in your
> > distribution or you are able to build it yourself and write some
> > scripts in Python.  
> 
> I think I will look into this. Building Claws Mail and some plugins
> did work for me so I should be able to do this with the Python plugin.
> Furthermore, I have some experience in programming with Python. That's
> why I think that I will go this way
>

I forgot to add: https://www.claws-mail.org/plugin.php?plugin=python is
where some info on Python plugin could be found.

Regards,
Milan