X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=ede45ac456a8a37d03d6da68d606df5f3f13e80b;hb=ccefaf217aab5f1898175f8b48d80d1f88e2fa2f;hp=680b14defe14383a25c3659523a320cb2ee5840c;hpb=01939936733285ba75e071638936a05bc944276f;p=mirror%2Fuserdir-ldap.git 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