IMAP connection resuse and resiliency