duplicity-tracker
[Top][All Lists]
Advanced

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

[Duplicity-tracker] [bug #25509] Logic error in imapbackend.py [IMAP_SER


From: anonymous
Subject: [Duplicity-tracker] [bug #25509] Logic error in imapbackend.py [IMAP_SERVER]
Date: Sat, 07 Feb 2009 08:43:39 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

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/





reply via email to

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