mirror of
https://github.com/simple-login/app.git
synced 2025-10-05 12:58:55 +08:00
force convert header to string, sometimes addrs is Header object
This commit is contained in:
parent
578d63541e
commit
b356ea1b28
1 changed files with 2 additions and 0 deletions
|
@ -465,6 +465,8 @@ def get_addrs_from_header(msg: Message, header) -> [str]:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
for addrs in header_content:
|
for addrs in header_content:
|
||||||
|
# force convert header to string, sometimes addrs is Header object
|
||||||
|
addrs = str(addrs)
|
||||||
for addr in addrs.split(","):
|
for addr in addrs.split(","):
|
||||||
ret.append(addr.strip())
|
ret.append(addr.strip())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue