View Single Post
  #3 (permalink)  
Old 03-16-2007, 01:13 PM
schettj's Avatar
schettj
morsus mihi
Offline
Threadstarter
Location: Not from around these parts
 
Join Date: Oct 2006
Posts: 3,017
Reputation: 3616
schettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIP
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Hmmm...

well out of the box, it *almost* works.

Editing the Create.snapshot xml file to read:
Code:
<?xml version="1.0" encoding="utf-16"?>
<wap-provisioningdoc>
  
  <characteristic-query type="EMAIL2" />
</wap-provisioningdoc>
Got me a nice dump of my two email accounts, except they were missing their passwords and ssl settings (which is correct, according to: )

http://msdn2.microsoft.com/en-us/library/ms834760.aspx

A better DTD for the xml schema used is here: http://msdn2.microsoft.com/en-us/library/aa455896.aspx

Anywhoo... if I take a snapshot, then edit the resulting snapshot file and add
Code:
     <parm name="AUTHSECRET" value="whateveryourpwis"/>
     <parm name="SMTPALTENABLED" value="1"/>
     <parm name="SMTPALTPASSWORD" value="whateverditto"/>
            <characteristic type="TAGPROPS">
                <parm name="8128000B" value="1"/>
                <parm name="812C000B" value="1"/>
            </characteristic>
(note only need SMTPALTAUTHSECRET if you use seperate auth for send (SMTPALTENABLED) from recv, and the two TAGPROPS set 'requres SSL' checkbox for IN and OUT servers, respectively)

For each account you edit as outlined above, it should *restore* correctly.

Just tested it - nuked my two email accounts, then restored using the edited XML file, and it works! Send/recv up and running in an instant. Nice!

Might be worth moving this to the general forums, might not


Edit...

Here is my final 2-account xml file with email/passwds nuked to protect the guilty
Code:
<?xml version="1.0" encoding="utf-16"?>
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{C7C1E248-D918-3E0E-F421-D6101002C7F3}">
<parm name="SERVICENAME" value="Home"/>
<parm name="SERVICETYPE" value="IMAP4"/>
<parm name="INSERVER" value="mymail.com"/>
<parm name="AUTHNAME" value="daffy"/>
<parm name="AUTHSECRET" value="duck"/>
<parm name="DOMAIN" value=""/>
<parm name="OUTSERVER" value="mymail.com"/>
<parm name="REPLYADDR" value="daffy@mymail.com"/>
<parm name="SMTPALTENABLED" value="1"/>
<parm name="SMTPALTAUTHNAME" value="daffy"/>
<parm name="SMTPALTPASSWORD" value="duck"/>
<parm name="SMTPALTDOMAIN" value=""/>
<parm name="NAME" value="Quack Quack"/>
<parm name="LINGER" value="60"/>
<parm name="RETRIEVE" value="2048"/>
<parm name="KEEPMAX" value="25"/>
<parm name="DWNDAY" value="3"/>
<parm name="AUTHREQUIRED" value="1"/>
<characteristic type="TAGPROPS">
                <parm name="812C000B" value="1"/>
</characteristic>
</characteristic>

<characteristic type="{5D5172CA-3B08-7304-AB0A-D21EBA6D0EA5}">
<parm name="SERVICENAME" value="Work"/>
<parm name="SERVICETYPE" value="IMAP4"/>
<parm name="INSERVER" value="saltmines.com"/>
<parm name="AUTHNAME" value="daffy@saltmines.com"/>
<parm name="AUTHSECRET" value="duck"/>
<parm name="DOMAIN" value=""/>
<parm name="OUTSERVER" value="saltmines.com"/>
<parm name="REPLYADDR" value="daffy@saltmines.com"/>
<parm name="SMTPALTAUTHNAME" value=""/>
<parm name="SMTPALTDOMAIN" value=""/>
<parm name="NAME" value="Daffy Duck"/>
<parm name="LINGER" value="60"/>
<parm name="RETRIEVE" value="2048"/>
<parm name="KEEPMAX" value="25"/>
<parm name="DWNDAY" value="3"/>
<parm name="AUTHREQUIRED" value="1"/>
<characteristic type="TAGPROPS">
                <parm name="8128000B" value="1"/>
                <parm name="812C000B" value="1"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>