|
mime_decode(line)
Decode a single line of quoted-printable text to 8bit. |
|
|
|
mime_decode_header(line)
Decode a header line to 8bit. |
|
|
|
unmimify_part(ifile,
ofile,
decode_base64=0)
Convert a quoted-printable part of a MIME mail message to 8bit. |
|
|
|
unmimify(infile,
outfile,
decode_base64=0)
Convert quoted-printable parts of a MIME mail message to 8bit. |
|
|
|
mime_encode(line,
header)
Code a single line as quoted-printable. |
|
|
|
mime_encode_header(line)
Code a single header line as quoted-printable. |
|
|
|
mimify_part(ifile,
ofile,
is_mime)
Convert an 8bit part of a MIME mail message to quoted-printable. |
|
|
|
mimify(infile,
outfile)
Convert 8bit parts of a MIME mail message to quoted-printable. |
|
|
|
MAXLEN = 200
|
|
CHARSET = ' ISO-8859-1 '
|
|
QUOTE = ' > '
|
|
qp = re.compile(r'(?i) ^content-transfer-encoding:\s* quoted-pri...
|
|
base64_re = re.compile(r'(?i) ^content-transfer-encoding:\s* bas...
|
|
mp = re.compile(r'(?is) ^content-type:.* multipart/.* boundary="? ...
|
|
chrset = re.compile(r'(?is) ^( content-type:.* charset=") ( us-asci...
|
|
he = re.compile(r'^-* \n')
|
|
mime_code = re.compile(r'(?i) =( [ 0- 9a- f] [ 0- 9a- f] ) ')
|
|
mime_head = re.compile(r'(?i) =\?iso-8859-1\?q\?( [ ^ \? \t\n] + ) \?=')
|
|
repl = re.compile(r'(?i) ^subject:\s+ re: ')
|
|
mime_char = re.compile(r'[ =\x7f- \xff] ')
|
|
mime_header_char = re.compile(r'[ =\?\x7f- \xff] ')
|
|
mime_header = re.compile(r'( [ \t\(] | ^) ( [ -a- zA- Z0- 9_\+] * [ \x7f- \...
|
|
mv = re.compile(r'(?i) ^mime-version:')
|
|
cte = re.compile(r'(?i) ^content-transfer-encoding:')
|
|
iso_char = re.compile(r'[ \x7f- \xff] ')
|
|
usage = 'Usage: mimify [-l len] -[ed] [infile [outfile]]'
|
|
decode_base64 = 0
|
|
encode_args = encode_args+(decode_base64,)
|