summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/model
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-11 02:30:44 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:21 +0200
commit143092359e6543a16c40be76131c10b68c2d51bc (patch)
treeca8ff62835cdb2ac78156b74d7a41e071c175a63 /service/pixelated/adapter/model
parent10d1f5203517ae33535c6cdb8c2e0fe7cebebea8 (diff)
trying out a new migration
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r--service/pixelated/adapter/model/mail.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py
index 464e0343..084b41ed 100644
--- a/service/pixelated/adapter/model/mail.py
+++ b/service/pixelated/adapter/model/mail.py
@@ -24,7 +24,7 @@ from email.mime.text import MIMEText
from email.header import decode_header
from email.MIMEMultipart import MIMEMultipart
from pycryptopp.hash import sha256
-from leap.mail.imap.fields import fields
+from leap.mail.adaptors import soledad_indexes as fields
import leap.mail.walk as walk
from pixelated.adapter.model.status import Status
from pixelated.support import date
@@ -128,14 +128,14 @@ class InputMail(Mail):
return self._fd
fd = {}
- fd[fields.MBOX_KEY] = mailbox
- fd[fields.UID_KEY] = next_uid
- fd[fields.CONTENT_HASH_KEY] = self._get_chash()
- fd[fields.SIZE_KEY] = len(self.raw)
- fd[fields.MULTIPART_KEY] = True
- fd[fields.RECENT_KEY] = True
- fd[fields.TYPE_KEY] = fields.TYPE_FLAGS_VAL
- fd[fields.FLAGS_KEY] = Status.to_flags(self._status)
+ fd[fields.MBOX] = mailbox
+ fd[fields.MBOX_UUID] = next_uid
+ fd[fields.CONTENT_HASH] = self._get_chash()
+ # fd[fields.SIZE_KEY] = len(self.raw)
+ # fd[fields.MULTIPART_KEY] = True
+ fd[fields.RECENT] = True
+ fd[fields.TYPE] = fields.TYPE_FLAGS_VAL
+ fd[fields.FLAGS] = Status.to_flags(self._status)
self._fd = fd
return fd