예제 #1
0
파일: message.py 프로젝트: haugvald/baruwa2
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)
예제 #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)
예제 #3
0
파일: message.py 프로젝트: haugvald/baruwa2
 def __init__(self, msgfile):
     "init"
     self.parser = EmailParser(msgfile)
예제 #4
0
 def __init__(self, msgfile):
     "init"
     self.parser = EmailParser(msgfile)