Commit 771f7bde authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port identity too

parent ead08a1e
......@@ -1196,6 +1196,12 @@ void ImportMailJob::importKmailConfig(const KArchiveFile *kmailsnippet, const QS
KConfigGroup oldGroup = kmailConfig->group(str);
ImportExportMailUtil::cleanupFolderSettings(oldGroup);
if (!oldGroup.groupList().isEmpty()) {
if (oldGroup.hasKey(QStringLiteral("Identity"))) {
const int identity = oldGroup.readEntry(QStringLiteral("Identity"), -1);
if (identity != -1) {
oldGroup.writeEntry(QStringLiteral("Identity"), mHashIdentity.value(identity));
}
}
const Akonadi::Collection::Id id = convertPathToId(path);
if (id != -1) {
KConfigGroup newGroup(kmailConfig, folderGroupPattern + QString::number(id));
......
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