diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-05 11:37:54 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-07 11:25:26 -0400 |
commit | bf72ac2c33516a951b7b156c10c4e753c781bfc2 (patch) | |
tree | 81e73d76e882546d8a4c6bc122b34bbbe492eebf /cloud_mdir_sync/config.py | |
parent | fc7ff9fe8288b07442ae9c9a501190d935c1a5d7 (diff) | |
download | cloud_mdir_sync-bf72ac2c33516a951b7b156c10c4e753c781bfc2.tar.gz cloud_mdir_sync-bf72ac2c33516a951b7b156c10c4e753c781bfc2.tar.bz2 cloud_mdir_sync-bf72ac2c33516a951b7b156c10c4e753c781bfc2.zip |
Lift Mailbox.cfg out of the sub classes
Make sure it is always set
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'cloud_mdir_sync/config.py')
-rw-r--r-- | cloud_mdir_sync/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cloud_mdir_sync/config.py b/cloud_mdir_sync/config.py index 85351d5..be64f57 100644 --- a/cloud_mdir_sync/config.py +++ b/cloud_mdir_sync/config.py @@ -89,8 +89,8 @@ class Config(object): """Create a cloud mailbox for Office365. Mailbox is the name of O365 mailbox to use, account should be the result of Office365_Account""" from .office365 import O365Mailbox - self.cloud_mboxes.append(O365Mailbox(mailbox, user=account[0], - tenant=account[1])) + self.cloud_mboxes.append( + O365Mailbox(self, mailbox, user=account[0], tenant=account[1])) return self.cloud_mboxes[-1] def GMail_Account(self, user): @@ -103,13 +103,13 @@ class Config(object): """Create a cloud mailbox for Office365. Mailbox is the name of O365 mailbox to use, account should be the result of Office365_Account""" from .gmail import GMailMailbox - self.cloud_mboxes.append(GMailMailbox(label, user=account[0])) + self.cloud_mboxes.append(GMailMailbox(self, label, user=account[0])) return self.cloud_mboxes[-1] def MailDir(self, directory): """Create a local maildir to hold messages""" from .maildir import MailDirMailbox - self.local_mboxes.append(MailDirMailbox(directory)) + self.local_mboxes.append(MailDirMailbox(self, directory)) return self.local_mboxes[-1] def _direct_message(self, msg): |