Commit cde41db6 authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Remove outdated debug statements

svn path=/trunk/KDE/kdepim/runtime/; revision=1196432
parent c16a338b
...@@ -145,30 +145,25 @@ void MaildirResource::configure( WId windowId ) ...@@ -145,30 +145,25 @@ void MaildirResource::configure( WId windowId )
void MaildirResource::itemAdded( const Akonadi::Item & item, const Akonadi::Collection& collection ) void MaildirResource::itemAdded( const Akonadi::Item & item, const Akonadi::Collection& collection )
{ {
qDebug() << "dfaure: MaildirResource::itemAdded called to collection" << collection.name();
if ( !ensureSaneConfiguration() ) { if ( !ensureSaneConfiguration() ) {
qDebug() << "dfaure: itemAdded canceled because of insane configuration";
cancelTask( i18n("Unusable configuration.") ); cancelTask( i18n("Unusable configuration.") );
return; return;
} }
Maildir dir = maildirForCollection( collection ); Maildir dir = maildirForCollection( collection );
QString errMsg; QString errMsg;
if ( Settings::readOnly() || !dir.isValid( 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 ); cancelTask( errMsg );
return; return;
} }
// we can only deal with mail // we can only deal with mail
if ( !item.hasPayload<KMime::Message::Ptr>() ) { if ( !item.hasPayload<KMime::Message::Ptr>() ) {
qDebug() << "dfaure: itemAdded canceled because message has wrong payload";
cancelTask( i18n("Error: Unsupported type.") ); cancelTask( i18n("Error: Unsupported type.") );
return; return;
} }
const KMime::Message::Ptr mail = item.payload<KMime::Message::Ptr>(); const KMime::Message::Ptr mail = item.payload<KMime::Message::Ptr>();
const QString rid = dir.addEntry( mail->encodedContent() ); const QString rid = dir.addEntry( mail->encodedContent() );
qDebug() << "dfaure: itemAdded sets new remoteId:" << rid;
Item i( item ); Item i( item );
i.setRemoteId( rid ); i.setRemoteId( rid );
changeCommitted( i ); changeCommitted( i );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment