1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class MailConverter: def __init__(self, mail_service): pass def from_mail(self, imap_mail): return inbox_mail def to_mail(self, pixelated_mail, account): raise NotImplementedError() def from_tag(self, imap_tag): raise NotImplementedError() def from_contact(self, imap_contact): raise NotImplementedError()