Added IDLE support. If the mailserver lacks IDLE, we're falling back to the before-used method of polling-and-waiting.