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
Unmaintained
KDE Pim
Commits
8357a2ee
Commit
8357a2ee
authored
Dec 03, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method
parent
249ceed9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
messagecore/helpers/messagehelpers.cpp
messagecore/helpers/messagehelpers.cpp
+0
-20
messagecore/helpers/messagehelpers.h
messagecore/helpers/messagehelpers.h
+0
-5
No files found.
messagecore/helpers/messagehelpers.cpp
View file @
8357a2ee
...
...
@@ -40,26 +40,6 @@ bool MessageCore::Util::isStandaloneMessage( const Akonadi::Item &item )
return
item
.
hasPayload
<
KMime
::
Message
::
Ptr
>
()
&&
!
item
.
isValid
();
}
QString
MessageCore
::
Util
::
messageId
(
const
KMime
::
Message
::
Ptr
&
message
)
{
if
(
!
message
->
headerByType
(
"Message-Id"
)
)
return
QString
();
QString
messageId
=
message
->
headerByType
(
"Message-Id"
)
->
asUnicodeString
();
// search the end of the message id
const
int
rightAngle
=
messageId
.
indexOf
(
QLatin1Char
(
'>'
)
);
if
(
rightAngle
!=
-
1
)
messageId
.
truncate
(
rightAngle
+
1
);
// now search the start of the message id
const
int
leftAngle
=
messageId
.
lastIndexOf
(
QLatin1Char
(
'<'
)
);
if
(
leftAngle
!=
-
1
)
messageId
=
messageId
.
mid
(
leftAngle
);
return
messageId
;
}
void
MessageCore
::
Util
::
addLinkInformation
(
const
KMime
::
Message
::
Ptr
&
msg
,
Akonadi
::
Item
::
Id
id
,
const
Akonadi
::
MessageStatus
&
status
)
{
Q_ASSERT
(
status
.
isReplied
()
||
status
.
isForwarded
()
||
status
.
isDeleted
()
);
...
...
messagecore/helpers/messagehelpers.h
View file @
8357a2ee
...
...
@@ -46,11 +46,6 @@ MESSAGECORE_EXPORT KMime::Message::Ptr message( const Akonadi::Item &item );
*/
MESSAGECORE_EXPORT
bool
isStandaloneMessage
(
const
Akonadi
::
Item
&
item
);
/**
* Get the message id as a string from the @p message.
*/
MESSAGECORE_EXPORT
QString
messageId
(
const
KMime
::
Message
::
Ptr
&
message
);
/**
* Adds private headers to the given @p message that links it to the original message.
*
...
...
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