[Kde-pim] MessageQueueJob sends email but returns error

Kevin Krammer krammer at kde.org
Sun Mar 11 15:44:20 GMT 2012


On Saturday, 2012-03-10, David Jarvie wrote:

> 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.

Maybe could accumulate a list of errors somewhere on the wiki and then create 
a header with "topic" namespaces containing error enums.

Or would anyone prefer having all relevant error codes as enums inside the 
respective job's class declaration?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20120311/9207d295/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