Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
00f5f6e3
Commit
00f5f6e3
authored
Jan 01, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate code
parent
74ecbae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
23 deletions
+15
-23
templateparser/templateparser.cpp
templateparser/templateparser.cpp
+15
-23
No files found.
templateparser/templateparser.cpp
View file @
00f5f6e3
...
...
@@ -688,17 +688,14 @@ void TemplateParser::processWithTemplate( const QString &tmpl )
const
QString
body
=
plainToHtml
(
getLName
(
str
)
);
htmlBody
.
append
(
body
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJECT"
)
)
)
{
kDebug
()
<<
"Command: FULLSUBJECT"
;
i
+=
strlen
(
"FULLSUBJECT"
);
const
QString
str
=
mMsg
->
subject
()
->
asUnicodeString
();
plainBody
.
append
(
str
);
const
QString
body
=
plainToHtml
(
str
);
htmlBody
.
append
(
body
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJ"
)
)
)
{
kDebug
()
<<
"Command: FULLSUBJ"
;
i
+=
strlen
(
"FULLSUBJ"
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJECT"
)
)
||
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJ"
)
)
)
{
if
(
cmd
.
startsWith
(
QLatin1String
(
"FULLSUBJ"
))
)
{
kDebug
()
<<
"Command: FULLSUBJ"
;
i
+=
strlen
(
"FULLSUBJ"
);
}
else
{
kDebug
()
<<
"Command: FULLSUBJECT"
;
i
+=
strlen
(
"FULLSUBJECT"
);
}
const
QString
str
=
mMsg
->
subject
()
->
asUnicodeString
();
plainBody
.
append
(
str
);
const
QString
body
=
plainToHtml
(
str
);
...
...
@@ -914,19 +911,14 @@ void TemplateParser::processWithTemplate( const QString &tmpl )
htmlBody
.
append
(
body
);
}
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"OFULLSUBJECT"
)
)
)
{
kDebug
()
<<
"Command: OFULLSUBJECT"
;
i
+=
strlen
(
"OFULLSUBJECT"
);
if
(
mOrigMsg
)
{
const
QString
str
=
mOrigMsg
->
subject
()
->
asUnicodeString
();
plainBody
.
append
(
str
);
const
QString
body
=
plainToHtml
(
str
);
htmlBody
.
append
(
body
);
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"OFULLSUBJECT"
)
)
||
cmd
.
startsWith
(
QLatin1String
(
"OFULLSUBJ"
)
)
)
{
if
(
cmd
.
startsWith
(
QLatin1String
(
"OFULLSUBJECT"
)
))
{
kDebug
()
<<
"Command: OFULLSUBJECT"
;
i
+=
strlen
(
"OFULLSUBJECT"
);
}
else
{
kDebug
()
<<
"Command: OFULLSUBJ"
;
i
+=
strlen
(
"OFULLSUBJ"
);
}
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"OFULLSUBJ"
)
)
)
{
kDebug
()
<<
"Command: OFULLSUBJ"
;
i
+=
strlen
(
"OFULLSUBJ"
);
if
(
mOrigMsg
)
{
const
QString
str
=
mOrigMsg
->
subject
()
->
asUnicodeString
();
plainBody
.
append
(
str
);
...
...
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