|
|
|
@ -88,7 +88,6 @@ |
|
|
|
#include <MessageComposer/MessageSender> |
|
|
|
#include <MessageComposer/MessageSender> |
|
|
|
#include <MessageComposer/MessageHelper> |
|
|
|
#include <MessageComposer/MessageHelper> |
|
|
|
#include <MessageComposer/MessageComposerSettings> |
|
|
|
#include <MessageComposer/MessageComposerSettings> |
|
|
|
#include <MessageComposer/MessageFactory> |
|
|
|
|
|
|
|
#include <MessageComposer/Util> |
|
|
|
#include <MessageComposer/Util> |
|
|
|
|
|
|
|
|
|
|
|
#include <MessageList/Pane> |
|
|
|
#include <MessageList/Pane> |
|
|
|
@ -142,7 +141,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
using KMail::SecondaryWindow; |
|
|
|
using KMail::SecondaryWindow; |
|
|
|
using MailTransport::TransportManager; |
|
|
|
using MailTransport::TransportManager; |
|
|
|
|
|
|
|
#ifdef KDEPIM_TEMPLATEPARSER_ASYNC_BUILD |
|
|
|
|
|
|
|
using MessageComposer::MessageFactoryNG; |
|
|
|
|
|
|
|
#else |
|
|
|
using MessageComposer::MessageFactory; |
|
|
|
using MessageComposer::MessageFactory; |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
using KPIM::ProgressManager; |
|
|
|
using KPIM::ProgressManager; |
|
|
|
using KPIM::ProgressItem; |
|
|
|
using KPIM::ProgressItem; |
|
|
|
@ -930,7 +933,11 @@ KMCommand::Result KMForwardCommand::execute() |
|
|
|
|
|
|
|
|
|
|
|
if (answer == KMessageBox::Yes) { |
|
|
|
if (answer == KMessageBox::Yes) { |
|
|
|
Akonadi::Item firstItem(msgList.first()); |
|
|
|
Akonadi::Item firstItem(msgList.first()); |
|
|
|
|
|
|
|
#ifdef KDEPIM_TEMPLATEPARSER_ASYNC_BUILD |
|
|
|
|
|
|
|
MessageFactoryNG factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
|
|
|
|
#else |
|
|
|
MessageFactory factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
MessageFactory factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
|
|
|
|
#endif |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(firstItem)); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(firstItem)); |
|
|
|
|
|
|
|
|
|
|
|
@ -985,7 +992,11 @@ KMCommand::Result KMForwardAttachedCommand::execute() |
|
|
|
{ |
|
|
|
{ |
|
|
|
Akonadi::Item::List msgList = retrievedMsgs(); |
|
|
|
Akonadi::Item::List msgList = retrievedMsgs(); |
|
|
|
Akonadi::Item firstItem(msgList.first()); |
|
|
|
Akonadi::Item firstItem(msgList.first()); |
|
|
|
|
|
|
|
#ifdef KDEPIM_TEMPLATEPARSER_ASYNC_BUILD |
|
|
|
|
|
|
|
MessageFactoryNG factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
|
|
|
|
#else |
|
|
|
MessageFactory factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
MessageFactory factory(KMime::Message::Ptr(new KMime::Message), firstItem.id(), MailCommon::Util::updatedCollection(firstItem.parentCollection())); |
|
|
|
|
|
|
|
#endif |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(firstItem)); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(firstItem)); |
|
|
|
|
|
|
|
|
|
|
|
@ -1053,8 +1064,11 @@ KMCommand::Result KMRedirectCommand::execute() |
|
|
|
if (!msg) { |
|
|
|
if (!msg) { |
|
|
|
return Failed; |
|
|
|
return Failed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef KDEPIM_TEMPLATEPARSER_ASYNC_BUILD |
|
|
|
|
|
|
|
MessageFactoryNG factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
|
|
|
|
#else |
|
|
|
MessageFactory factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
MessageFactory factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
|
|
|
|
#endif |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(item)); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(item)); |
|
|
|
|
|
|
|
|
|
|
|
@ -1600,8 +1614,11 @@ KMCommand::Result KMResendMessageCommand::execute() |
|
|
|
if (!msg) { |
|
|
|
if (!msg) { |
|
|
|
return Failed; |
|
|
|
return Failed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef KDEPIM_TEMPLATEPARSER_ASYNC_BUILD |
|
|
|
|
|
|
|
MessageFactoryNG factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
|
|
|
|
#else |
|
|
|
MessageFactory factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
MessageFactory factory(msg, item.id(), MailCommon::Util::updatedCollection(item.parentCollection())); |
|
|
|
|
|
|
|
#endif |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setIdentityManager(KMKernel::self()->identityManager()); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(item)); |
|
|
|
factory.setFolderIdentity(MailCommon::Util::folderIdentity(item)); |
|
|
|
KMime::Message::Ptr newMsg = factory.createResend(); |
|
|
|
KMime::Message::Ptr newMsg = factory.createResend(); |
|
|
|
|