# HG changeset patch
# User Pascal Volk <neverseen@users.sourceforge.net>
# Date 1271302924 0
# Node ID 4812806867896cfa2b716b0b74b2cf50d0f1c939
# Parent  f9a6b6701cf9a94074d3946b8f4b98bf503e8bf7
VMM/Account: Account.get_info() use the domain's transport, if tid matches.

diff -r f9a6b6701cf9 -r 481280686789 VirtualMailManager/Account.py
--- a/VirtualMailManager/Account.py	Thu Apr 15 03:05:01 2010 +0000
+++ b/VirtualMailManager/Account.py	Thu Apr 15 03:42:04 2010 +0000
@@ -310,8 +310,11 @@
             info['address'] = self._addr
             info['home'] = '%s/%s' % (self._domain.directory, info['uid'])
             info['mail_location'] = MailLocation(mid=info['mid']).mail_location
-            info['transport'] = Transport(self._dbh,
-                                          tid=info['transport']).transport
+            if info['transport'] == self._domain.transport.tid:
+                info['transport'] = self._domain.transport.transport
+            else:
+                info['transport'] = Transport(self._dbh,
+                                              tid=info['transport']).transport
             del info['mid']
             return info
         # nearly impossibleā€½