go-imap
go-imap copied to clipboard
imapclient: Enhancement - Add custom interval to IDLE command
Although RFC states an IDLE timeout of 29 minutes, many IMAP servers timeout much earlier than that. Other forums point to around 10-13 minutes as a 'sweet spot'.
This PR gives more flexibility for those who need to adjust the restart interval. This also resolves issue #602