Commit d741173e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add info about maildir

parent 5c1121f4
......@@ -48,6 +48,7 @@ QVariant AccountInfoSource::data()
int numberOfPop3 = 0;
int numberOfKolab = 0;
int numberOfEws = 0;
int numberOfMaildir = 0;
for (const Akonadi::AgentInstance &type : lst) {
const QString identifier = type.identifier();
if (identifier.startsWith(QLatin1String("akonadi_pop3_resource"))) {
......@@ -58,6 +59,8 @@ QVariant AccountInfoSource::data()
numberOfKolab++;
} else if (identifier.startsWith(QLatin1String("akonadi_ews_resource"))) {
numberOfEws++;
} else if (identifier.startsWith(QLatin1String("akonadi_maildir_resource"))) {
numberOfMaildir++;
}
//TODO add more
}
......@@ -86,6 +89,12 @@ QVariant AccountInfoSource::data()
m.insert(QStringLiteral("number"), numberOfEws);
l.push_back(m);
}
if (numberOfMaildir > 0) {
QVariantMap m;
m.insert(QStringLiteral("name"), QStringLiteral("maildir"));
m.insert(QStringLiteral("number"), numberOfMaildir);
l.push_back(m);
}
//Mail Transport
QVariantMap m;
......
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