Fix bug in LocalStatus so that it writes out the header line for
folder creation
This commit is contained in:
parent
d11c9305ba
commit
aaf9478535
@ -1,5 +1,5 @@
|
|||||||
# Local status cache virtual folder
|
# Local status cache virtual folder
|
||||||
# Copyright (C) 2002 - 2007 John Goerzen
|
# Copyright (C) 2002 - 2008 John Goerzen
|
||||||
# <jgoerzen@complete.org>
|
# <jgoerzen@complete.org>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
from Base import BaseRepository
|
from Base import BaseRepository
|
||||||
from offlineimap import folder
|
from offlineimap import folder
|
||||||
|
import offlineimap.folder.LocalStatus
|
||||||
import os, re
|
import os, re
|
||||||
|
|
||||||
class LocalStatusRepository(BaseRepository):
|
class LocalStatusRepository(BaseRepository):
|
||||||
@ -39,6 +40,7 @@ class LocalStatusRepository(BaseRepository):
|
|||||||
def makefolder(self, foldername):
|
def makefolder(self, foldername):
|
||||||
# "touch" the file, truncating it.
|
# "touch" the file, truncating it.
|
||||||
file = open(self.getfolderfilename(foldername), "wb")
|
file = open(self.getfolderfilename(foldername), "wb")
|
||||||
|
file.write(offlineimap.folder.LocalStatus.magicline + '\n')
|
||||||
file.close()
|
file.close()
|
||||||
# Invalidate the cache.
|
# Invalidate the cache.
|
||||||
self.folders = None
|
self.folders = None
|
||||||
|
Loading…
Reference in New Issue
Block a user