Commit c0bd417f authored by Laurent Montel's avatar Laurent Montel 😁

Add nylas mail support

parent 2cb6438d
......@@ -32,6 +32,10 @@ QStringList OtherMailerUtil::isMailerFound()
if (directory.exists()) {
lst << i18nc("name of geary application", "Geary");
}
directory = OtherMailerUtil::nylasMailDefaultPath();
if (directory.exists()) {
lst << i18nc("name of geary application", "Geary");
}
return lst;
}
......@@ -46,3 +50,9 @@ QString OtherMailerUtil::gearyDefaultPath()
const QString path = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/geary/");
return path;
}
QString OtherMailerUtil::nylasMailDefaultPath()
{
const QString path = QDir::homePath() + QLatin1String("/.nylas-mail/");
return path;
}
......@@ -26,6 +26,7 @@ namespace OtherMailerUtil {
MAILIMPORTER_EXPORT QString trojitaDefaultPath();
MAILIMPORTER_EXPORT QString gearyDefaultPath();
MAILIMPORTER_EXPORT QStringList isMailerFound();
MAILIMPORTER_EXPORT QString nylasMailDefaultPath();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment