polo2ro / imapbox

Dump imap inbox to a local folder in a regular backupable format: html, json and attachements
MIT License
223 stars 47 forks source link

MailboxClient.saveEmail() failed: None #40

Open davidbru opened 2 years ago

davidbru commented 2 years ago

Hey,

I'm using the docker version and get the following output:


account1/INBOX (on mx.mailserver.tld)
Saving folder: INBOX
~/imapbox/INBOX/2022/23244980.10761646738362496.JavaMail.tomcatlagaspintra1.domain.tld
MailboxClient.saveEmail() failed: None
~/imapbox/INBOX/2022/31433348.10671646824808489.JavaMail.tomcatlagaspintra1.domain.tld
MailboxClient.saveEmail() failed: None
~/imapbox/INBOX/2022/3064516.10971646911215249.JavaMail.tomcatlagaspintra1.domain.tld
MailboxClient.saveEmail() failed: None
3 emails created, 0 emails already exists```

My config file is:
```[imapbox]
local_folder=~/imapbox
days=3
wkhtmltopdf=/opt/bin/wkhtmltopdf

[account1]
host=mx.mailserver.tld
username=mail@domain.tld
password=xxx
ssl=True
remote_folder=INBOX
port=993```

OS: macOS Catalina 10.15.7

Any idea why this happens and how I can debug/fix this?

Kind regards,
David
masrodjie commented 2 years ago

Failed: None it's mean success. If you still didn't get the email, i suggest to use docker and put local_folder to /var/imapbox

axljung commented 1 month ago

I've created a PR and included a small fix to show a progress and get rid of the misleading/confusing message "Failed: None".