Automatically create top-level localfolder for Maildirs
this is the folder Maildirs will put messages in. Closes: #286967
This commit is contained in:
parent
7a70878ed6
commit
3af221f99b
@ -35,6 +35,10 @@ class MaildirRepository(BaseRepository):
|
|||||||
self.debug("MaildirRepository initialized, sep is " + repr(self.getsep()))
|
self.debug("MaildirRepository initialized, sep is " + repr(self.getsep()))
|
||||||
self.folder_atimes = []
|
self.folder_atimes = []
|
||||||
|
|
||||||
|
# Create the top-level folder if it doesn't exist
|
||||||
|
if not os.path.isdir(self.root):
|
||||||
|
os.mkdir(self.root, 0700)
|
||||||
|
|
||||||
def _append_folder_atimes(self, foldername):
|
def _append_folder_atimes(self, foldername):
|
||||||
p = os.path.join(self.root, foldername)
|
p = os.path.join(self.root, foldername)
|
||||||
new = os.path.join(p, 'new')
|
new = os.path.join(p, 'new')
|
||||||
|
Loading…
Reference in New Issue
Block a user