Added ability to define output directory
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user