diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-23 13:31:50 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:27 +0200 |
commit | 23f0aafe4490b4126af6c8e12aaa340170f042c6 (patch) | |
tree | c4a6ebecabfae9d2faa68baf8757df6c1fdbce51 /service/pixelated/adapter/model | |
parent | 0449598c74b996e718cbefe7ca291bdf0389a64f (diff) |
Started work on MailStore abstraction.
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 5002974f..498ef079 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -49,6 +49,10 @@ SIZE_KEY = 'size' class Mail(object): @property + def from_sender(self): + return self.headers['From'] + + @property def to(self): return self.headers['To'] @@ -61,6 +65,10 @@ class Mail(object): return self.headers['Bcc'] @property + def subject(self): + return self.headers['Subject'] + + @property def date(self): return self.headers['Date'] |