How To: Custom Auto Check Time on MobileMail.app

Discussion in 'iPhone Applications on iPod touch' started by sct_nh, Nov 4, 2007.

  1. sct_nh New Member

    Member Since:
    Oct 11, 2007
    Message Count:
    359
    I want to hack MobileMail.app so that I can have a custom autocheck time, instead of either 15/30/60 minutes.
    If anyone knows if this has already been done, or how I would go about doing this, please let me know
    Thanks!


    Ok I managed to do it. Here's what ya do.

    1. SSH into your iPod and go to /private/var/root/Library/Preferences

    2. Download the file com.apple.mobilemail.plist

    3. Convert the file (from binary) to XML with plutil. For those not on Macs (or are just lazy) you can use this script: http://140.124.181.188/~khchung/cgi-bin/plutil.cgi

    4. Open the file with a text editor and look for <key>AutoFetchInterval</key>

    5. Underneath that you will see something like <string>60</string>. Edit the number to something else, (i.e. 03 to check for email every 3 minutes)

    6. Save the file and upload to your iPod with SSH. (You don't need to convert the file back to binary.)

    7. Restart iPod

    If this helps anybody, let me know! :D
  2. sct_nh New Member

    Member Since:
    Oct 11, 2007
    Message Count:
    359
    If anybody figures out a way to hack the actual mobilemail.app to add custom options to the settings that would be even better!
  3. RazerM New Member

    Member Since:
    Oct 4, 2007
    Message Count:
    279
    Are you sure it is not
    Code:
    <key>AutoFetchInterval</key>
    I changed the number under that between the <string> tags and it works, I tested.
  4. sct_nh New Member

    Member Since:
    Oct 11, 2007
    Message Count:
    359
    Yes of course. Why the hell did I say RecentMessageCount. Infact, now that I'm looking, I don't even see RecentMessageCount. What the hell :confused:
    MY bad..
  5. goldenboy New Member

    Member Since:
    Feb 2, 2008
    Message Count:
    86
    Also, for 1.1.3, the file is located at /private/var/mobile/Library/Preferences.
    I think i used the dev team jailbreak, so iono if that had anything to do with it. But I found the file there, kinda by happenstance. I looked in every preference folder =P
  6. ipodtouch1234 Active Member

    Member Since:
    Oct 21, 2007
    Message Count:
    1,353
    Device:
    iPad 2 (Black)
    is this possible in 2.0? The only contents of this plist on 2.0 is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>LastAccountViewed</key>
    <string>8D675F48-09FA-431B-A4B8-961ED20E3365</string>
    <key>LinesOfPreview</key>
    <string>3</string>
    <key>RecentMessageCount</key>
    <string>200</string>
    <key>SignatureKey</key>
    <string>(my name here)&lt;div&gt;Sent from my iPod Touch&lt;/div&gt;</string>
    <key>TableOffsetKey</key>
    <real>0.0</real>
    <key>UISuspendedSettings</key>
    <dict>
    <key>UISuspendedDefaultPNGKey</key>
    <string>Default</string>
    </dict>
    </dict>
    </plist>
  7. ubunix Member

    Member Since:
    Aug 6, 2008
    Message Count:
    639
    Device:
    2G iPod touch
    is that the right plist?
  8. ipodtouch1234 Active Member

    Member Since:
    Oct 21, 2007
    Message Count:
    1,353
    Device:
    iPad 2 (Black)
    i figured it out on 2.0 and made a guide. Its in 2.0 jailbreak.