Changeset 39
- Timestamp:
- 10/17/07 23:19:42 (1 year ago)
- Location:
- branches/3.0
- Files:
-
- 2 modified
-
setup.py (modified) (1 diff)
-
turbomail/message.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/setup.py
r37 r39 24 24 license=license, 25 25 26 install_requires = ["TurboGears >= 1.0"], 26 install_requires = [ 27 "TurboGears >= 1.0" 28 "uuid >= 1.30" 29 ], 27 30 extras_require = { 28 31 'turbogears': ["TurboGears>=1.0"] -
branches/3.0/turbomail/message.py
r38 r39 16 16 from email.MIMEText import MIMEText 17 17 from email.Header import Header 18 19 from uuid import uuid4 as uuid 18 20 19 21 import logging … … 89 91 self.tries = turbomail.config.get("mail.tries", 3) 90 92 93 self._id = None 94 91 95 for i, j in kw.iteritems(): 92 96 assert hasattr(self, i), "Unknown attribute: '%s'" % i … … 110 114 bcc = property(lambda self: self._bcc, lambda self, value: self._bcc.replace(value), lambda self: self._bcc.replace()) 111 115 disposition = property(lambda self: self._disposition, lambda self, value: self._disposition.replace(value), lambda self: self._disposition.replace()) 116 117 @property 118 def id(self): 119 if not self._id or (self._processed and self._dirty): 120 self.__dict__['_id'] = str(uuid()) 121 122 return self._id 112 123 113 124 @property … … 168 179 ('X-Mailer', "TurboMail <http://www.python-turbomail.org/>"), 169 180 ('X-TurboMail-Version', version), 181 ('X-TurboMail-Message-GUID', self.id), 170 182 ('X-TurboMail-Extensions', "manager.demand v.1.0, provider.smtp v.1.0") 171 183 ]
