From 85db1ddba6a1839c7b133bfd1322f1b18082a815 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Mon, 2 Feb 2026 22:02:01 +0000 Subject: [PATCH] Renamed --store to --output --- CLAUDE.md | 4 ++-- imapdown.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 79ff654..40bac25 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,7 @@ Testing/debugging with limited emails: Custom storage directory: ```bash -./imapdown.py --server imap.example.com --email user@example.com --user user@example.com --password "password" --ssl --store /path/to/backup +./imapdown.py --server imap.example.com --email user@example.com --user user@example.com --password "password" --ssl --output /path/to/backup ``` ## Architecture @@ -80,7 +80,7 @@ The entire application is contained in `imapdown.py` (13KB). This is intentional ## Output Structure ``` -{store_dir}/ # default: ./download +{output_dir}/ # default: ./download └── {email_address}/ # sanitized email address ├── .imapdown_state.json ├── INBOX/ diff --git a/imapdown.py b/imapdown.py index 9482dfb..465333a 100755 --- a/imapdown.py +++ b/imapdown.py @@ -32,7 +32,7 @@ def parse_args(): parser.add_argument("--port", type=int, help="Custom port (default: 993 for SSL, 143 otherwise)") parser.add_argument("--limit", type=int, help="Limit number of emails to download (for debugging)") parser.add_argument("--full", action="store_true", help="Download all emails (default: only new emails since last run)") - parser.add_argument("--store", type=str, help="Directory to store downloaded emails (default: ./download)") + parser.add_argument("--output", type=str, help="Directory to store downloaded emails (default: ./download)") return parser.parse_args() @@ -314,8 +314,8 @@ def main(): args = parse_args() email_folder = sanitize_filename(args.email, max_length=100) - if args.store: - base_dir = os.path.join(args.store, email_folder) + if args.output: + base_dir = os.path.join(args.output, email_folder) else: base_dir = os.path.join(os.getcwd(), 'download', email_folder) os.makedirs(base_dir, exist_ok=True)