Ticket #15793: #15793 - email_extension.diff
File #15793 - email_extension.diff, 548 bytes (added by , 14 years ago) |
---|
-
django/core/mail/backends/filebased.py
old new 40 40 """Return a unique file name.""" 41 41 if self._fname is None: 42 42 timestamp = datetime.datetime.now().strftime("%Y%m%d-%H%M%S") 43 fname = "%s-%s. log" % (timestamp, abs(id(self)))43 fname = "%s-%s.eml" % (timestamp, abs(id(self))) 44 44 self._fname = os.path.join(self.file_path, fname) 45 45 return self._fname 46 46