i should probably read an rfc or something lol
anyways, add support for detached signatures
This commit is contained in:
parent
803eaad493
commit
224d714bdf
1 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue