duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Status of imap support?


From: Ian Barton
Subject: Re: [Duplicity-talk] Status of imap support?
Date: Wed, 21 Jan 2009 09:41:06 +0000
User-agent: Thunderbird 2.0.0.19 (X11/20090105)



I have no way to test this at all.  If someone has the means to test
against a generic IMAP server, please let us know how it works.


Just done a bit more playing. If I can work out what is causing my authentication error, I think it should work for any IMAP backend. Below is a session using the duplicity code for gmail and my own mail server:

address@hidden:~/devel$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib
>>> cl = imaplib.IMAP4_SSL
>>> self._conn = cl('imap.gmail.com', 993)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'self' is not defined
>>> conn = cl('imap.gmail.com', 993)
>>> conn.login("mygamiladdress", "mypassword")
('OK', ['address@hidden authenticated (Success)'])
>>> conn.logout
<bound method IMAP4_SSL.logout of <imaplib.IMAP4_SSL instance at 0x9936b0c>>
>>>
address@hidden:~/devel$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib
>>> cl = imaplib.IMAP4_SSL
>>> conn = cl('mail.wilkesley.net', 993)
>>> conn.login("me", "mypassword")
('OK', ['Logged in.'])
>>>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]