Page 3 of 6 FirstFirst 12345 ... LastLast
Results 41 to 60 of 106

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Two Exchange Accounts (ActiveSync)

  1. #41
    If any of you guys are using windows, can you tell me what program you are using to SSH into your phones? The one i am using looks nothing like the code you posted. I noticed something about conversion to XML, but couldlt find a way to do this in my SSH program. I tried copying and pasting the exchange info as it was, and i must have corrupted the file, because it deleted everything on a restart.

    So, what are you using for SSH?

  2. #42
    Quote Originally Posted by jonahzona View Post
    If any of you guys are using windows, can you tell me what program you are using to SSH into your phones? The one i am using looks nothing like the code you posted. I noticed something about conversion to XML, but couldlt find a way to do this in my SSH program. I tried copying and pasting the exchange info as it was, and i must have corrupted the file, because it deleted everything on a restart.

    So, what are you using for SSH?
    I used iPhone explorer.
    iPhone Explorer - A USB iPhone browser for Mac and PC

  3. #43
    Got it. Used plist Editor for windows.

    This is an amazing edit for anyone that needs multiple exchange capability. The question is, did Apple limit it because of licensing issues with Microsoft? Because it works fantastically.

  4. The Following User Says Thank You to jonahzona For This Useful Post:

    gman2k4 (12-04-2009)

  5. #44
    this is killin me - ive tried every editor in the world keep getting errors - uggggggggggggghhh

    Edit- I got it working w/ plist for windows using windows 7
    Last edited by gman2k4; 12-04-2009 at 05:07 PM.

  6. #45
    My iPhone is a Part of Me
    Join Date
    Jul 2008
    Location
    Minnesota
    Posts
    732
    Thanks
    12
    Thanked 27 Times in 25 Posts

    Dude you rock, Worked like a charm!

  7. #46
    This worked excellently, thank you so much!

    Quote Originally Posted by drivesoslow View Post
    DAAccountPersistentUUID may need to be altered also on the second account
    Thanks very much for pointing this out, my two accounts were getting very confused till I changed this last UUID. Both accounts were getting tied together and causing password failures.
    Last edited by WillSDCA; 12-08-2009 at 02:53 PM. Reason: Automerged Doublepost

  8. #47
    Newbie here. I have a 3g with 3.1.2 (7D11). Does my phone need to be jaibroken before I can get this trick to work? I've tried accessing it via iphone explorer and can't seem to locate the directories referenced in this post. Any tips are appreciated. TIA

  9. #48
    Yes, you will need to Jailbreak, that is the only way to access and modify files on the iPhone.

  10. #49
    Hi guys!
    I'm trying to connect two my Google Apps mailboxes to iphone.
    The one that was created on the iphone os ok. Then I took plist file, converted it to xml, added part for second mailbox and converted it back to plist. Then copied plist to iphone.
    As a result I have two accounts, but the second one is not working. Just sayng 'The connection to the server failed'. I doublechecked password, it's OK.
    The only difference I can see - first account has 'Mail folders to push' option in settings. The other one does not have.
    I will paste my file here
    _______________________
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>7</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>C7E290F5-057D-492A-8AD6-24F639F8F5D3</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C948A14E-6EEB-45C4-9B27-69A2D7CB2D1A</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C948A14E-6EEB-45C4-9B27-69A2D7CB2D1A</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>

    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>7</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>C7E290F5-057D-492A-8AD6-24F639F8F5D7</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C948A14E-6EEB-45C4-9B27-69A2D7CB2D1Z</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C948A14E-6EEB-45C4-9B27-69A2D7CB2D1Z</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>

    _______________________
    Where I'm wrong?

    Thanks in advance!

    I'm stupid old idiot! )
    I forgot to turn on Sync service in Google Apps.
    Now all 4 accounts are working.

    I'm stupid old idiot! )
    I forgot to turn on Sync service in Google Apps.
    Now all 4 accounts are working.
    Last edited by klimka; 12-24-2009 at 09:21 AM. Reason: Automerged Doublepost

  11. #50
    I wanna do this, but could someone do a nice and clean write up explaining all steps and what tools to do them with (mac/win tools for those of use with one or the other) I'm a little confused on how I should be editing the UUID's. Not how to edit them, but how they should be edited, and a how to would make this thread even more sticky compatible..
    Don't forget to say THANKS!

    J.D.

  12. #51
    I SSH'ed into my phone. I went to your link "
    SSH into your phone and edit /private/var/mobile/Library/Preferences/com.apple.accountsettings.plist".

    I have completely different script. I can't seem to edit the information because I can't find it. Can anybody provide help?

  13. #52
    Ok, after doing this a few times, I've created a pretty easy to follow how to, if it needs to be edited let me know and I'll change it, here goes!

    If you want multiple (and I mean multiple, I have 4 gmail exchange push accounts running right now.) Here's how to do it:

    What you'll need:
    1. Jailbroken iPhone.
    2. ssh client (cyberduck for mac or winscp for windows)
    3. a plist editor (textwrangler for mac or plist editor for windows) you can download plist editor here Free plist Editor for Windows 1.0 released!
    4. An exchange account already setup on your iphone.

    Once you've got all that here's how to do it:

    SSH into your phone and goto /private/var/mobile/Library/Preferences/

    then find this file: com.apple.accountsettings.plist

    Download it onto your mac/pc and open it with your plist editor of choice.

    Once open, the first entries should be your exchange account, in this you'll find a portion of text that looks like this:

    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google..com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>2.5</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>47F76882-2678-41C7-91B9-5D1AD5F76BFA</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>b8fa0b7f 0e99494e e3210953 21fa4725 65454492</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUuPoLfw6ZSU7jIQlTIfpHJWVFRJIICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>Gmail</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>F4EBDF4A-8C1E-486E-89A8-766C1C5D8170</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>F4EBDF4A-8C1E-486E-89A8-766C1C5D8170</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>

    You'll want to copy this whole part and then paste it DIRECTLY BELOW ITSELF.
    Next you'll need to edit 6 different parts of the pasted text. They are the following keys:
    ASAccountEmailAddress
    ASAccountEmailUsername
    DAAccountPersistentUUID
    DisplayName
    Identifier (changed but same as sync Identifer)
    Sync Identifier (changed but same as Identifier)

    Change the ASAccountEmailAddress, ASAccountEmailUsername & DisplayName to the NEW exchange account you wish to add.

    Change the last 4 characters of the DAAccountPersistentUUID to something else (it doesnt matter what, as long as you only change the last 4 and replace it with only 4)

    Change the last 4 characters of the Identifier string next but make note of the changes.
    Change the last 4 characters of the Sync Identifier but make sure they are the EXACT same as the Identifier string from above (THESE 2 MUST BE EXACTLY THE SAME)

    Here's what strings should be edited now:

    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google..com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>2.5</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>47F76882-2678-41C7-91B9-5D1AD5F76BFA</string> (only change the last 4 digits of your string for each new account, it can be any combination)
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>b8fa0b7f 0e99494e e3210953 21fa4725 65454492</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUuPoLfw6ZSU7jIQlTIfpHJWVFRJIICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>Gmail</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>F4EBDF4A-8C1E-486E-89A8-766C1C5D8170</string> (only change the last 4 characters of this string for each new account, make sure that it matches the Sync Identifier string)
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>F4EBDF4A-8C1E-486E-89A8-766C1C5D8170</string> (only change the last 4 characters of this string for each new account, make sure that it matches the Identifier string)
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>

    After you are done, rename the original com.apple.accountsettings.plist on the iphone in the /private/var/mobile/Library/Preferences/ to something like com.apple.accountsettings-old.plist so if you need to go back to it you can. Then upload your edited com.apple.accountsettings.plist with the added exchange accounts to the /private/var/mobile/Library/Preferences/ folder.

    You don't even need to respring just give it a minute and it'll ask you for passwords for the new exchange accounts and then start syncing! If you have duplicate contacts on the email accounts they will sync the duplicates to the iphone as well as calendar events, no way to get around that. BUT YOU NOW HAVE MULTIPLE PUSH EXCHANGE ACCOUNTS!!!

    Just to recap here's what the edited exchange part of the com.apple.accountsettings.plist should look like after you're done creating 4 exchange accounts (including the original):

    <dict>
    <key>Accounts</key>
    <array>
    <dict>
    <key>Class</key>
    <string>DeviceLocalAccount</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Bookmarks</string>
    <string>com.apple.Dataclass.Notes</string>
    </array>
    <key>Identifier</key>
    <string>DeviceLocalAccount</string>
    <key>Short Type String</key>
    <string>On My iPod touch</string>
    <key>Type</key>
    <string>OnMyDevice</string>
    <key>Type String</key>
    <string>On My iPod touch</string>
    </dict>
    <dict>
    <key>AccountPath</key>
    <string>/var/mobile/Library/Mail/Mailboxes</string>
    <key>Class</key>
    <string>LocalAccount</string>
    <key>DraftsMailboxName</key>
    <string>Drafts</string>
    <key>Identifier</key>
    <string>6B453691-1B49-481D-A348-7C6CDB07401F</string>
    <key>SentMessagesMailboxName</key>
    <string>Sent Messages</string>
    <key>Short Type String</key>
    <string>Local</string>
    <key>Sync Identifier</key>
    <string>LocalAccountId</string>
    <key>TrashMailboxName</key>
    <string>Deleted Messages</string>
    <key>Type</key>
    <string>Mail</string>
    <key>Type String</key>
    <string>Local</string>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>DC8125EE-D702-4314-BCFC-D86DD319DD41</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>68ac69df be72b30d 080e5410 84fd7891 fcbd6d9b</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUaKxp375ysw0IDlQQhP14kfy9bZsICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE443</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE443</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>DC8125EE-D702-4314-BCFC-D86DD319ZZ32</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>68ac69df be72b30d 080e5410 84fd7891 fcbd6d9b</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUaKxp375ysw0IDlQQhP14kfy9bZsICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAJ921</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAJ921</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>DC8125EE-D702-4314-BCFC-D86DD319JJ92</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>68ac69df be72b30d 080e5410 84fd7891 fcbd6d9b</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUaKxp375ysw0IDlQQhP14kfy9bZsICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE921</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE921</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>[email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>DC8125EE-D702-4314-BCFC-D86DD319EE92</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>68ac69df be72b30d 080e5410 84fd7891 fcbd6d9b</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUaKxp375ysw0IDlQQhP14kfy9bZsICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>[email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE929</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>C0579FD1-9040-4DF1-8F39-480932FAE929</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>


    That's it!

    If this helped you hit the thanks button!
    Last edited by phreakwenci; 12-31-2009 at 12:21 AM.
    Don't forget to say THANKS!

    J.D.

  14. The Following User Says Thank You to phreakwenci For This Useful Post:

    usaljones (01-07-2010)

  15. #53
    Default Batter Life
    Hi,

    I tried this, worked fine. But i decided I didn't need the second account now (my exchange server required an 8 char password), so I deleted the second account. But after this change, my battery is draining like hell.

    I had charged it to 100% when I went to bed and when I woke up, the phone had turned itself off due to low battery. Battery is draining roughly 2% every few minutes. How can I fix this? Like I said, I already deleted the second exchange account which I had added..

    Please help..

  16. #54
    You might be able to trick it also by manually editing one of the .mobileconfig XML files that you can get from iPhone Configuration Utility. If that works, you wouldn't have to have a jailbroken phone.. any thoughts?
    Don't forget to say THANKS!

    J.D.

  17. #55
    seems like I get the Calendar and Contacts to sync over, but can't get the email to push over, any ideas?

    Here's a copy of my plist file

    <?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>Accounts</key>
    <array>
    <dict>
    <key>Class</key>
    <string>DeviceLocalAccount</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Bookmarks</string>
    <string>com.apple.Dataclass.Notes</string>
    </array>
    <key>Identifier</key>
    <string>DeviceLocalAccount</string>
    <key>Short Type String</key>
    <string>On My iPod touch</string>
    <key>Type</key>
    <string>OnMyDevice</string>
    <key>Type String</key>
    <string>On My iPod touch</string>
    </dict>
    <dict>
    <key>AccountPath</key>
    <string>/var/mobile/Library/Mail/Mailboxes</string>
    <key>Class</key>
    <string>LocalAccount</string>
    <key>DraftsMailboxName</key>
    <string>Drafts</string>
    <key>Identifier</key>
    <string>2BB196C5-3EB3-43A7-812C-28CC87850E48</string>
    <key>SentMessagesMailboxName</key>
    <string>Sent Messages</string>
    <key>Short Type String</key>
    <string>Local</string>
    <key>Sync Identifier</key>
    <string>LocalAccountId</string>
    <key>TrashMailboxName</key>
    <string>Deleted Messages</string>
    <key>Type</key>
    <string>Mail</string>
    <key>Type String</key>
    <string>Local</string>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>first [email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>3</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>first [email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>D104B865-6943-4CD1-973A-F120A7792090</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>7e891647 f8f36d13 8367efca 85a4c1e9 e4be5f97</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUfokWR/jzbRODZ+/KhaTB6eS+X5cICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>first [email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>596CF0B6-6841-4540-AE0A-31E15FB6F926</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>596CF0B6-6841-4540-AE0A-31E15FB6F926</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>2nd [email protected]</string>
    <key>ASAccountHost</key>
    <string>m.google.com</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>3</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>2nd [email protected]</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>D104B865-6943-4CD1-973A-F120A7793131</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>7e891647 f8f36d13 8367efca 85a4c1e9 e4be5f97</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUfokWR/jzbRODZ+/KhaTB6eS+X5cICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>2nd [email protected]</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>596CF0B6-6841-4540-AE0A-31E15FB6F931</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>596CF0B6-6841-4540-AE0A-31E15FB6F931</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    </array>
    <key>Version</key>
    <integer>4</integer>
    </dict>
    </plist>

    any help would be great.....

    PS
    also I've noticed that if i put everything back to normal, i still cant sync mail, just everything else

    PSS
    Woke up this morning and it pulled down my email, but it seems slow....
    going to go back to how things were, i found this app that lets you know the second that you get a email, not like 20 mins later....
    Last edited by usaljones; 01-07-2010 at 07:54 AM. Reason: Update

  18. #56
    Default Having problems too....
    After putting this file on iphone... all accounts disappear...

    What is wrong? Can someone pls help?

    Thanks.

    <?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>Accounts</key>
    <array>
    <dict>
    <key>Class</key>
    <string>DeviceLocalAccount</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Bookmarks</string>
    <string>com.apple.Dataclass.Notes</string>
    </array>
    <key>Identifier</key>
    <string>DeviceLocalAccount</string>
    <key>Short Type String</key>
    <string>On My iPod touch</string>
    <key>Type</key>
    <string>OnMyDevice</string>
    <key>Type String</key>
    <string>On My iPod touch</string>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountEmailAddresses</key>
    <array>
    <string>[email protected]</string>
    <string>[email protected]</string>
    <string>[email protected]</string>
    </array>
    <key>ASAccountHost</key>
    <string>ipaddress</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>XXXXX</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>B2E47115-6291-4B36-A361-31B51EDDB904</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>0eda86c0 371ad4e6 e65754bd e19de115 909cfe92</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUDtqGwDca1ObmV1S94Z3hFZCc/pIICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    <key>513f6f78 6c49b474 572c30bc 6cea8582 0e380766</key>
    <data>
    YnBsaXN0MDChAdMCAwQFBQdbU1NMSG9zdG5hbWVdQW5j
    aG9yVHJ1c3RlZFpTSEExRGlnZXN0CAhPEBRRP294bEm0
    dFcsMLxs6oWCDjgHZggKER0rNjc4AAAAAAAAAQEAAAAA
    AAAACAAAAAAAAAAAAAAAAAAAAE8=
    </data>
    </dict>
    <key>DisplayName</key>
    <string>@XXX</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>E63CB447-515A-4071-8875-B9F5A3163B1E</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>E63CB447-515A-4071-8875-B9F5A3163B1E</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>ASAccountEmailAddress</key>
    <string>[email protected]</string>
    <key>ASAccountHost</key>
    <string>ipaddress</string>
    <key>ASAccountMailNumberOfPastDaysToSync</key>
    <integer>0</integer>
    <key>ASAccountUseSSL</key>
    <true/>
    <key>ASAccountUsername</key>
    <string>ZZZZZ</string>
    <key>ASLastKnownProtocolVersion</key>
    <string>12.1</string>
    <key>Class</key>
    <string>ASAccount</string>
    <key>DAAccountPersistentUUID</key>
    <string>B2E47115-6291-4B36-A361-31B51EDDC015</string>
    <key>DAAccountVersion</key>
    <integer>2</integer>
    <key>DATrustSettingsExceptions</key>
    <dict>
    <key>0eda86c0 371ad4e6 e65754bd e19de115 909cfe92</key>
    <data>
    YnBsaXN0MDChAdICAwQFW1NTTEhvc3RuYW1lWlNIQTFE
    aWdlc3QITxAUDtqGwDca1ObmV1S94Z3hFZCc/pIICg8b
    JicAAAAAAAABAQAAAAAAAAAGAAAAAAAAAAAAAAAAAAAA
    Pg==
    </data>
    </dict>
    <key>DisplayName</key>
    <string>@ZZZZ</string>
    <key>Enabled Dataclasses</key>
    <array>
    <string>com.apple.Dataclass.Calendars</string>
    <string>com.apple.Dataclass.Contacts</string>
    <string>com.apple.Dataclass.Mail</string>
    <string>com.apple.Dataclass.ContactsSearch</string>
    </array>
    <key>Identifier</key>
    <string>E63CB447-515A-4071-8875-B9F5A3164C2F</string>
    <key>Short Type String</key>
    <string>Exchange</string>
    <key>Sync Identifier</key>
    <string>E63CB447-515A-4071-8875-B9F5A3164C2F</string>
    <key>Type</key>
    <string>Exchange</string>
    <key>Type String</key>
    <string>Exchange ActiveSync</string>
    <key>kASAccountVersionKey</key>
    <integer>7</integer>
    </dict>
    <dict>
    <key>AccountPath</key>
    <string>/var/mobile/Library/Mail/Mailboxes</string>
    <key>Class</key>
    <string>LocalAccount</string>
    <key>DraftsMailboxName</key>
    <string>Drafts</string>
    <key>Identifier</key>
    <string>ABDC1FB3-FBCB-4B22-B647-1DF1965C54A6</string>
    <key>SentMessagesMailboxName</key>
    <string>Sent Messages</string>
    <key>Short Type String</key>
    <string>Local</string>
    <key>Sync Identifier</key>
    <string>LocalAccountId</string>
    <key>TrashMailboxName</key>
    <string>Deleted Messages</string>
    <key>Type</key>
    <string>Mail</string>
    <key>Type String</key>
    <string>Local</string>
    </dict>
    <dict>
    <key>Class</key>
    <string>SMTPAccount</string>
    <key>DisplayName</key>
    <string>@gmail</string>
    <key>Hostname</key>
    <string>smtp.gmail.com</string>
    <key>Identifier</key>
    <string>9F26A49C-B6FB-4AFC-96F3-E79759100D61</string>
    <key>MaxMessageBytes</key>
    <integer>35651584</integer>
    <key>SSLEnabled</key>
    <true/>
    <key>Short Type String</key>
    <string>SMTP</string>
    <key>ShouldUseAuthentication</key>
    <true/>
    <key>Sync Identifier</key>
    <string>9F26A49C-B6FB-4AFC-96F3-E79759100D61</string>
    <key>Type</key>
    <string>SMTP</string>
    <key>Type String</key>
    <string>SMTP</string>
    <key>Username</key>
    <string>[email protected]</string>
    </dict>
    <dict>
    <key>AccountPath</key>
    <string>/var/mobile/Library/Mail/[email protected]@imap.gmail.com</string>
    <key>Class</key>
    <string>GmailAccount</string>
    <key>DisplayName</key>
    <string>@gmail</string>
    <key>FullUserName</key>
    <string>Gmail</string>
    <key>Identifier</key>
    <string>A1C9C9D2-1ACC-484D-9871-AF0F89E00404</string>
    <key>SSLEnabled</key>
    <true/>
    <key>Short Type String</key>
    <string>Gmail</string>
    <key>Sync Identifier</key>
    <string>A1C9C9D2-1ACC-484D-9871-AF0F89E00404</string>
    <key>Type</key>
    <string>Mail</string>
    <key>Type String</key>
    <string>Gmail</string>
    <key>Username</key>
    <string>[email protected]</string>
    </dict>
    </array>
    <key>Version</key>
    <integer>4</integer>
    </dict>
    </plist>

  19. #57
    What's Jailbreak?
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up Another Way
    Scenario is i use Gmail (ofcourse) for personal use and i have an MS Exchange account for work which i want to be setup under the exchange option of the iphone for ease of use. Having Gmail setup through iphone exchange seems more of a solution than imap/smtp settings, calendar is easier to get working as well. I am using "Property List Editor" to create my plist which is available from the developer tools on the OSX install disc. No conversion of the plist file is required, no textpad/notepad just property list editor.

    Basically we will create individual plist files for each account you want to setup on the iphone and then we will just cut and paste the configs from the individual plist files in one plist file.

    1) Delete all mail accounts from iphone and via SSH delete the com.apple.accountsettings.plist file located @ private/var/mobile/Library/Preferences/ from the iphone.
    2) Setup a Gmail a MS Exchange account in the Exchange option on the iphone. Confirm the account behaves as expected.
    3) via ssh copy the com.apple.accountsettings.plist from the iphone @ private/var/mobile/Library/Preferences/ to your desktop
    4) Rename com.apple.accountsettings.plist on your desktop by appending account info and adding ".plist". eg com.apple.accountsettings.plist.gmail.username.plist
    5) Repeat steps 1 through 4 for all accounts you wish to use with the exchange feature of the iphone.

    * You should now have at least 2 plist files with different names that have the plist extension.

    6) Open all plist files with 'Property List Editor' (available from the OSX developer tools on the install disc)

    * Each plist file will either have 1 or 2 items. (Expand where grey arrow is)


    * If a plist file has 2 items then you need to move "Item 1", if a plist file has 1 item then you need to move "Item 0"

    7) Select one plist file as the new master plist and drag the Item from the other plist files to the Accounts line in the master plist file


    8) Save the master plist file as com.apple.accountsettings.plist and quit 'Property List Editor'
    9) via ssh copy the com.apple.accountsettings.plist from your desktop to the iphone @ private/var/mobile/Library/Preferences/ (Overwrite the old com.apple.accountsettings.plist)
    10) Goto mail preferences on the iphone (Settings>Mail, Contacts, Calendars) and you should see all the mail accounts you created previously
    11) Success, now open the mail app and enter passwords when requested.

    *When you open the mail app it may say "Cannot connect to server" or something similar but just give it 15 - 30 seconds and it should request the password for each of the accounts. You may have to close the mail app and go back into.

    Feedback welcome
    Last edited by Digitalpulse; 01-10-2010 at 05:22 AM. Reason: Added pics, clarified a few steps, removed junk info

  20. #58
    For those of use with push issues, it has nothing to do with this file mod.. google itself is experiencing difficulties, it occured right after the launch of the nexus one... Problem with Push - Google Mobile Help

    @DigitalPulse That seems like a lot of work for the same thing. Can you give a better visual explanation for what you're trying to say cuz I see no benefit in your route, but I could be missing something.
    Don't forget to say THANKS!

    J.D.

  21. #59
    I think a way of doing this without jailbreaking may be to backup from iTunes and use sqlbrowser to find this plist from the backup archive and then manually edit the plist as described.

    In theory, this would give you a non-jb method, I can't verify it cuz I have a jb'ed phone.

  22. #60
    What's Jailbreak?
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    @phreakwenci I guess with the way i described you don't have to copy any text or search for anything in particular. Just create accounts and merge using mouse clicks. imo it is easier because i had some issues following the other process but this process just worked. I will revise it and see what i can do.

Page 3 of 6 FirstFirst 12345 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •