projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da220ff
)
Escaping of - starting lines
author
jgg
<>
Mon, 10 Jan 2000 05:02:51 +0000
(
05:02
+0000)
committer
jgg
<>
Mon, 10 Jan 2000 05:02:51 +0000
(
05:02
+0000)
ud-echelon
patch
|
blob
|
history
userdir_gpg.py
patch
|
blob
|
history
diff --git
a/ud-echelon
b/ud-echelon
index
a58c0ec
..
6d4c38f
100755
(executable)
--- 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;
if string.find(Msg[0],"-----BEGIN PGP SIGNED MESSAGE-----") == -1:
return None;
-
+
Res = GPGCheckSig(Msg[0]);
# Failed to find a matching sig
Res = GPGCheckSig(Msg[0]);
# Failed to find a matching sig
diff --git
a/userdir_gpg.py
b/userdir_gpg.py
index
d19130d
..
e0f3feb
100644
(file)
--- 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";
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
return (Output,1);
else:
# Just return the message body