TWEAK_NAME = iOSREMailMarker
iOSREMailMarker_FILES = Tweak.xm
iOSREMailMarker_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 MobileMail"
The finalized control looks like this:
Package: com.iosre.mailmarker
Name: iOSREMailMarker
Depends: mobilesubstrate, firmware (>= 8.0)
Version: 1.0
Architecture: iphoneos-arm
Description: Mark non-whitelist emails as read!
Maintainer: sam
Author: sam
Section: Tweaks
Homepage: http://bbs.iosre.com
8.4.5 Test
Compile the tweak and install it on iOS. Open Mail but it seems nothing changed. That is
because we haven’t configured iOSREMailMarker yet. As shown in figure 8-18, there are 44
unread messages currently.
Figure 8- 17 44 unread emails
After entering the “Mailboxes” view, there is a new whitelist button on the left side of
navigation bar. Press it and a new whitelist dialog will pop up, as shown in 8-19.