Plugin E-mail and SSL

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Plugin E-mail and SSL

Post by Pako » Mon Nov 24, 2008 9:14 pm

I just work on plugin E-mail.
I try it, but when I use SSL, I get this error message: AttributeError: 'module' object has no attribute 'ssl'.
Outside EventGhost works it well. This means that in EventGhost Python missing something - probably OpenSSL-dev.
Is it possible to fill this gap?
Pako

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Plugin E-mail and SSL

Post by Bitmonster » Mon Nov 24, 2008 9:23 pm

ssl — SSL wrapper for socket objects
New in version 2.6.
We are currently at Python 2.5. wxPython 2.8.9.1 for Py26 has a big bug (if used under a 64bit OS). That's why I can't switch to Py26 for the releases. We have to wait till a new version of wxPython comes out.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Plugin E-mail and SSL

Post by Pako » Mon Nov 24, 2008 9:40 pm

import sys
print sys.version

EventGhost:

Code: Select all

2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Python outside EventGhost:

Code: Select all

2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
???
Pako

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Plugin E-mail and SSL

Post by Pako » Tue Nov 25, 2008 4:29 am

Sorry.
I have not put a snippet of code that causes the error:

Code: Select all

                SERVER = account[5]
                PORT = account[6]
                USER = account[7]
                PASSWORD = account[8]
                USE_SSL = account[10] == 3
                if account[1] == 0: #POP
                    if USE_SSL:
                        mailbox = poplib.POP3_SSL(SERVER, PORT)
                    else:
                        mailbox = poplib.POP3(SERVER, PORT)
Pako

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Plugin E-mail and SSL

Post by Bitmonster » Tue Nov 25, 2008 9:17 am

Code: Select all

import poplib
mailbox = poplib.POP3_SSL("pop.gmx.com")
print mailbox.getwelcome() 
No problem here with 0.3.6.1486.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Plugin E-mail and SSL

Post by Pako » Tue Nov 25, 2008 10:56 am

Very sorry and I apologize for your lost time. :oops:
I never have anticipated that my problem was removed just somewhere between build 1483 and 1486.
I installed 1486 and actually now it works!
I was just surprised that the installation program delete my folders OSM and OOo_Impress. This is probably because there are on SVN with a symptom "noinclude". My new folder E-mail was not deleted.
Pako

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Plugin E-mail and SSL

Post by Bitmonster » Tue Nov 25, 2008 11:29 am

Pako wrote:I was just surprised that the installation program delete my folders OSM and OOo_Impress. This is probably because there are on SVN with a symptom "noinclude". My new folder E-mail was not deleted.
Pako
Yes, you are right. The installer deletes them. Will have a look at it.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Plugin E-mail and SSL

Post by Pako » Tue Nov 25, 2008 12:02 pm

Bitmonster wrote:Will have a look at it.
Thanks !
Pako

Post Reply