Complete.Org: Mailing Lists: Archives: offlineimap: July 2002:
Re: Dots in dir names
Home

Re: Dots in dir names

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Martijn Pieters <mj@xxxxxxxx>
Cc: Robert Flemming <flemming@xxxxxxxxxxxxx>, offlineimap@xxxxxxxxxxxx
Subject: Re: Dots in dir names
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: Tue, 16 Jul 2002 14:54:20 -0500

On Tue, Jul 16, 2002 at 02:47:57PM -0400, Martijn Pieters wrote:

> Yup, it's a known bug (John can we get a mailinglist archive? :)) and should
> be fixed in the next release. 

Done.

http://www.complete.org/mailinglists/archives (web mhonarc version,
hpcomm-dev will be fixed soon.)

gopher://quux.org/1/Archives/Mailing%20Lists/offlineimap (mailbox version)

> 
> Attached is a fix, such as John sent me when I reported the problem.
> 
> -- 
> Martijn Pieters
> | Software Engineer  mailto:mj@xxxxxxxx
> | Zope Corporation   http://www.zope.com/
> | Creators of Zope   http://www.zope.org/
> ---------------------------------------------
> 
> 
> -- Attached file included as plaintext by Ecartis --
> 
> Index: offlineimap.py
> ===================================================================
> RCS file: /var/cvs/offlineimap/offlineimap.py,v
> retrieving revision 1.50
> diff -d -u -r1.50 offlineimap.py
> --- offlineimap.py    15 Jul 2002 13:50:52 -0000      1.50
> +++ offlineimap.py    16 Jul 2002 00:52:14 -0000
> @@ -103,15 +103,8 @@
>                                           config.getint(account, 
> "maxconnections"))
>  
>  mailboxes = []
> -mailboxlock = Lock()
>  servers = {}
>  
> -def addmailbox(accountname, remotefolder):
> -    mailboxlock.acquire()
> -    mailboxes.append({'accountname' : accountname,
> -                      'foldername': remotefolder.getvisiblename()})
> -    mailboxlock.release()    
> -    
>  def syncaccount(accountname, *args):
>      # We don't need an account lock because syncitall() goes through
>      # each account once, then waits for all to finish.
> @@ -160,12 +153,13 @@
>  
>  def syncfolder(accountname, remoterepos, remotefolder, localrepos,
>                 statusrepos):
> -    mailboxes.append({'accountname': accountname,
> -                      'foldername': remotefolder.getvisiblename()})
>      # Load local folder.
>      localfolder = localrepos.\
>                    getfolder(remotefolder.getvisiblename().\
>                              replace(remoterepos.getsep(), 
> localrepos.getsep()))
> +    # Write the mailboxes
> +    mailboxes.append({'accountname': accountname,
> +                      'foldername': localfolder.getvisiblename()})
>      # Load local folder
>      ui.syncingfolder(remoterepos, remotefolder, localrepos, localfolder)
>      ui.loadmessagelist(localrepos, localfolder)
> 
> 
> 

-- 
John Goerzen <jgoerzen@xxxxxxxxxxxx>    GPG: 0x8A1D9A1F    www.complete.org


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