mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Additional documentation for Gmail
This commit is contained in:
parent
76c2354d00
commit
c41c3f654f
1 changed files with 6 additions and 1 deletions
|
@ -142,6 +142,12 @@ public class Provider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Provider fromISPDB(String domain) throws IOException, XmlPullParserException {
|
private static Provider fromISPDB(String domain) throws IOException, XmlPullParserException {
|
||||||
|
Provider provider = new Provider(domain);
|
||||||
|
if ("gmail.com".equals(domain)) {
|
||||||
|
provider.documentation = new StringBuilder();
|
||||||
|
provider.documentation.append("<a href=\"https://www.google.com/settings/security/lesssecureapps\">Enable access for \"less secure\" apps</a>");
|
||||||
|
}
|
||||||
|
|
||||||
// https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat
|
// https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat
|
||||||
URL url = new URL("https://autoconfig.thunderbird.net/v1.1/" + domain);
|
URL url = new URL("https://autoconfig.thunderbird.net/v1.1/" + domain);
|
||||||
Log.i("Fetching " + url);
|
Log.i("Fetching " + url);
|
||||||
|
@ -162,7 +168,6 @@ public class Provider {
|
||||||
boolean smtp = false;
|
boolean smtp = false;
|
||||||
String href = null;
|
String href = null;
|
||||||
String title = null;
|
String title = null;
|
||||||
Provider provider = new Provider(domain);
|
|
||||||
int eventType = xml.getEventType();
|
int eventType = xml.getEventType();
|
||||||
while (eventType != XmlPullParser.END_DOCUMENT) {
|
while (eventType != XmlPullParser.END_DOCUMENT) {
|
||||||
if (eventType == XmlPullParser.START_TAG) {
|
if (eventType == XmlPullParser.START_TAG) {
|
||||||
|
|
Loading…
Reference in a new issue