sorry stupid title ... but i cant edit it
i edited mine to 5 minutes saved, it worked once, and then the
<key>AutoFetchInterval</key>
<string>15</string>
got overwritten and it defaulted to Manual check ....
I used this script to check if anything has change
cd /private/var/mobile/Library/Mail; WAIT_TIME=10; while [ 1 ]; do OLD=`ls -l | sum`; sleep $WAIT_TIME ; NEW=`ls -l | sum`; if [ "$NEW" != "$OLD" ]; then echo "SOMETHING CHANGED"; else echo `date`" x"; fi; done
I think I can come up with a better solution to this, via shell script, this plist file is straight forward, easy to hack.
i wrote a script to simplify this, run in from iphone command line
* theory is, plist can be in ascii, so just fake it *
call it x.sh, do a chmod +x x.sh
where i wrote "you" below, put in your own email address...
then do the following
# cd /private/var/mobile/Library/Preferences
# ./x.sh > com.apple.mobilemail.plist
(restart mail)
# ps ax |grep Mail |grep -v grep
5658 ?? S 0:08.90 /Applications/MobileMail.app/MobileMail
# kill 5658
will work .... if it gets overwritten, repeat
----------------------------------------------------------------
script
-----------------------------------------------------------------
#!/bin/sh
DATE_STRING=`date -u +%Y-%m-%dT%H":"%M":"%SZ`
cat << END
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutoFetchInterval</key>
<string>5</string>
<key>FetchingData</key>
<dict>
<key>imap://you%40gmail.com@imap.gmail.com/INBOX</key>
<date>${DATE_STRING}</date>
<key>imap://you@imap.apple.mail.yahoo.com/INBOX</key>
<date>${DATE_STRING}</date>
<key>pop://you%40hotmail.com@in.izymail.com/INBOX</key>
<date>${DATE_STRING}</date>
</dict>
</dict>
</plist>
END