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:
0193993
)
Update from samosa: be less conservative when looking for an encrypted message
author
joey
<>
Sat, 6 Nov 2004 11:55:16 +0000
(11:55 +0000)
committer
joey
<>
Sat, 6 Nov 2004 11:55:16 +0000
(11:55 +0000)
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
680b14d
..
ede45ac
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-360,7
+360,8
@@
try:
Msg = GetClearSig(Email);
ErrMsg = "Message is not PGP signed:"
Msg = GetClearSig(Email);
ErrMsg = "Message is not PGP signed:"
- if string.find(Msg[0],"-----BEGIN PGP SIGNED MESSAGE-----") == -1:
+ if string.find(Msg[0],"-----BEGIN PGP SIGNED MESSAGE-----") == -1 and \
+ string.find(Msg[0],"-----BEGIN PGP MESSAGE-----") == -1:
raise Error, "No PGP signature";
# Check the signature
raise Error, "No PGP signature";
# Check the signature