X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=sigcheck;fp=sigcheck;h=69db15221ab91768b714de6a3e37885b3b8707c7;hp=fc16d1fcd32552c857f023f8e3dff87aae40b1e3;hb=703033b7eeaffc61568300877d2d452651388acf;hpb=43aa6ad5f244e7b574309b29b2bf512336ea27b1 diff --git a/sigcheck b/sigcheck index fc16d1f..69db152 100755 --- a/sigcheck +++ b/sigcheck @@ -129,12 +129,12 @@ try: # Get the email ErrType = EX_PERMFAIL; ErrMsg = "Failed to understand the email or find a signature:"; - email = email.parser.Parser().parse(sys.stdin); - MsgID = email["Message-ID"] + mail = email.parser.Parser().parse(sys.stdin); + MsgID = mail["Message-ID"] print "Inspecting message %s"%MsgID; verbmsg("Processing message %s" % MsgID) - Msg = GetClearSig(email,1); + Msg = GetClearSig(mail,1); if AllowMIME == 0 and Msg[1] != 0: raise Error, "PGP/MIME disallowed";