mirror of https://github.com/kianby/stacosys
Compare commits
No commits in common. 'dc776881e405693968e84651322d114242669100' and '467060e49170677da9c255f51d4047a1fe5118cb' have entirely different histories.
dc776881e4
...
467060e491
@ -1,6 +1,6 @@
|
||||
[messages]
|
||||
login.failure.username=Identifiant ou mot de passe incorrect
|
||||
logout.flash=Vous avez \xe9t\xe9 d\xe9connect\xe9.
|
||||
logout.flash=Vous avez été déconnecté.
|
||||
admin.comment.notfound=Commentaire introuvable
|
||||
admin.comment.approved=Commentaire publi\xe9
|
||||
admin.comment.deleted=Commentaire supprim\xe9
|
||||
admin.comment.approved=Commentaire publié
|
||||
admin.comment.deleted=Commentaire supprimé
|
@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from typing import List
|
||||
|
||||
|
||||
@dataclass
|
||||
class Part:
|
||||
content: str
|
||||
content_type: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class Attachment:
|
||||
filename: str
|
||||
content: str
|
||||
content_type: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class Email:
|
||||
id: int
|
||||
encoding: str
|
||||
date: datetime
|
||||
from_addr: str
|
||||
to_addr: str
|
||||
subject: str
|
||||
parts: List[Part]
|
||||
attachments: List[Attachment]
|
||||
plain_text_content: str
|
Loading…
Reference in New Issue