From: jgg <> Date: Mon, 10 Jan 2000 05:02:51 +0000 (+0000) Subject: Escaping of - starting lines X-Git-Tag: debian_userdir-ldap_0-3-7~174 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=ffec551d9f2f85fd4f6030a44615cfaed7b050df Escaping of - starting lines --- diff --git a/ud-echelon b/ud-echelon index a58c0ec..6d4c38f 100755 --- a/ud-echelon +++ b/ud-echelon @@ -24,7 +24,7 @@ def TryGPG(Email): if string.find(Msg[0],"-----BEGIN PGP SIGNED MESSAGE-----") == -1: return None; - + Res = GPGCheckSig(Msg[0]); # Failed to find a matching sig diff --git a/userdir_gpg.py b/userdir_gpg.py index d19130d..e0f3feb 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -88,7 +88,7 @@ def GetClearSig(Msg): if Msg.getparam('micalg') != None: Output = Output + "Hash: %s\r\n"%(string.upper(Msg.getparam('micalg')[4:])); Output = Output + "\r\n"; - Output = Output + Signed.getvalue() + Signature; + Output = Output + string.replace(Signed.getvalue(),"\n---","\n- ---") + Signature; return (Output,1); else: # Just return the message body