[Kde-pim] MessageQueueJob not copying mail to sent-mail
David Jarvie
djarvie at kde.org
Fri Jan 29 18:57:05 GMT 2010
I've converted KAlarm to use MailTransport::MessageQueueJob instead of TransportJob. It all works, except that it doesn't copy the email into kmail's sent-mail folder. In case it's relevant, the transport uses sendmail. The code is:
MessageQueueJob* mailjob = new MessageQueueJob(kapp);
mailjob->setMessage(message);
mailjob->transportAttribute().setTransportId(transport->id());
mailjob->addressAttribute().setFrom(from);
mailjob->addressAttribute().setTo(emailAddresses));
mailjob->sentBehaviourAttribute().setSentBehaviour(SentBehaviourAttribute::MoveToDefaultSentCollection);
Is that a bug, or am I doing something wrong?
--
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100129/98a941f6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list