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
PIM Messagelib
Commits
1ef09ed7
Commit
1ef09ed7
authored
Oct 15, 2020
by
Laurent Montel
😁
Browse files
Merge remote-tracking branch 'origin/release/20.08' into master
parents
08c73fe7
6e5baafc
Pipeline
#37706
failed with stage
in 61 minutes and 56 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
1ef09ed7
...
...
@@ -98,7 +98,7 @@ find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
find_package
(
KF5Libkdepim
${
LIBKDEPIM_LIB_VERSION
}
CONFIG REQUIRED
)
find_package
(
KF5AkonadiSearch
${
AKONADI_SEARCH_VERSION
}
CONFIG REQUIRED
)
find_package
(
KF5AkonadiSearch
"5.15.
2
"
CONFIG REQUIRED
)
find_package
(
KF5AkonadiSearch
"5.15.
3
"
CONFIG REQUIRED
)
set_package_properties
(
KF5AkonadiSearch PROPERTIES DESCRIPTION
"The Akonadi Search libraries"
URL
"https://kde.org/"
TYPE REQUIRED PURPOSE
"Provides search capabilities in KMail and Akonadi"
)
set
(
CMAKE_CXX_STANDARD 14
)
...
...
messagecore/autotests/stringutiltest.cpp
View file @
1ef09ed7
...
...
@@ -573,6 +573,21 @@ void StringUtilTest::test_xdgemail()
QCOMPARE
(
values
.
at
(
2
).
first
,
QLatin1String
(
"to"
));
QCOMPARE
(
values
.
at
(
2
).
second
,
QLatin1String
(
"foo@kde.org, bar@kde.org, baz@kde.org, ff@kde.org"
));
}
{
//Bug 427697
const
QByteArray
ba
(
QByteArrayLiteral
(
"mailto:julia.lawall%40inria.fr?In-Reply-To=%3Calpine.DEB.2.22.394.2009272255220.20726@hadrien%3E&Cc=Gilles.Muller%40lip6.fr%2Ccocci%40systeme.lip6.fr%2Ccorbet%40lwn.net%2Clinux-doc%40vger.kernel.org%2Clinux-kernel%40vger.kernel.org%2Cmichal.lkml%40markovi.net%2Cnicolas.palix%40imag.fr%2Csylphrenadin%40gmail.com&Subject=Re%3A%20%5BCocci%5D%20%5BPATCH%201%2F2%5D%20scripts%3A%20coccicheck%3A%20Change%20default%20value%20for%09parallelism"
));
QUrl
urlDecoded
(
QUrl
::
fromPercentEncoding
(
ba
));
QVector
<
QPair
<
QString
,
QString
>
>
values
=
StringUtil
::
parseMailtoUrl
(
urlDecoded
);
QCOMPARE
(
values
.
size
(),
4
);
QCOMPARE
(
values
.
at
(
0
).
first
,
QLatin1String
(
"to"
));
QCOMPARE
(
values
.
at
(
0
).
second
,
QLatin1String
(
"julia.lawall@inria.fr"
));
QCOMPARE
(
values
.
at
(
1
).
first
,
QLatin1String
(
"in-reply-to"
));
QCOMPARE
(
values
.
at
(
1
).
second
,
QLatin1String
(
"<alpine.DEB.2.22.394.2009272255220.20726@hadrien>"
));
QCOMPARE
(
values
.
at
(
2
).
first
,
QLatin1String
(
"cc"
));
QCOMPARE
(
values
.
at
(
2
).
second
,
QLatin1String
(
"Gilles.Muller@lip6.fr,cocci@systeme.lip6.fr,corbet@lwn.net,linux-doc@vger.kernel.org,linux-kernel@vger.kernel.org,michal.lkml@markovi.net,nicolas.palix@imag.fr,sylphrenadin@gmail.com"
));
QCOMPARE
(
values
.
at
(
3
).
first
,
QLatin1String
(
"subject"
));
QCOMPARE
(
values
.
at
(
3
).
second
,
QLatin1String
(
"Re: [Cocci] [PATCH 1/2] scripts: coccicheck: Change default value for
\t
parallelism"
));
}
}
void
StringUtilTest
::
test_stripOffMessagePrefix_data
()
...
...
messagecore/src/utils/stringutil.cpp
View file @
1ef09ed7
...
...
@@ -169,6 +169,8 @@ QVector<QPair<QString, QString> > parseMailtoUrl(const QUrl &url)
//String can be encoded.
str
=
KCodecs
::
decodeRFC2047String
(
str
);
//Bug 427697
str
.
replace
(
QStringLiteral
(
"&"
),
QStringLiteral
(
"&"
));
const
QUrl
newUrl
=
QUrl
::
fromUserInput
(
str
);
int
indexTo
=
-
1
;
...
...
@@ -184,7 +186,7 @@ QVector<QPair<QString, QString> > parseMailtoUrl(const QUrl &url)
indexTo
=
i
;
}
else
{
QPair
<
QString
,
QString
>
pairElement
;
pairElement
.
first
=
queryItem
.
first
;
pairElement
.
first
=
queryItem
.
first
.
toLower
()
;
pairElement
.
second
=
queryItem
.
second
;
values
.
append
(
pairElement
);
i
++
;
...
...
Write
Preview
Supports
Markdown
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