summaryrefslogtreecommitdiffstats
path: root/res/xml/services.xml
blob: 1bd882306822009a3ac883de1946b0c86bfb3d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<!--
     Email services (protocols) are defined here.  For the present, these are baked into the Email
     apk; the goal is for remote services to register themselves into this file.

     The required attributes are as follows (except that EITHER serviceClass or intent is required):
         protocol: the unique name used to identify the protocol
         name: the name of the account type option presented to users during account setup
         accountType: the AccountManager type of accounts created using this service
         serviceClass: a class implementing IEmailService (or null, if the service is remote)
         intent: the intent used to connect to a remote IEmailService
         port: the (default) port used when creating accounts using this service
         portSsl: as above, when SSL is selected
         syncIntervalStrings: a reference to an array of sync interval options
         syncIntervals: a reference to an array of values corresponding to syncIntervalStrings
         defaultSyncInterval: the default sync interval, selected from enums defined in attrs.xml

     The following optional attributes default to "false":
         offerTls: whether a TLS option (e.g. STARTTLS) is offered for this service
         offerCerts: whether or not certificate authentication is an option for this service
         offerOAuth: whether or not OAuth authentication is an option for this service
         usesSmtp: whether SMTP is used as the outgoing protocol for this service
         offerPrefix: whether a "prefix" is offered to the user (for IMAP)
         offerLocalDeletes: whether an option to delete locally is offered
         syncChanges: whether non-deletion changes to messages sync back to the server
         offerAttachmentPreload: whether to offer attachment preloading (pre-caching)
         usesAutodiscover: whether to attempt using the "autodiscover" API when creating
           an account
         offerLookback: whether a sync "lookback" is offered (rather than the POP/IMAP
           legacy "25 most recent messages synced")
         defaultLookback: if "lookback" is offered, an enum of possible lookbacks
         syncCalendar: whether this service is capable of syncing a calendar (offering a checkbox)
         syncContacts: whether this service is capable of syncing contacts (offering a checkbox)
-->

<emailservices xmlns:email="http://schemas.android.com/apk/res-auto">
    <emailservice
        email:protocol="pop3"
        email:name="@string/pop3_name"
        email:accountType="@string/account_manager_type_pop3"
        email:serviceClass="com.android.email.service.Pop3Service"
        email:port="110"
        email:portSsl="995"
        email:syncIntervalStrings="@array/account_settings_check_frequency_entries"
        email:syncIntervals="@array/account_settings_check_frequency_values"
        email:defaultSyncInterval="mins15"

        email:offerTls="true"
        email:usesSmtp="true"
        email:offerLocalDeletes="true"
        email:inferPrefix="pop"
        email:offerLoadMore="true"
        email:offerMoveTo="false"
         />
    <emailservice
        email:protocol="imap"
        email:name="@string/imap_name"
        email:accountType="@string/account_manager_type_legacy_imap"
        email:serviceClass="com.android.email.service.ImapService"
        email:port="143"
        email:portSsl="993"
        email:syncIntervalStrings="@array/account_settings_check_frequency_entries"
        email:syncIntervals="@array/account_settings_check_frequency_values"
        email:defaultSyncInterval="mins15"

        email:offerTls="true"
        email:usesSmtp="true"
        email:offerAttachmentPreload="true"
        email:offerPrefix="true"
        email:syncChanges="true"
        email:inferPrefix="imap"
        email:offerOAuth="true"
        email:offerLoadMore="true"
        email:offerMoveTo="true"
        email:offerLookback="true"
        email:defaultLookback="auto"
         />
    <emailservice
        email:protocol="@string/protocol_eas"
        email:name="Exchange"
        email:accountType="@string/account_manager_type_exchange"
        email:intent="@string/intent_exchange_action"
        email:intentPackage="@string/intent_exchange_package"
        email:port="80"
        email:portSsl="443"
        email:syncIntervalStrings="@array/account_settings_check_frequency_entries_push"
        email:syncIntervals="@array/account_settings_check_frequency_values_push"
        email:defaultSyncInterval="push"

        email:defaultSsl="true"
        email:offerCerts="true"
        email:syncChanges="true"
        email:usesAutodiscover="true"
        email:offerAttachmentPreload="true"
        email:offerLookback="true"
        email:defaultLookback="auto"
        email:syncContacts="true"
        email:syncCalendar="true"
        email:offerMoveTo="true"
        />
    <emailservice
        email:protocol="gmail"
        email:name="@string/gmail_name"
        email:isGmailStub="true"
        email:hide="true"
        />
</emailservices>