Commit 1ac51cd8 authored by Julien Cristau's avatar Julien Cristau
Browse files

[schema] make Message-Id unique

So far this was only enforced by the MBOXImporter.
parent 64fe6ef60232
......@@ -19,7 +19,7 @@ class Email(EntityType):
"""electronic mail"""
subject = String(fulltextindexed=True)
date = Datetime(description=_('UTC time on which the mail was sent'))
messageid = String(required=True, indexed=True)
messageid = String(required=True, indexed=True, unique=True)
headers = String(description=_('raw headers'))
sender = SubjectRelation('EmailAddress', cardinality='?*')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment