We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d49b5 commit ba4d0d2Copy full SHA for ba4d0d2
mra/imap/main.cpp
@@ -492,8 +492,13 @@ int main(int argc, char **argv)
492
}
493
494
auto imap_force_tls = parse_bool(g_config_file->get_value("imap_force_tls"));
495
- if (imap_support_tls && imap_force_tls)
496
- printf("[imap]: imap MUST be running with TLS\n");
+ if (imap_force_tls) {
+ if (!imap_support_tls) {
497
+ fprintf(stderr, "Cannot combine imap_force_tls=yes with imap_support_tls=no.\n");
498
+ return EXIT_FAILURE;
499
+ }
500
+ printf("[imap]: imap connections MUST be using TLS\n");
501
502
if (!imap_support_tls && listen_tls_port > 0)
503
listen_tls_port = 0;
504
if (listen_tls_port > 0)
0 commit comments