Commit e2d2477f authored by Mikael Ottela's avatar Mikael Ottela

Updated generator scripts to include dataobjects for emails.

parent 37fd6971
......@@ -21,9 +21,10 @@ def generateMailAccount(index):
####################################################################################
nmo_MailFolder = '''
<%(mailfolder_uri)s> a nmo:MailFolder ;
nie:relatedTo %(mailfolder_account)s ;
nmo:folderName "%(mailfolder_name)s" .
<%(mailfolder_uri)s> a nmo:MailFolder, nmo:MailboxDataObject ;
tracker:available true ;
nie:relatedTo %(mailfolder_account)s ;
nmo:folderName "%(mailfolder_name)s" .
'''
def generateMailFolder(index):
me = 'nmo#MailFolder'
......@@ -35,7 +36,7 @@ def generateMailFolder(index):
####################################################################################
nmo_Email = '''
<%(email_uri)s> a nmo:Email ;
<%(email_uri)s> a nmo:Email, nmo:MailboxDataObject ;
nie:mimeType "%(email_mime)s" ;
nie:relatedTo <%(email_account)s> ;
nie:isStoredAs <%(email_stored_as)s> ;
......@@ -51,7 +52,8 @@ nmo_Email = '''
nmo:from <%(email_from)s> ;
nmo:isDraft "%(email_draft)s" ;
nmo:isDeleted "%(email_deleted)s" ;
nmo:sentDate "%(email_sent)s" .
nmo:sentDate "%(email_sent)s" ;
tracker:available true .
'''
def generateEmail(index):
me = 'nmo#Email'
......
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