fix: bytes-token XOAUTH2 + tolerant SEARCH parse (v0.1.1)
- a token provider (or static token) returning bytes crashed token.encode() in the XOAUTH2 path. coerce to str at the source (_resolve_token via _as_str) so both the .encode() and SASL-fallback entrypoints get a str. - client.search() did int(x) on every SEARCH token unguarded; a malformed/non- numeric token aborted the whole search. skip non-numeric tokens (log at debug) instead of crashing. verified by execution: bytes static + async-provider tokens authenticate without crashing (both xoauth2 and SASL-fallback paths); guarded search skips garbage. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "aiomail"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = "async IMAP one-time-code retrieval with password/OAuth2 auth and dynamic matching"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user