diff options
Diffstat (limited to 'pykolab/imap/__init__.py')
-rw-r--r-- | pykolab/imap/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py index baf7b30..20e284b 100644 --- a/pykolab/imap/__init__.py +++ b/pykolab/imap/__init__.py @@ -228,6 +228,11 @@ class IMAP(object): def __getattr__(self, name): if hasattr(self.imap, name): return getattr(self.imap, name) + elif hasattr(self.imap, 'm'): + if hasattr(self.imap.m, name): + return getattr(self.imap.m, name) + else: + raise AttributeError, _("%r has no attribute %s") % (self,name) else: raise AttributeError, _("%r has no attribute %s") % (self,name) |