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 Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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 Messagelib
Commits
c21489ac
Commit
c21489ac
authored
Jun 08, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not necessary to store akonadi::collection we just need collection id
parent
6954e53c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
templateparser/src/templateparserjob.cpp
templateparser/src/templateparserjob.cpp
+4
-4
templateparser/src/templateparserjob.h
templateparser/src/templateparserjob.h
+1
-1
No files found.
templateparser/src/templateparserjob.cpp
View file @
c21489ac
...
...
@@ -264,7 +264,7 @@ void TemplateParserJob::process(const KMime::Message::Ptr &aorig_msg,
}
mOrigMsg
=
aorig_msg
;
mFolder
=
afolder
;
mFolder
=
afolder
.
isValid
()
?
afolder
.
id
()
:
-
1
;
const
QString
tmpl
=
findTemplate
();
if
(
tmpl
.
isEmpty
())
{
Q_EMIT
parsingDone
(
mForceCursorPosition
);
...
...
@@ -278,7 +278,7 @@ void TemplateParserJob::process(const QString &tmplName, const KMime::Message::P
{
mForceCursorPosition
=
false
;
mOrigMsg
=
aorig_msg
;
mFolder
=
afolder
;
mFolder
=
afolder
.
isValid
()
?
afolder
.
id
()
:
-
1
;
const
QString
tmpl
=
findCustomTemplate
(
tmplName
);
processWithTemplate
(
tmpl
);
}
...
...
@@ -1380,8 +1380,8 @@ QString TemplateParserJob::findTemplate()
QString
tmpl
;
qCDebug
(
TEMPLATEPARSER_LOG
)
<<
"Folder found:"
<<
mFolder
;
if
(
mFolder
.
isValid
()
)
{
// only if a folder was found
QString
fid
=
QString
::
number
(
mFolder
.
id
()
);
if
(
mFolder
!=
-
1
)
{
// only if a folder was found
QString
fid
=
QString
::
number
(
mFolder
);
Templates
fconf
(
fid
);
if
(
fconf
.
useCustomTemplates
())
{
// does folder use custom templates?
switch
(
mMode
)
{
...
...
templateparser/src/templateparserjob.h
View file @
c21489ac
...
...
@@ -382,7 +382,7 @@ private:
friend
class
::
TemplateParserTester
;
Mode
mMode
;
Akonadi
::
Collection
mFolder
;
//Used to find a template
qint64
mFolder
;
//Used to find a template
uint
mIdentity
;
KMime
::
Message
::
Ptr
mMsg
;
// Msg to write to
KMime
::
Message
::
Ptr
mOrigMsg
;
// Msg to read from
...
...
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