~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to calendarsupport/mailclient.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2013-03-05 15:41:08 UTC
  • mfrom: (0.2.39)
  • Revision ID: package-import@ubuntu.com-20130305154108-b0p6t57iqnf4d8p6
Tags: 4:4.10.1-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
                       const QString &body, bool hidden, bool bccMe,
201
201
                       const QString &attachment, const QString &mailTransport )
202
202
{
203
 
  Q_UNUSED( identity );
204
203
  Q_UNUSED( hidden );
205
204
 
206
205
  if ( !MailTransport::TransportManager::self()->showTransportCreationDialog(
333
332
  // Put the newly created item in the MessageQueueJob.
334
333
  MailTransport::MessageQueueJob *qjob = new MailTransport::MessageQueueJob( this );
335
334
  qjob->transportAttribute().setTransportId( transportId );
336
 
  qjob->sentBehaviourAttribute().setSentBehaviour(
337
 
           MailTransport::SentBehaviourAttribute::MoveToDefaultSentCollection );
 
335
 
 
336
  const Akonadi::Collection sentCollection( identity.fcc().toLongLong() );
 
337
  if (sentCollection.isValid()) {
 
338
      qjob->sentBehaviourAttribute().setSentBehaviour( MailTransport::SentBehaviourAttribute::MoveToCollection );
 
339
      qjob->sentBehaviourAttribute().setMoveToCollection( sentCollection );
 
340
  } else {
 
341
      qjob->sentBehaviourAttribute().setSentBehaviour(
 
342
                  MailTransport::SentBehaviourAttribute::MoveToDefaultSentCollection );
 
343
  }
338
344
 
339
345
  if ( transport && transport->specifySenderOverwriteAddress() ) {
340
346
    qjob->addressAttribute().setFrom(