Ejemplo n.º 1
0
class PreviewMessage(object):
    """Preview message"""
    def __init__(self, msgfile):
        "init"
        self.parser = EmailParser(msgfile)

    def preview(self):
        "Return message"
        return self.parser.parse()

    def attachment(self, attachmentid):
        "Return attachment"
        return self.parser.get_attachment(attachmentid)

    def img(self, imageid):
        "Return inline image"
        return self.parser.get_img(imageid)
Ejemplo n.º 2
0
class PreviewMessage(object):
    """Preview message"""
    def __init__(self, msgfile):
        "init"
        self.parser = EmailParser(msgfile)

    def preview(self):
        "Return message"
        return self.parser.parse()

    def attachment(self, attachmentid):
        "Return attachment"
        return self.parser.get_attachment(attachmentid)

    def img(self, imageid):
        "Return inline image"
        return self.parser.get_img(imageid)
Ejemplo n.º 3
0
 def __init__(self, msgfile):
     "init"
     self.parser = EmailParser(msgfile)
Ejemplo n.º 4
0
 def __init__(self, msgfile):
     "init"
     self.parser = EmailParser(msgfile)