1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-21 21:57:19 +00:00

Additional documentation for Gmail

This commit is contained in:
M66B 2018-12-30 12:52:25 +00:00
parent 76c2354d00
commit c41c3f654f

View file

@ -142,6 +142,12 @@ public class Provider {
}
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
URL url = new URL("https://autoconfig.thunderbird.net/v1.1/" + domain);
Log.i("Fetching " + url);
@ -162,7 +168,6 @@ public class Provider {
boolean smtp = false;
String href = null;
String title = null;
Provider provider = new Provider(domain);
int eventType = xml.getEventType();
while (eventType != XmlPullParser.END_DOCUMENT) {
if (eventType == XmlPullParser.START_TAG) {