Skip to content

Commit ad827c6

Browse files
committed
feat: disable automatic key retrieval during GPG encryption
Add the --no-auto-key-retrieve flag to prevent GPG from trying to fetch the key during encryption:
1 parent 9d24c8d commit ad827c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imapbackup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def encrypt_file_gpg(input_file, recipient):
369369
'--batch',
370370
'--yes',
371371
'--trust-model', 'always',
372+
'--no-auto-key-retrieve', # Prevent GPG from trying to fetch keys during encryption
372373
'--encrypt',
373374
'--recipient', recipient,
374375
'--output', output_file,

0 commit comments

Comments
 (0)