From ccefaf217aab5f1898175f8b48d80d1f88e2fa2f Mon Sep 17 00:00:00 2001 From: joey <> Date: Sat, 6 Nov 2004 11:55:16 +0000 Subject: [PATCH] Update from samosa: be less conservative when looking for an encrypted message --- ud-mailgate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ud-mailgate b/ud-mailgate index 680b14d..ede45ac 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -360,7 +360,8 @@ try: 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 -- 2.20.1