i should probably read an rfc or something lol

anyways, add support for detached signatures
This commit is contained in:
askiiart 2024-03-01 08:36:34 -06:00
parent 803eaad493
commit 224d714bdf
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67

View file

@ -63,13 +63,21 @@ async def main(log):
elif (
email.rfind('-----BEGIN PGP SIGNATURE-----') != -1
and email.rfind('-----END PGP SIGNATURE-----') != -1
):
) or (email.rfind('-----BEGIN PGP MESSAGE-----') != -1
and email.rfind('-----END PGP MESSAGE-----') != -1):
signature = email[
email.rfind('-----BEGIN PGP SIGNATURE-----') : email.rfind(
'-----END PGP SIGNATURE-----'
)
+ 27
]
if signature == '':
signature = email[
email.rfind('-----BEGIN PGP MESSAGE-----') : email.rfind(
'-----END PGP MESSAGE-----'
)
+ 25
]
signature.replace('=3D', '=')
try: