Go to the source code of this file.
|
int | MAXLEN = 200 |
|
string | CHARSET = 'ISO-8859-1' |
|
string | QUOTE = '> ' |
|
list | __all__ = ["mimify","unmimify","mime_encode_header","mime_decode_header"] |
|
tuple | qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I) |
|
tuple | base64_re = re.compile('^content-transfer-encoding:\\s*base64', re.I) |
|
tuple | mp = re.compile('^content-type:.*multipart/.*boundary="?([^;"\n]*) |
|
int | is_repl = 1 |
|
tuple | mp_res = mp.match(line) |
|
string | multipart = '--' |
| if is_repl and len(line) >= 4 and line[:4] == QUOTE+'–' and line[-3:] != '–
': multipart = line[:-1] More...
|
|
tuple | line = ifile.readline() |
|
| pref = prefix |
|
tuple | nifile = File(ifile, multipart) |
|
tuple | newline = ifile.readline() |
|
tuple | mime_char = re.compile('[=\177-\377]') |
|
tuple | mime_header_char = re.compile('[=?\177-\377]') |
|
tuple | mime_header = re.compile('([ \t(]|^)([-a-zA-Z0-9_+]*[\177-\377][-a-zA-Z0-9_+\177-\377]*)(?=[ \t)]|\n)') |
|
tuple | mv = re.compile('^mime-version:', re.I) |
|
tuple | cte = re.compile('^content-transfer-encoding:', re.I) |
|
tuple | iso_char = re.compile('[\177-\377]') |
|
string | usage = 'Usage: mimify [-l len] -[ed] [infile [outfile]]' |
|
int | decode_base64 = 0 |
|
| encode = mimify |
|
tuple | encode_args = (sys.stdin, sys.stdout) |
|