Mailflag is a notification service for IMAP IDLE, offering four different modes of operation. Foreground Service runs with a small icon in the notification area. If your device allows it to keep notifying when the screen is off, this is the preferred choice. If not, switch to Polling Mode 3, 10 or 20 minutes.