[Users] how to reply and run an action

Ricardo Mones ricardo at mones.org
Mon Dec 10 14:10:12 CET 2012


On Mon, Dec 10, 2012 at 08:59:07AM -0200, Flavio Leitner wrote:
> On Sat, 8 Dec 2012 18:21:21 +0100
> Holger Berndt <berndth at gmx.de> wrote:
> [...]
> > As Mones said, the Python plugin is also an alternative. An
> > auto/compose_any script will be called everytime a compose window is
> > opened (be it composing a new message, replying, forwarding).
> > 
> > You you don't want this to happen automatically, but to have a
> > separate menu item that opens a reply window and does some work in it,
> > that's also possible with the Python plugin. You could assign a
> > keyboard shortcut to it, or dump it into the toolbar.
> > 
> > The normal way would be to do your modifications in Python directly
> > in this case. It would also be possible to trigger menu items in the
> > compose window - however, a quick look seems to indicate that for some
> > strange reason Actions are not directly accessible. That isn't really a
> > blocker, though, as it should be possible to mimic script invokation
> > in Python directly.
> 
> Looks like the python plugin is the way to go. Is there any
> example out there that you recommend for me to take a look?
> 
> I know python, but I don't know the plugin interface.

  Check 'Show Python Console...' on Tools menu, then on console prompt
type: help(clawsmail)

  The examples directory in the source code can be helpful too.

  regards,
-- 
  Ricardo Mones 
  ~
  bash: ./signature: No such file or directory              /bin/bash

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


More information about the Users mailing list