Mercurial > libervia-backend
comparison src/plugins/plugin_misc_maildir.py @ 365:efbfccfed623
core: local_dir moved to config file
- ~/.sat.conf added to potential config file location
- removed useless profile param from getConfig
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 18 Jun 2011 17:56:59 +0200 |
parents | 6dcdc4cf8622 |
children | 866dbb0d7d87 |
comparison
equal
deleted
inserted
replaced
364:312ca6f9d84a | 365:efbfccfed623 |
---|---|
336 raise NotImplementedError | 336 raise NotImplementedError |
337 self.name=name | 337 self.name=name |
338 self.profile=profile | 338 self.profile=profile |
339 self.maildir=_maildir | 339 self.maildir=_maildir |
340 profile_path = self.maildir._getProfilePath(profile) | 340 profile_path = self.maildir._getProfilePath(profile) |
341 full_profile_path = os.path.join(os.path.expanduser(self.maildir.host.get_const('local_dir')),profile_path) | 341 full_profile_path = os.path.join(self.maildir.host.memory.getConfig('','local_dir'), profile_path) |
342 if not os.path.exists(full_profile_path): | 342 if not os.path.exists(full_profile_path): |
343 os.makedirs(full_profile_path,0700) | 343 os.makedirs(full_profile_path,0700) |
344 mailbox_path = os.path.join(full_profile_path, MAILDIR_PATH) | 344 mailbox_path = os.path.join(full_profile_path, MAILDIR_PATH) |
345 self.mailbox_path=mailbox_path | 345 self.mailbox_path=mailbox_path |
346 self.mailbox = maildir.MaildirMailbox(mailbox_path) | 346 self.mailbox = maildir.MaildirMailbox(mailbox_path) |