summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/model
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-04-14 17:08:24 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-04-14 17:08:46 -0300
commit82a566e4df79913fb7f2c38c7a7800a61cb9cf29 (patch)
tree0971a8f1814eef2a53bf534f4955f3bc9b1ac90b /service/pixelated/adapter/model
parentf4aa7e41b343704843002ffc8a85c58abf09b911 (diff)
Log was leaking subject, changed to uid instead
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r--service/pixelated/adapter/model/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py
index 8e7b745c..b0b56fec 100644
--- a/service/pixelated/adapter/model/mail.py
+++ b/service/pixelated/adapter/model/mail.py
@@ -341,7 +341,7 @@ class PixelatedMail(Mail):
date = received.split(";")[-1].strip()
else:
# we can't get a date for this mail, so lets just use now
- logger.warning('Encountered a mail with missing date and received header fields. Subject %s' % self.hdoc.content.get('subject', None))
+ logger.warning('Encountered a mail with missing date and received header fields. ID %s' % self.fdoc.content.get('uid', None))
date = pixelated.support.date.iso_now()
return dateparser.parse(date).isoformat()
except (ValueError, TypeError) as e: