Complete.Org: Mailing Lists: Archives: offlineimap: March 2003:
Re: offlineimap and ipv6
Home

Re: offlineimap and ipv6

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: offlineimap and ipv6
From: Adriaan Peeters <apeeters@xxxxxxxxxxx>
Date: 25 Mar 2003 22:37:12 +0100

On Tue, 2003-03-25 at 21:22, John Goerzen wrote:
> On Tue, Mar 25, 2003 at 09:11:33PM +0100, Adriaan Peeters wrote:
> > Is it possible to add ipv6 support ? I don't have enough python
> > experience but it seems the latest version of python2.2 supports ipv6.
> 
> If that is the case, it should Just Work(TM).  Please let us know if it does
> for you.  I have no ability to test it here.

I have installed python 2.2.2 and the documentation (
http://www.python.org/doc/lib/module-socket.html ) states that ipv6
should be supported.  But I get an error when trying to connect to an
ipv6 only host.
The host ipv6.host.com has only a ipv6 adress assigned. So only AAAA dns
entry, no A entry.
Trace and configfile below.

The (debian) versions I have installed:
offlineimap    3.99.10
python2.2      2.2.2-6


katrien@addie:~$ offlineimap 
Thread 'Account sync Test' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.2/site-packages/offlineimap/threadutil.py",
line 150, in run
    Thread.run(self)
  File "/usr/lib/python2.2/threading.py", line 402, in run
    apply(self.__target, self.__args, self.__kwargs)
  File "/usr/lib/python2.2/site-packages/offlineimap/accounts.py", line
86, in syncrunner
    self.sync()
  File "/usr/lib/python2.2/site-packages/offlineimap/accounts.py", line
115, in sync
    remoterepos.syncfoldersto(localrepos)
  File
"/usr/lib/python2.2/site-packages/offlineimap/repository/Base.py", line
39, in syncfoldersto
    srcfolders = src.getfolders()
  File
"/usr/lib/python2.2/site-packages/offlineimap/repository/IMAP.py", line
56, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/lib/python2.2/site-packages/offlineimap/imapserver.py",
line 165, in acquireconnection
    imapobj = UsefulIMAP4(self.hostname, self.port)
  File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line
153, in __init__
    self.open(host, port)
  File "/usr/lib/python2.2/site-packages/offlineimap/imaplib.py", line
221, in open
    self.sock.connect((host, port))
gaierror: (-2, 'Name or service not known')


Last 1 debug messages logged for Account sync Test prior to exception:
maildir: MaildirRepository initialized, sep is '.'
katrien@addie:~$ 


My configfile:
--start--
[general]
accounts = Test

[Test]
localfolders = ~/Maildir
remotehost = ipv6.host.com
remoteuser = username
remotepass = password

--end--

Hope this helps,
Adriaan

-- 
Adriaan Peeters <apeeters@xxxxxxxxxxx>



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