Renamed --store to --output

This commit is contained in:
2026-02-02 22:02:01 +00:00
parent 1a7be7fddf
commit 85db1ddba6
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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)