Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
b6c28713
Commit
b6c28713
authored
Sep 29, 2020
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to KMime parseAtom() API change
parent
4dd16e9d
Pipeline
#35909
passed with stage
in 12 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/kamail.cpp
src/kamail.cpp
+5
-4
No files found.
src/kamail.cpp
View file @
b6c28713
...
...
@@ -871,7 +871,7 @@ using namespace KMime::HeaderParsing;
bool
parseUserName
(
const
char
*
&
scursor
,
const
char
*
const
send
,
QString
&
result
,
bool
isCRLF
)
{
Q
String
tmp
;
Q
ByteArray
atom
;
if
(
scursor
!=
send
)
{
// first, eat any whitespace
...
...
@@ -886,10 +886,11 @@ bool parseUserName( const char* & scursor, const char * const send,
default:
// atom
scursor
--
;
// re-set scursor to point to ch again
tmp
.
clear
();
if
(
parseAtom
(
scursor
,
send
,
result
,
false
/* no 8bit */
)
)
{
if
(
getpwnam
(
result
.
toLocal8Bit
().
constData
()))
if
(
parseAtom
(
scursor
,
send
,
atom
,
false
/* no 8bit */
)
)
{
if
(
getpwnam
(
atom
.
constData
())
)
{
result
=
QLatin1String
(
atom
);
return
true
;
}
}
return
false
;
// parseAtom can only fail if the first char is non-atext.
}
...
...
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