VirtualMailManager/maillocation.py
branchv0.6.x
changeset 227 87db9f1f95ea
parent 226 311eee429f67
child 228 a7b000ca4ac9
--- a/VirtualMailManager/maillocation.py	Tue Mar 02 17:40:58 2010 +0000
+++ b/VirtualMailManager/maillocation.py	Tue Mar 02 19:24:36 2010 +0000
@@ -98,3 +98,8 @@
     def mail_location(self):
         """The mail_location, e.g. ``maildir:~/Maildir``"""
         return self.__str__()
+
+    @property
+    def mid(self):
+        """The mail_location's unique ID."""
+        return _type_id[self._info['directory'].lower()]