New error
Closed this issue · 3 comments
I am running the script on a Synology Server. Initially had zero issues and now getting the following output:
023-11-06 09:18:16,709 - INFO - Folders: ['Inbox']
2023-11-06 09:18:16,709 - INFO - Listing messages matching the following criteria: folder=Inbox
2023-11-06 09:18:16,738 - INFO - Fetch list of messages from folder 'Inbox'
2023-11-06 09:18:17,061 - ERROR - Failed to process messages for folder 'Inbox'
2023-11-06 09:18:17,061 - ERROR - invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/bin/attachment-downloader", line 190, in
for (uid, message) in messages:
File "/usr/lib/python3.8/site-packages/imbox/messages.py", line 55, in _fetch_email_list
yield uid, self._fetch_email(uid)
File "/usr/lib/python3.8/site-packages/imbox/messages.py", line 42, in _fetch_email
return fetch_email_by_uid(uid=uid,
File "/usr/lib/python3.8/site-packages/imbox/parser.py", line 155, in fetch_email_by_uid
email_object = parse_email(raw_email, policy=parser_policy)
File "/usr/lib/python3.8/site-packages/imbox/parser.py", line 212, in parse_email
attachment = parse_attachment(part)
File "/usr/lib/python3.8/site-packages/imbox/parser.py", line 122, in parse_attachment
filename_parts.insert(int(s_name[1]),value[1:-1] if value.startswith('"') else value)
ValueError: invalid literal for int() with base 10: ''
2023-11-06 09:18:17,062 - INFO - Finished processing messages
I just did the update to the script and still has this output
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Please can I ask you to confirm the version of attachment downloader that you are using?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.