Ticket #15793: #15793 - email_extension.diff

File #15793 - email_extension.diff, 548 bytes (added by German M. Bravo, 14 years ago)
  • django/core/mail/backends/filebased.py

    old new  
    4040        """Return a unique file name."""
    4141        if self._fname is None:
    4242            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)))
    4444            self._fname = os.path.join(self.file_path, fname)
    4545        return self._fname
    4646
Back to Top