Mail client on MacOS relies on the IMAP idle functionality.
# to imap-hibernate process and close the old imap process. This saves memory,
# because connections use very little memory in imap-hibernate process. The
# downside is that recreating the imap process back uses some resources.
-#imap_hibernate_timeout = 0
+imap_hibernate_timeout = 5s
# Maximum IMAP command line length. Some clients generate very long command
# lines with huge mailboxes, so you may need to raise this if you get