Sony Ericsson / Sony : General : Email accounts created in customize_upgrade.xml) cannot be used or edited
>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
General
> Email accounts created in customize_upgrade.xml) cannot be used or edited
Bookmark topic
I have created email accounts using settings I scraped together from other forums and data gleaned from the registry of a configured device. The problem is that once I create these accounts using customize.xml or customize_upgrade.xml the accounts cannot be used (pressing Send/Receive or Get new email does nothing) and I am unable to edit the account settings. I can, however, delete the accounts.
I am using settings similar to the below. Can anyone tell me what I'm doing wrong?
(Note that I used curly-braces as I could not get angle-brackets to work no matter the combination of bbcode and special html)
{customization}
{registry}
{email}
{reg-op op="purge" reg-path="/apps/msg-email"}{/reg-op}
{settings reg-path="/apps/msg-email"}
{active-account}1{/active-account}
{initial-startup}true{/initial-startup}
{create-welcome-message}true{/create-welcome-message}
{welcome-message-path type="wstr"}NA{/welcome-message-path}
{pending-notification-alert}false{/pending-notification-alert}
{wizard-use-dm}true{/wizard-use-dm}
{accounts}
{account id="1"}
{account-name type="wstr"}LoadWB Email{/account-name}
{allow-connection type="str"}any-network{/allow-connection}
{inbox-size}32{/inbox-size}
{automatic-download type="str"}up-to-size-limit{/automatic-download}
{automatic-download-limit}25{/automatic-download-limit}
{read-only}false{/read-only}
{check-interval}0{/check-interval}
{auto-delete}false{/auto-delete}
{from-name type="wstr"}LoadWB Email{/from-name}
{from-address type="wstr"}loadwb@mailserver.com{/from-address}
{incoming-data-account type="wstr"}Software Update{/incoming-data-account}
{incoming-server type="str"}imap.mailserver.com{/incoming-server}
{incoming-protocol type="str"}imap4{/incoming-protocol}
{incoming-port}993{/incoming-port}
{incoming-encryption}ssl{/incoming-encryption}
{incoming-username type="str"}username{/incoming-username}
{incoming-password type="str"}password{/incoming-password}
{outgoing-data-account type="wstr"}Software Update{/outgoing-data-account}
{outgoing-server type="str"}smtp.malserver.com{/outgoing-server}
{outgoing-port}587{/outgoing-port}
{outgoing-encryption}tls{/outgoing-encryption}
{outgoing-authentication type="str"}use incoming{/outgoing-authentication}
{/account}
{/accounts}
{/settings}
{/email}
{/registry}
{/customization}
[ This Message was edited by: LoadWB on 2013-03-12 14:27 ]
--
Posted: 2011-07-13 05:35:38
Edit :
Quote
Haven't been able to work on this much, but the coming demise of my current C905 is pushing me to complete this project (loose Fast Port... AGAIN!)
Anyway, I extracted the registry and pulled these seemingly-related strings from the index_v14.bin file. Many are self-explanatory, and I've been able to craft a good customize_upgrade.xml to create email accounts, but with a few issues:
Two accounts are set up, but the first account dupes to the second
Cannot delete either account
Check email returns email account not setup error
I also made some errors in my original xml above for some of the types. For instance, incoming-encryption is type="str", and outgoing-authentication is also type="str" with hyphen in the data. Also, inbox-size does nothing and I'm not even certain where I got that; I believe it should be "folder-size".
Here are the values extracted from the registry index. Some seem self-explanatory, others need more work.
email
time-stamp
locked
is-blogger
fes_dir_ext_hash
time-stamp
from-name
from-address
reply-to-address
signature
auto-delete
message-alert-predefined-index
message-alert-directory
message-alert-filename
preferred-message-storage
read-only
new-message-status
notification-status
allow-alternative-server
show-new-events
branding-type
activesync-datastore-id
activesync-internal-id
incoming-data-account
incoming-allow-local-bearer
incoming-server
incoming-port
incoming-encryption
incoming-username
incoming-password
incoming-status
incoming-protocol
incoming-imap-idle
outgoing-data-account
outgoing-allow-local-bearer
outgoing-server
outgoing-port
outgoing-encryption
outgoing-username
outgoing-password
outgoing-status
outgoing-authentication
account-id
account-name
allow-connection
folder-size
check-interval
automatic-download
automatic-download-limit
push-email
from-name
from-address
reply-to-address
signature
auto-delete
message-alert-predefined-index
message-alert-directory
message-alert-filename
preferred-message-storage
read-only
new-message-status
notification-status
allow-alternative-server
show-new-events
branding-type
activesync-datastore-id
activesync-internal-id
incoming-data-account
incoming-allow-local-bearer
incoming-server
incoming-port
incoming-encryption
incoming-username
incoming-password
incoming-status
incoming-protocol
incoming-imap-idle
outgoing-data-account
outgoing-allow-local-bearer
outgoing-server
outgoing-port
outgoing-encryption
outgoing-username
outgoing-password
outgoing-status
outgoing-authentication
pending-notification-alert
wizard-use-dm
registry-operations
[ This Message was edited by: LoadWB on 2013-03-12 14:30 ]
--
Posted: 2013-03-12 15:26:12
Edit :
Quote
I cracked it! See the template below for the correct way to set up POP3/IMAP email accounts in customize.xml or customize_upgrade.xml, at least for the C905 (I haven't tested on the K850) and in this case setting up two accounts.
I haven't played with ActiveSync accounts, yet, nor have I looked closely at some of the other values I find interesting, such as folder-size, message-alert-predefined-index, message-alert-directory, message-alert-filename, preferred-message-storage, allow-alternative-server.
Some suppositions: I believe the incoming|outgoing-allow-local-bearer values are true/false and describe the "local connection" option. I'm guessing signature should also be a type="wstr" but I'm not certain how to code a newline character for multi-line signatures. I believe auto-delete sets an option to automatically purge deleted items (unlike on the K850 which requires you to use the "Clear Inbox" option.) As well, read-only may make the account immutable.
Also note there are some other options with which I have not experimented, like the push email or imap idle. The first time you check your imap email you'll be given the option to set up push email if your server supports it. Most do. Lastly, I noticed that new emails show up in the Alert tab of the notification window and can't seem to turn it off... don't like that, so I'll figure out which setting that is and update this thread accordingly.
{registry}
{email}
{settings reg-path="/apps/msg-email"}
{pending-notification-alert}false{/pending-notification-alert} {!-- I really have NO idea what this does, yet --}
{wizard-use-dm}true{/wizard-use-dm} {!-- I have a vague notion of what this does --}
{active-account}1{/active-account}
{create-welcome-message}true{/create-welcome-message}
{initial-startup}false{/initial-startup} {!-- I really have NO idea what this does, yet --}
{registry-operations} {!-- This is thrown in for good measure, but I'm pretty sure --}
{reg-op op="purge" reg-path="/apps/msg-email/accounts"/} {!-- this leaves any existing messages intact --}
{/registry-operations} {!-- and the correct way to fix that is the manually delete --}
{accounts}
{account id="1"}
{account-id}1{/account-id} {!-- THIS WAS THE KEY TO MAKING IT ALL WORK! --}
{account-name type="wstr"}Email Account 1{/account-name}
{allow-connection type="str"}any-network{/allow-connection} {!-- any-network or home-network --}
{check-interval}0{/check-interval} {!-- polling rate for polled accounts --}
{automatic-download type="str"}up-to-size-limit{/automatic-download}
{automatic-download-limit}10{/automatic-download-limit}
{from-name type="wstr"}Email Account Name{/from-name}
{from-address type="str"}user@maildomain.com{/from-address}
{read-only}false{/read-only} {!-- Set account as unchangeable?? --}
{auto-delete}true{/auto-delete} {!-- Automatically purge deleted items?? --}
{incoming-data-account type="wstr"}Software Update{/incoming-data-account} {!-- must be an account defined on the phone --}
{incoming-server type="str"}mail.maildomain.com{/incoming-server}
{incoming-port}993{/incoming-port}
{incoming-encryption type="str"}ssl{/incoming-encryption} {!-- ssl or tls --}
{incoming-username type="str"}username{/incoming-username}
{incoming-password type="str"}password{/incoming-password} {!-- optional, phone will ask if left out --}
{incoming-protocol type="str"}imap4{/incoming-protocol} {!-- imap or pop3 --}
{outgoing-data-account type="wstr"}Software Update{/outgoing-data-account} {!-- must be an account defined on the phone --}
{outgoing-server type="str"}mail.maildomain.com{/outgoing-server}
{outgoing-port}587{/outgoing-port}
{outgoing-encryption type="str"}tls{/outgoing-encryption} {!-- ssl or tls --}
{outgoing-authentication type="str"}use-incoming{/outgoing-authentication} {!-- or use outgoing-username and outgoing-password --}
{/account}
{account id="2"}
{account-id}2{/account-id} {!-- THIS WAS THE KEY TO MAKING IT ALL WORK! --}
{account-name type="wstr"}Email Account 2{/account-name}
{allow-connection type="str"}any-network{/allow-connection} {!-- any-network or home-network --}
{check-interval}0{/check-interval} {!-- polling rate for polled accounts --}
{automatic-download type="str"}up-to-size-limit{/automatic-download} {!-- other possible data currently unknown --}
{automatic-download-limit}10{/automatic-download-limit}
{from-name type="wstr"}Email Account Name{/from-name}
{from-address type="str"}user@maildomain.com{/from-address}
{read-only}false{/read-only} {!-- Set account as unchangeable?? --}
{auto-delete}true{/auto-delete} {!-- Automatically purge deleted items?? --}
{incoming-data-account type="wstr"}Software Update{/incoming-data-account} {!-- must be an account defined on the phone --}
{incoming-server type="str"}mail.maildomain.com{/incoming-server}
{incoming-port}993{/incoming-port}
{incoming-encryption type="str"}ssl{/incoming-encryption} {!-- ssl or tls --}
{incoming-username type="str"}username{/incoming-username}
{incoming-password type="str"}password{/incoming-password} {!-- optional, phone will ask if left out --}
{incoming-protocol type="str"}imap4{/incoming-protocol} {!-- imap or pop3 --}
{outgoing-data-account type="wstr"}Software Update{/outgoing-data-account} {!-- must be an account defined on the phone --}
{outgoing-server type="str"}mail.maildomain.com{/outgoing-server}
{outgoing-port}587{/outgoing-port}
{outgoing-encryption type="str"}tls{/outgoing-encryption} {!-- ssl or tls --}
{outgoing-authentication type="str"}use-incoming{/outgoing-authentication} {!-- or use outgoing-username and outgoing-password --}
{/account}
{/accounts}
{/settings}
{/email}
{/registry}
[ This Message was edited by: LoadWB on 2013-03-12 21:12 ]
--
Posted: 2013-03-12 22:05:08
Edit :
Quote
I just made a discovery on a new phone. Something in the email settings I've provided broke text messaging. It caused text messages to mix with Email in the Inbox, email messages to continuously pop up in the event notification, broke Conversation mode, and in some cases caused text messages to simply vanish after being read.
When I took the email settings out of my customize.xml and did a Master Reset, everything returned to normal. I'm going to leave it this way for a while as I have finals this week and need a working phone. Ah, well.
--
Posted: 2013-04-30 03:45:19
Edit :
Quote
New Topic
Reply