From ffec551d9f2f85fd4f6030a44615cfaed7b050df Mon Sep 17 00:00:00 2001 From: jgg <> Date: Mon, 10 Jan 2000 05:02:51 +0000 Subject: [PATCH] Escaping of - starting lines --- ud-echelon | 2 +- userdir_gpg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1