diff options
-rwxr-xr-x | imap-dl | 4 | ||||
-rw-r--r-- | imap-dl.1.pod | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -116,6 +116,10 @@ def scan_msgs(configfile:str, verbose:bool) -> None: '(found "{on_size_mismatch_str}")') ctx = ssl.create_default_context(cafile=ca_certs) + ssl_ciphers = conf.get('retriever', 'ssl_ciphers', fallback=None) + if ssl_ciphers: + ctx.set_ciphers(ssl_ciphers) + server:str = conf.get('retriever', 'server') with imaplib.IMAP4_SSL(host=server, #type: ignore port=int(conf.get('retriever', 'port', fallback=993)), diff --git a/imap-dl.1.pod b/imap-dl.1.pod index 901c7e8..7998d3a 100644 --- a/imap-dl.1.pod +++ b/imap-dl.1.pod @@ -48,6 +48,10 @@ B<retriever.username> is the username of the IMAP account. B<retriever.password> is the password for the IMAP account when using plaintext passwords. +B<retriever.ssl_ciphers> is an OpenSSL cipher string to use instead of the +defaults. (The defaults are good; this should be avoided except to work +around bugs.) + B<destination.path> is the location of the target maildir. B<options.delete> is a boolean, whether to delete the messages that |