Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Data Exporter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Data Exporter
Commits
ff52e82e
Commit
ff52e82e
authored
Apr 19, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement import foldermailarchiverc
parent
b95a03f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
core/mail/importmailjob.cpp
core/mail/importmailjob.cpp
+5
-11
No files found.
core/mail/importmailjob.cpp
View file @
ff52e82e
...
...
@@ -1103,8 +1103,6 @@ void ImportMailJob::importFolderArchiveConfig(const KArchiveFile *archiveconfigu
void
ImportMailJob
::
copyMailArchiveConfig
(
const
KSharedConfig
::
Ptr
&
archiveConfigOrigin
,
const
KSharedConfig
::
Ptr
&
archiveConfigDestination
)
{
#if 0
//TODO adapt FolderArchiveAccount
const
QString
archiveGroupPattern
=
QStringLiteral
(
"FolderArchiveAccount "
);
const
QStringList
archiveList
=
archiveConfigOrigin
->
groupList
().
filter
(
archiveGroupPattern
);
for
(
const
QString
&
str
:
archiveList
)
{
...
...
@@ -1114,21 +1112,17 @@ void ImportMailJob::copyMailArchiveConfig(const KSharedConfig::Ptr &archiveConfi
QString
newResourceName
;
if
(
mHashResources
.
contains
(
resourcename
))
{
newResourceName
=
mHashResources
.
value
(
resourcename
);
}
if (!newResourceName.isEmpty()) {
KConfigGroup newGroup(archiveConfigDestination, archiveGroupPattern + QString::number(id));
oldGroup.copyTo(&newGroup);
const Akonadi::Collection::Id id = convertPathToId(path);
const int oldTopLevelCollectionId = newGroup.readEntry("topLevelCollectionId", -1);
if (oldTopLevelCollectionId != -1) {
//TODO
const
Akonadi
::
Collection
::
Id
id
=
convertPathToId
(
oldGroup
.
readEntry
(
QStringLiteral
(
"topLevelCollectionId"
)));
if
(
id
!=
-
1
)
{
KConfigGroup
newGroup
(
archiveConfigDestination
,
archiveGroupPattern
+
newResourceName
);
oldGroup
.
copyTo
(
&
newGroup
);
newGroup
.
writeEntry
(
QStringLiteral
(
"topLevelCollectionId"
),
id
);
}
}
oldGroup
.
deleteGroup
();
}
}
#endif
}
void
ImportMailJob
::
copyArchiveMailAgentConfigGroup
(
const
KSharedConfig
::
Ptr
&
archiveConfigOrigin
,
const
KSharedConfig
::
Ptr
&
archiveConfigDestination
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment