Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
cde41db6
Commit
cde41db6
authored
Nov 13, 2010
by
Tobias Koenig
Browse files
Remove outdated debug statements
svn path=/trunk/KDE/kdepim/runtime/; revision=1196432
parent
c16a338b
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/maildir/maildirresource.cpp
View file @
cde41db6
...
...
@@ -145,30 +145,25 @@ void MaildirResource::configure( WId windowId )
void
MaildirResource
::
itemAdded
(
const
Akonadi
::
Item
&
item
,
const
Akonadi
::
Collection
&
collection
)
{
qDebug
()
<<
"dfaure: MaildirResource::itemAdded called to collection"
<<
collection
.
name
();
if
(
!
ensureSaneConfiguration
()
)
{
qDebug
()
<<
"dfaure: itemAdded canceled because of insane configuration"
;
cancelTask
(
i18n
(
"Unusable configuration."
)
);
return
;
}
Maildir
dir
=
maildirForCollection
(
collection
);
QString
errMsg
;
if
(
Settings
::
readOnly
()
||
!
dir
.
isValid
(
errMsg
)
)
{
qDebug
()
<<
"dfaure: itemAdded canceled because resource is read-only"
<<
Settings
::
readOnly
()
<<
"or directory is not valid"
<<
!
dir
.
isValid
(
errMsg
);
cancelTask
(
errMsg
);
return
;
}
// we can only deal with mail
if
(
!
item
.
hasPayload
<
KMime
::
Message
::
Ptr
>
()
)
{
qDebug
()
<<
"dfaure: itemAdded canceled because message has wrong payload"
;
cancelTask
(
i18n
(
"Error: Unsupported type."
)
);
return
;
}
const
KMime
::
Message
::
Ptr
mail
=
item
.
payload
<
KMime
::
Message
::
Ptr
>
();
const
QString
rid
=
dir
.
addEntry
(
mail
->
encodedContent
()
);
qDebug
()
<<
"dfaure: itemAdded sets new remoteId:"
<<
rid
;
Item
i
(
item
);
i
.
setRemoteId
(
rid
);
changeCommitted
(
i
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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