URL:
<http://savannah.nongnu.org/bugs/?25509>
Summary: Logic error in imapbackend.py [IMAP_SERVER]
Project: duplicity
Submitted by: None
Submitted on: sam 07 fév 2009 08:43:37 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The imapbackend.py starts by:
try:
imap_server = os.environ['IMAP_SERVER']
except KeyError:
imap_server = 'mail.localhost'
[...]
self._conn = cl(imap_server, 993)
This means that the imap server to connect to is read from OS environ
variable IMAP_SERVER and not from command line.
All the other backends use the command line for their arguments, worst it's
not written anywhere that the server should use the IMAP_SERVER environ
variable.
Proposed fix:
try:
imap_server = os.environ['IMAP_SERVER']
except KeyError:
imap_server = parsed_url.hostname()
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?25509>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
_______________________________________________
Duplicity-tracker mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/duplicity-tracker