You are not logged in.

#1 2013-06-11 17:08:55

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,378

[Solved] NameError: name 'clawsmail' is not defined

Hello,
I stumble on this problem and I logged a bug report to clawsmail.org.
However I could find the solution myself smile

import clawsmail
# here start your python script and use the clawsmail functions

It was something that one couldn't obviously think of.
At date my clawsmail version is 3.9.2


do it good first, it will be faster than do it twice the saint wink

Offline

#2 2013-06-14 10:19:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,721

Re: [Solved] NameError: name 'clawsmail' is not defined

/me is totally confused.
What was the problem and just how did you solve it?


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2013-06-14 11:47:44

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,378

Re: [Solved] NameError: name 'clawsmail' is not defined

I should correct the title a bit, I filed a bu report on claws-mail site.
The issue is that no python scripting will run properly. It's supposed that the module will load automatically, but when I tried the simple command like help(clawsmail), it will trow a traceback because of NameError, clawsmail is not declared.
I was on my way to implement some python script to apply simple regex on incoming mails, but there I stopped.
It seems that statement fix the problem, but when I tried a bit further, the clawsmail died and disappeared.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB