| 7 |
# This file is distributed under the terms of the General Public License |
# This file is distributed under the terms of the General Public License |
| 8 |
# version 2 or (at your option) any later version. |
# version 2 or (at your option) any later version. |
| 9 |
|
|
| 10 |
import os.path, rfc822, sys, string, re, email, common |
import os, rfc822, sys, string, re, email, common |
| 11 |
from xml.dom import implementation, ext |
from xml.dom import implementation, ext |
| 12 |
|
|
| 13 |
from config import dir, odir, root |
from config import dir, odir, root |
| 14 |
|
|
| 15 |
|
os.environ["PATH"] = "/bin:/sbin:/usr/bin:/usr/sbin" |
| 16 |
|
|
| 17 |
def read_msg(file): |
def read_msg(file): |
| 18 |
f = open(file, "r") |
f = open(file, "r") |
| 19 |
parser = email.Parser.Parser() |
parser = email.Parser.Parser() |