X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Flists.rpc.py;h=30a9b25f912cc72566fa6b11fb225b566f9a0241;hb=e0210288e07b472b2341c6f2b5d5d5046d8cd4e9;hp=5003ad3f7b19e977c82c12e6098eab80caffadc0;hpb=c85297061a317f47d8293e079badd998ecab9b4e;p=platal.git diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 5003ad3..30a9b25 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -52,6 +52,7 @@ class AuthFailed(Exception): pass #------------------------------------------------ config = ConfigParser.ConfigParser() +config.read(os.path.dirname(__file__)+'/../configs/platal.ini') config.read(os.path.dirname(__file__)+'/../configs/platal.conf') def get_config(sec, val, default=None): @@ -170,7 +171,7 @@ def quote(s, is_header=False): h = Utils.oneline(s, 'iso-8859-1') else: h = s - h = str('').join(re.split('[\x00-\x09\x0B\x1f]+', s)) + h = str('').join(re.split('[\x00-\x09\x0B-\x1f]+', h)) return Utils.uquote(h.replace('&', '&').replace('>', '>').replace('<', '<')) def to_forlife(email):