Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading inbox crashes when attachment contains ; in name #220

Closed
dan5082 opened this issue Apr 4, 2022 · 0 comments · Fixed by #219
Closed

Loading inbox crashes when attachment contains ; in name #220

dan5082 opened this issue Apr 4, 2022 · 0 comments · Fixed by #219

Comments

@dan5082
Copy link

dan5082 commented Apr 4, 2022

Traceback (most recent call last):
  File "/Users/dan5082/Desktop/ticket-gen/src/main.py", line 773, in <module>
    main()
  File "/Users/dan5082/Desktop/ticket-gen/src/main.py", line 684, in main
    for uid in inbox:
  File "/usr/local/lib/python3.9/site-packages/imbox/messages.py", line 55, in _fetch_email_list
    yield uid, self._fetch_email(uid)
  File "/usr/local/lib/python3.9/site-packages/imbox/messages.py", line 42, in _fetch_email
    return fetch_email_by_uid(uid=uid,
  File "/usr/local/lib/python3.9/site-packages/imbox/parser.py", line 155, in fetch_email_by_uid
    email_object = parse_email(raw_email, policy=parser_policy)
  File "/usr/local/lib/python3.9/site-packages/imbox/parser.py", line 212, in parse_email
    attachment = parse_attachment(part)
  File "/usr/local/lib/python3.9/site-packages/imbox/parser.py", line 115, in parse_attachment
    name, value = decode_param(param)
  File "/usr/local/lib/python3.9/site-packages/imbox/parser.py", line 70, in decode_param
    name, v = param.split('=', 1)
ValueError: not enough values to unpack (expected 2, got 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant