Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
61c99899
Commit
61c99899
authored
Jun 17, 2021
by
Laurent Montel
😁
Browse files
Show mbox resource number
parent
88b504b4
Pipeline
#66286
passed with stage
in 23 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/userfeedback/accountinfosource.cpp
View file @
61c99899
...
...
@@ -35,6 +35,7 @@ QVariant AccountInfoSource::data()
int
numberOfKolab
=
0
;
int
numberOfEws
=
0
;
int
numberOfMaildir
=
0
;
int
numberOfMbox
=
0
;
for
(
const
Akonadi
::
AgentInstance
&
type
:
lst
)
{
const
QString
identifier
=
type
.
identifier
();
if
(
identifier
.
startsWith
(
QLatin1String
(
"akonadi_pop3_resource"
)))
{
...
...
@@ -47,6 +48,8 @@ QVariant AccountInfoSource::data()
numberOfEws
++
;
}
else
if
(
identifier
.
startsWith
(
QLatin1String
(
"akonadi_maildir_resource"
)))
{
numberOfMaildir
++
;
}
else
if
(
identifier
.
startsWith
(
QLatin1String
(
"akonadi_mbox_resource"
)))
{
numberOfMbox
++
;
}
// TODO add more
}
...
...
@@ -81,6 +84,12 @@ QVariant AccountInfoSource::data()
m
.
insert
(
QStringLiteral
(
"number"
),
numberOfMaildir
);
l
.
push_back
(
m
);
}
if
(
numberOfMbox
>
0
)
{
QVariantMap
m
;
m
.
insert
(
QStringLiteral
(
"name"
),
QStringLiteral
(
"mbox"
));
m
.
insert
(
QStringLiteral
(
"number"
),
numberOfMbox
);
l
.
push_back
(
m
);
}
// Mail Transport
QVariantMap
m
;
...
...
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