Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Jan 7, 2025
1 parent 08d844a commit 3ea5615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,7 @@ def test_long_attachment_filename(self):

def verify_inline_message(txt: str):
boundary = re.search(r'boundary="(.*)"', txt).group(1)
reg = fr'{
boundary}.*{boundary}\n(.*)\n--{boundary}.*(-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----)'
reg = (fr'{boundary}.*{boundary}\n(.*)\n--{boundary}.*(-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----)')
m = re.search(reg, txt, re.DOTALL)
return e._gpg_verify(m[2].encode(), m[1].encode())

Expand Down

0 comments on commit 3ea5615

Please sign in to comment.