Added ability to define output directory

This commit is contained in:
2026-02-02 22:00:08 +00:00
parent a0e7a494e4
commit 1a7be7fddf
3 changed files with 111 additions and 1 deletions
+6
View File
@@ -44,6 +44,9 @@ By default, the script only downloads new emails since the last run (incremental
# Custom port
./imapdown.py --server imap.example.com --email me@example.com --user me@example.com --password "secret" --ssl --port 12993
# Custom storage directory
./imapdown.py --server imap.example.com --email me@example.com --user me@example.com --password "secret" --ssl --store /path/to/backup
```
### Full Download
@@ -82,11 +85,14 @@ Limit the number of emails downloaded:
| `--port` | No | Custom port (overrides defaults) |
| `--limit` | No | Maximum number of emails to download |
| `--full` | No | Download all emails (default: only new since last run) |
| `--store` | No | Directory to store downloaded emails (default: ./download) |
Note: `--ssl` and `--starttls` are mutually exclusive.
## Output Structure
The default output structure (when `--store` is not specified):
```
./download/
├── user@example.com/