Beispiel #1
0
 def filename(self):
     # TODO: first look for the name on the Content-Disposition header
     # and only after this one should look on the Constant-Type Name parameter
     if self.body_fld_param.has_key('NAME'):
         return getUnicodeHeader(self.body_fld_param['NAME'])
     else:
         return None
Beispiel #2
0
 def filename(self):
     # TODO: first look for the name on the Content-Disposition header
     # and only after this one should look on the Constant-Type Name parameter
     if self.body_fld_param.has_key('NAME'):
         return getUnicodeHeader(self.body_fld_param['NAME'])
     else:
         return None
Beispiel #3
0
def envelope( structure ):
    return { 'env_date': envelopedate2datetime(structure[0]),
            'env_subject': getUnicodeHeader(structure[1]),
            'env_from': getUnicodeMailAddr(structure[2]),
            'env_sender': getUnicodeMailAddr(structure[3]),
            'env_reply_to': getUnicodeMailAddr(structure[4]),
            'env_to': getUnicodeMailAddr(structure[5]),
            'env_cc': getUnicodeMailAddr(structure[6]),
            'env_bcc': getUnicodeMailAddr(structure[7]),
            'env_in_reply_to': structure[8],
            'env_message_id': structure[9]  }
Beispiel #4
0
def envelope(structure):
    return {
        'env_date': envelopedate2datetime(structure[0]),
        'env_subject': getUnicodeHeader(structure[1]),
        'env_from': getUnicodeMailAddr(structure[2]),
        'env_sender': getUnicodeMailAddr(structure[3]),
        'env_reply_to': getUnicodeMailAddr(structure[4]),
        'env_to': getUnicodeMailAddr(structure[5]),
        'env_cc': getUnicodeMailAddr(structure[6]),
        'env_bcc': getUnicodeMailAddr(structure[7]),
        'env_in_reply_to': structure[8],
        'env_message_id': structure[9]
    }