Closed jazoom closed 5 months ago
Hi @jazoom
Thanks for opening the issue.
I'm glad to see someone's using the container image :smiley:
As you are not specifying the --path
parameter, imap-backup is using the default, which is the current directory + the email.
In the container, the current directory is /app
, so I think the backup is being saved in /app/<username>_icloud.com
.
So, if you specify --path /data
, you may have more luck!
Thanks for the reply @joeyates. Indeed I did have more luck specifying that path.
However, I still get "... is invalid" for every single directory. What is the meaning of this? It seems to work.
...except, emails within subfolders in iCloud weren't backed up.
Hi @jazoom
The "... is invalid" messages are distracting noise - they're getting printed when the files are missing. Needs to be corrected so that the message is only shown when the files are present and malformed.
I've published version 14.5.2, which no longer prints "... is invalid" messages when the files are missing.
@jazoom, you say "emails within subfolders in iCloud weren't backed up."
Two things:
$EMAIL_BACKUP_DIR
?-v
and see if you have output for the subfolders....they're getting printed when the files are missing
I'm curious, what does "missing" mean? Are they expected to be there? Their absence doesn't seem to affect backups. I'm trying to understand their significance while I debug this.
The path suggests to me it's looking locally rather than in the mail server. Was it looking for existing backups to sync to and didn't find them? As in, they don't exist yet, rather than missing? If this is the case then I totally agree with silencing this message.
After investigating further it appears subfolders are backed up. It seems to actually be a bug in Thunderbird where it doesn't show any emails in subfolders.
@joeyates thanks for providing this great software and for helping me to get it working. This is truly a painless way to backup emails.
I tried with two different servers: iCloud and MXroute. No local files were created for either.
I got lots of these in the logs for both:
It was the same for every folder on the server.
Any idea what's going on here? A bug or have I done something wrong?
This is how I ran it: