Wednesday, August 15, 2012

Easymail

I needed simple way for sending emails from python (debug info from server app), so I created VERY simple library to wrap smtplib into something more useful. Here is a link:
https://github.com/volftomas/easymail

Friday, August 3, 2012

Claws mail python plugin

I am using Thunderbird right now, but as I got new PC I will be installing Archlinux on it, so I ask myself if it's time to move to something lighter and more extendable by plugins.. as I like Python, using python as plugin language would be great.

I picked Claws-mail which is a great, capable and lightweight email client supporting both GPG encryption/signing and Python plugins..

But there is virtually no documentation on writing those plugins :'( So I just tried it, open console from claws-mail menu and tried it as described in demo.

But I got
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'clawsmail' is not defined
When I tried accessing clawsmail modul. After a while, I found that all you need to do is first import clawsmail modul.
import clawsmail
Simple ^_^

I will probably make some kind of tutorial for this (python plugins in claws mail) so no one else have to do the "digging".