[Kde-pim] MessageQueueJob sends email but returns error

David Jarvie djarvie at kde.org
Sat Mar 10 17:17:20 GMT 2012


On Saturday 10 March 2012 15:15:52 David Jarvie wrote:
> When KAlarm sends an email using MailTransport::MessageQueueJob, the email is sent successfully but the following error is reported: "Failed to store result in item". The transport used is sendmail (for a user without any kmail configuration).
> 
> This error text comes from SendJob::doEmitResult() (in kdepim-runtime/agents/maildispatcher/) when a StoreResultJob returns an error. This error comes from ItemFetchJob called in StoreResultJob::doStart(). The ItemFetchJob returns the error:
> 
> "Unknown error (Item query returned empty result set)"
> 
> 
> There are two separate issues here:
> 
> 1) An error in either the MailDispatcher agent or in Akonadi is occurring, which needs to be fixed.
> 
> 2) A more general problem is that Akonadi jobs don't return useful error codes, only error strings, so it isn't possible for applications to test whether they care about the errors. In this particular case, using sendmail, the fact that an Item hasn't been created in outbox doesn't really matter, but because KAlarm doesn't know which error has occurred, it has to inform the user who will then think that the mail hasn't been sent, when it actually has been. If Akonadi jobs could return unique error codes for each possible error, this would be really useful.

Actually, I got confused by the messages. In fact, the error message is output in the system notification area, independently of KAlarm. KAlarm has already output a success message. So the user sees first a message saying the email has been sent, and then the error message which suggests that something went wrong. I'm sure if it confused me, it will confuse users also.

-- 
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: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20120310/caee6f0c/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