Bug #63
Failing to create new local folders (where local folders are nested)
| Status : | Closed | Start : | 04/09/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | - | % Done : | 100% |
|
| Category : | - | |||
| Target version : | - | |||
| Resolution : |
Description
I am running 5.99.9 on an OS X 10.5 machine (with the memory patch that is given in #20).
I believe this is related to #59 and #60, but it seems to only occur when the folders are nested, ie:
folder1/folder2
I have the following set in my offlineimaprc:
{{{
/>
type = Maildir
localfolders = ~/Mail
sep = /
}}}
If I continue to run offlineimap, it does move on to the next folder, but as I am just starting to sync a new machine, this is quite tedious.
When I use the same offlineimaprc file on my Ubuntu Hardy machine (5.99.4), there seems to be no problems.
Below is the backtrace I get:
{{{
Traceback (most recent call last):
File "/sw/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, in run
Thread.run(self)
File "/sw/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/sw/lib/python2.5/site-packages/offlineimap/accounts.py", line 114, in syncrunner
self.sync()
File "/sw/lib/python2.5/site-packages/offlineimap/accounts.py", line 148, in sync
remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/sw/lib/python2.5/site-packages/offlineimap/repository/Base.py", line 157, in syncfoldersto
copyfolder.makefolder(key)
File "/sw/lib/python2.5/site-packages/offlineimap/repository/LocalStatus.py", line 43, in makefolder
file = open(filename + ".tmp", "wb")
IOError: [Errno 2] No such file or directory: '/Users/USERNAME/.offlineimap/Account-SERVERNAME/LocalStatus/FOLDER1/FOLDER2.tmp'
}}}
Associated revisions
Revision 553158a81ba7922786184684906be1ddd00c18bb
Finally fix problem with making new folders
fixes deb#478990. fixes #63.
Patch from Martin F. Krafft.
Revision c046383dc2499b2af2887a4f436c3eda4c544444
Unify LocalStatus.py repository code with folder code
refs #63
Revision c18f8b9fadc929d3e8bb832a5f50b0ad585bf3cc
Prepping 5.99.15; fixes: #63
Revision cf080844ac92df72db4a85d434b73f647ec51b95
Make parent dirs of localstatus folders.
fixes #63
History
04/09/2008 08:58 PM - John Goerzen
I suspect this bug was introduced in 5.99.5. Can you please try 5.99.4 and 5.99.5 and let me know if the bug exists in either one? That will help in tracking down a fix.
Thanks,
-- John
04/10/2008 09:24 AM - Greg Darke
5.99.4 works on my ubuntu machine, I won't be able to test it on the OS X machine until tomorrow (about 9 hours from now)
04/17/2008 09:46 AM - John Goerzen
- % Done changed from 0 to 100
- Status changed from New to Closed
Applied in changeset cf080844ac92df72db4a85d434b73f647ec51b95.