• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!--
18     Email services (protocols) are defined here.  For the present, these are baked into the Email
19     apk; the goal is for remote services to register themselves into this file.
20
21     The required attributes are as follows (except that EITHER serviceClass or intent is required):
22         protocol: the unique name used to identify the protocol
23         name: the name of the account type option presented to users during account setup
24         accountType: the AccountManager type of accounts created using this service
25         serviceClass: a class implementing IEmailService (or null, if the service is remote)
26         intent: the intent used to connect to a remote IEmailService
27         port: the (default) port used when creating accounts using this service
28         portSsl: as above, when SSL is selected
29         syncIntervalStrings: a reference to an array of sync interval options
30         syncIntervals: a reference to an array of values corresponding to syncIntervalStrings
31         defaultSyncInterval: the default sync interval, selected from enums defined in attrs.xml
32
33     The following optional attributes default to "false":
34         offerTls: whether a TLS option (e.g. STARTTLS) is offered for this service
35         offerCerts: whether or not certificate authentication is an option for this service
36         offerOAuth: whether or not OAuth authentication is an option for this service
37         usesSmtp: whether SMTP is used as the outgoing protocol for this service
38         offerPrefix: whether a "prefix" is offered to the user (for IMAP)
39         offerLocalDeletes: whether an option to delete locally is offered
40         syncChanges: whether non-deletion changes to messages sync back to the server
41         offerAttachmentPreload: whether to offer attachment preloading (pre-caching)
42         usesAutodiscover: whether to attempt using the "autodiscover" API when creating
43           an account
44         offerLookback: whether a sync "lookback" is offered (rather than the POP/IMAP
45           legacy "25 most recent messages synced")
46         defaultLookback: if "lookback" is offered, an enum of possible lookbacks
47         syncCalendar: whether this service is capable of syncing a calendar (offering a checkbox)
48         syncContacts: whether this service is capable of syncing contacts (offering a checkbox)
49-->
50
51<emailservices xmlns:email="http://schemas.android.com/apk/res-auto">
52    <emailservice
53        email:protocol="pop3"
54        email:name="@string/pop3_name"
55        email:accountType="@string/account_manager_type_pop3"
56        email:serviceClass="com.android.email.service.Pop3Service"
57        email:port="110"
58        email:portSsl="995"
59        email:syncIntervalStrings="@array/account_settings_check_frequency_entries"
60        email:syncIntervals="@array/account_settings_check_frequency_values"
61        email:defaultSyncInterval="mins15"
62
63        email:offerTls="true"
64        email:usesSmtp="true"
65        email:offerLocalDeletes="true"
66        email:inferPrefix="pop"
67        email:offerLoadMore="true"
68        email:offerMoveTo="false"
69         />
70    <emailservice
71        email:protocol="imap"
72        email:name="@string/imap_name"
73        email:accountType="@string/account_manager_type_imap"
74        email:serviceClass="com.android.email.service.ImapService"
75        email:port="143"
76        email:portSsl="993"
77        email:syncIntervalStrings="@array/account_settings_check_frequency_entries"
78        email:syncIntervals="@array/account_settings_check_frequency_values"
79        email:defaultSyncInterval="mins15"
80
81        email:offerTls="true"
82        email:usesSmtp="true"
83        email:offerAttachmentPreload="true"
84        email:offerPrefix="true"
85        email:syncChanges="true"
86        email:inferPrefix="imap"
87        email:offerOAuth="true"
88        email:offerLoadMore="true"
89        email:offerMoveTo="true"
90         />
91    <emailservice
92        email:protocol="@string/protocol_eas"
93        email:name="Exchange"
94        email:accountType="@string/account_manager_type_exchange"
95        email:intent="@string/intent_exchange_action"
96        email:intentPackage="@string/intent_exchange_package"
97        email:port="80"
98        email:portSsl="443"
99        email:syncIntervalStrings="@array/account_settings_check_frequency_entries_push"
100        email:syncIntervals="@array/account_settings_check_frequency_values_push"
101        email:defaultSyncInterval="push"
102
103        email:defaultSsl="true"
104        email:offerCerts="true"
105        email:syncChanges="true"
106        email:usesAutodiscover="true"
107        email:offerAttachmentPreload="true"
108        email:offerLookback="true"
109        email:defaultLookback="auto"
110        email:syncContacts="true"
111        email:syncCalendar="true"
112        email:offerMoveTo="true"
113        />
114    <emailservice
115        email:protocol="gmail"
116        email:name="@string/gmail_name"
117        email:isGmailStub="true"
118        email:hide="true"
119        />
120</emailservices>
121