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: Michael Schneider
Subject: Re: [Duplicity-talk] Status of imap support?
Date: Wed, 21 Jan 2009 20:12:56 +0100

I just replaced the google imap server by my providers server (imap.alice-dsl.net) in gmailbackend

result:

1.) imap.alice-dsl.net does not like SSL connects, duplicity fails with:

  File "/usr/lib/python2.6/site-packages/duplicity/backend.py", line 93, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/lib/python2.6/site-packages/duplicity/backends/gmailimapbackend.py", line 32, in __init__
    self._conn = cl('imap.alice-dsl.net', 993)
  File "/usr/lib/python2.6/imaplib.py", line 1137, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python2.6/imaplib.py", line 163, in __init__
    self.open(host, port)
  File "/usr/lib/python2.6/imaplib.py", line 1149, in open
    self.sock.connect((host, port))
  File "<string>", line 1, in connect
timeout: timed out

2.) after forcing port 143, another problem surfaces:
IMAP LIST: duplicity-full.2009-01-21T20:06:18+01:00.vol1.difftar.gpg test
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 583, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 577, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 558, in main
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 236, in full_backup
    col_stats.set_values(sig_chain_warning = None).cleanup_signatures()
  File "/var/tmp/duplicity-0.5.06-0.fdr.6-root-root/usr/lib/python2.6/site-packages/duplicity/collections.py", line 524, in set_values
  File "/usr/lib/python2.6/site-packages/duplicity/backends/gmailimapbackend.py", line 138, in list
    subj = m.getheaders("subject")[0]
IndexError: list index out of range


m.getheaders returns an empty list. Not being an IMAP expert, I cannot judge whether is behaviour is correct.
Is it save to skip empty headers when iterating over the messages in list() ?

-Mike






On Tue, Jan 20, 2009 at 10:27 PM, Kenneth Loafman <address@hidden> wrote:
Michael Schneider wrote:
> Hi,
>
> I would like to know the status of general (not gmail) IMAp support in
> duplicity.
>
> According to http://savannah.nongnu.org/patch/index.php?6297
> imap support shold be in duplicity, but the current version (5.06) does
> not ship with a
> generic  imap backend, but with a gmail-backend.
>
> The comments on said patch read "(google IMAP works a bit different)",
> so I assume that
> just replacing the hard-coded references to gmail in gmailbackend.py by
>  another imap-server will not work...will it?

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.

...Thanks,
...Ken



_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

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