Mailflag is a notification service for IMAP IDLE, offering five different modes of operation.
- Foreground Service runs with a small icon in the notification area (more persistent).
- Partial Wake Lock (foreground service) keeps the device awake (most persistent, increased power usage).
- Background Service runs without permanent icon (less persistent, may stop when system resources get low).
- Polling checks periodically for 'unseen' mails (lowest power usage).
- External Intent performs a single poll by action "com.bryk.mailflag.POLL".
The first three (idling) modes provide instant response; a single poll is performed after connection loss.
Polling flags all messages 'seen' to avoid repeated notification, and hence will notify on one device only.
You may need to check the WiFi Sleep Policy of your device.
Under Android 6.0+ the app will ask once for exclusion from Battery Optimization ('Doze mode').
Configurable filters limit notifications to specific (groups of) sender addresses and/or subjects.
Each filter may contain multiple ||-separated strings. A string within slashes is evaluated as regular expression, for instance:
john.doe@ || /@(g|hot))mail\.com[>)]?$/
Notification sound, LED color, etc. are configurable using the Options menu.
The new email notification can launch any non-system app with a (package) name containing 'mail'.
The notification shows 'Mailflag:' in its title, which allows detection by e.g. Tasker (%NTITLE variable).
The current version supports a single connection using imaps (oauth/strict/any) for SSL, imap for NON-SSL.
Note: imaps (oauth) supports login to imap.gmail.com using a device Google account.
Backup/Restore allows easy switching between different accounts.
Mailflag will run with a trial limitation until a license is purchased (in-app purchase, $2.99). The application is fully functional, but the service stops after 72 hours. A 'Force stop' will reinitiate this period.
The license removes this 72 hour limitation.
PLEASE RUN MAILFLAG IN TRIAL MODE FIRST, TO VERIFY THAT IT RUNS ON YOUR DEVICE AND MEETS YOUR EXPECTATIONS.
USE_CREDENTIALS: let Mailflag use a device Google account for connecting to GMail.
WRITE_EXTERNAL_STORAGE: enable Mailflag to backup/restore all settings and options.
REQUEST_IGNORE_BATTERY_OPTIMIZATION: keep Mailflag functioning when the screen is off.
Under Android 6.0+ Mailflag will ask to grant these permissions.
Mailflag does not collect data and no data leaves your device in any way.