Bug 246889 - sending mails failed
Summary: sending mails failed
Status: VERIFIED FIXED
Alias: None
Product: KMail Mobile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Maemo 5 Linux
: VHI critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 256687 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-06 11:39 UTC by Ludwig Reiter
Modified: 2011-01-19 10:39 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Composer not sending mail (21.11 KB, image/png)
2010-11-12 09:36 UTC, Bjoern Ricks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Reiter 2010-08-06 11:39:47 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Version:4.5.~20100730.1157245-1maemo1.1157229 (enterprise5)

Reproducible: Always

Steps to Reproduce:
1. Open write mail dialog.
2. write a mail.
3. Press on send.


Actual Results:  
A yellow dialog appears telling that the mail is sent.
But the mail is not added to the sent-mails folder.
The mail doesn't arrive at the test address.

Expected Results:  
The mail is added to the sent-mails folder and is really sent.
Comment 1 Sabine Faure 2010-08-12 20:54:24 UTC
I tested this today as well and got the same result.

Here is some additional information that I got from a terminal:

kmail-mobile(7948) KDeclarativeFullScreenView::delayedInit:
kmail-mobile(7948) Message::ComposerViewBase::initAutoSave: initalising autosave
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kmail-mobile(7948) KDEIntegrationPlugin::initializeEngine: QDeclarativeEngine(0x3d2ea8) org.kde
akonadi_maildispatcher_agent(7994) MailDispatcherAgent::MailDispatcherAgent: maildispatcheragent: At your service, sir!
akonadi_kolabproxy_resource(7991) KolabProxyResource::retrieveCollections: RETRIEVECOLLECTIONS
akonadi_maildispatcher_agent(7994) OutboxQueue::Private::localFoldersChanged: Requesting outbox folder.
akonadi_maildispatcher_agent(7994) OutboxQueue::Private::localFoldersChanged: Requesting sent-mail folder
akonadi_maildispatcher_agent(7994) MailDispatcherAgent::doSetOnline: Online. Dispatching messages.
akonadi_maildispatcher_agent(7994) MailDispatcherAgent::Private::dispatch: Empty queue.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:68: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:65: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:68: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:65: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:68: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:65: TypeError: Result of expression 'parent' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:71: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:74: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:71: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:74: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:71: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
file:///usr/lib/kde4/imports/org/kde/SlideoutPanel.qml:74: TypeError: Result of expression 'parent.relayout' [undefined] is not a function.
kmail-mobile(7948) ComposerView::getAction: KActionCollection(0x35dcd0) KAction(0x59d6f8, name = "save_in_drafts")
kmail-mobile(7948) ComposerView::getAction: KActionCollection(0x35dcd0) KAction(0x594de0, name = "sign_email")
kmail-mobile(7948) ComposerView::getAction: KActionCollection(0x35dcd0) KAction(0x597e80, name = "encrypt_email")
kmail-mobile(7948) ComposerView::getAction: KActionCollection(0x35dcd0) KAction(0x537e30, name = "add_attachment")
Database error: Cannot open database.
Database error: Cannot open database.
Database error: Cannot open database.
Database error: Cannot open database.
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Lost connection to MySQL server at 'sending authentication information', system error: 32"
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Lost connection to MySQL server at 'sending authentication information', system error: 32"
Last driver error: "QMYSQL: Unable to connect"
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Lost connection to MySQL server at 'sending authentication information', system error: 32"
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Lost connection to MySQL server at 'sending authentication information', system error: 32"
Last database error: "Lost connection to MySQL server at 'sending authentication information', system error: 32"
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
kmail-mobile(7948) KDeclarativeFullScreenView::slotStatusChanged: 1 QDateTime("Thu Aug 12 20:52:29 2010") 
akonadi_maildispatcher_agent(7994)/libakonadi Akonadi::GetLockJob::Private::timeout: Timeout trying to get lock. 
akonadi_maildispatcher_agent(7994)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::lockResult: Failed to get lock: "Timeout trying to get lock." 
akonadi_maildispatcher_agent(7994) OutboxQueue::Private::localFoldersRequestResult: Failed to get outbox folder. 
akonadi_maildispatcher_agent(7994)/libakonadi Akonadi::GetLockJob::Private::timeout: Timeout trying to get lock. 
akonadi_maildispatcher_agent(7994)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::lockResult: Failed to get lock: "Timeout trying to get lock." 

N900 packages, Svn Rev 1159743
Comment 2 Ludwig Reiter 2010-08-17 13:41:58 UTC
Version: 4.5~20100813.1163254-1maemo1.1164259 (enterprise5)

After pressing send in the composer, two messages appeared:
One said that sending one mail was successful.
One said that sending one mail, failed because of an error.

The mail was not sent.
Comment 3 Sabine Faure 2010-08-18 21:33:22 UTC
I retested this today and it is corrected on Linux.

The email is properly sent, added to the sent mail folder and received now.

N900 Packages, Svn Rev 1164728 


Ludwig, please verify this bug once it works for you too.
Comment 4 Bernhard E. Reiter 2010-08-24 17:03:38 UTC
Still fails sometimes (at least for me post of the time) on 20100813-2.
Comment 5 Bernhard E. Reiter 2010-08-25 10:39:14 UTC
Akonadi and the attributes show me that at least most of
my messages failed because of authentification errors.

Failed to transport message. Your SMTP server does not support PLAIN. Choose a different authentication method. The server responded: "5.7.0 Error: authentication failed: authentication failure"

As IMAP sync works, I did provide the right password. Maybe
no SSL connection is attempted.
I am also missing a "resent" button to try again and
a reliable way to show the error status.
Comment 6 Bernhard E. Reiter 2010-08-25 10:49:15 UTC
Okay, I think I've found at least part of the issue why I am seeing it:
I've misstyped in my email address and later corrected it 
in the "configure account" dialog. This was enough for imap, but
not for other places (identity, emaildefaults, mailtransports).
Comment 7 Sabine Faure 2010-08-25 21:47:48 UTC
I retested this today and it does not work anymore:

The email seems to be sent since a yellow dialog appears telling that the mail is sent and a copy is stored in the 'Sent-mail folder'. 

However it is never received by the recipient.

I am wondering if this is linked to the Imap not synchronizing bug.

Here what's in the terminal:
akonadi_maildispatcher_agent(4155) SendJob::Private::transportPercent: Processed amount 319 total amount 319
akonadi_maildispatcher_agent(4155) MailDispatcherAgent::Private::sendPercent: sentItemsSize 0 this job processed 319 queue totalSize 0 total total size (sent+current+queue) 762 new percentage 33 old percentage 0
5 3 
QModelIndex(5,0,0x5f2a80,Akonadi::EntityMimeTypeFilterModel(0x2ba340) )  QVariant(QString, "Inbox") 
akonadi_maildispatcher_agent(4155) SendJob::Private::doPostJob: success true message ""
akonadi_maildispatcher_agent(4155) SendJob::Private::doPostJob: Success transporting.
akonadi_maildispatcher_agent(4155) SendJob::Private::doPostJob: Moving to sent-mail collection with id 558
akonadi_maildispatcher_agent(4155) SendJob::Private::postJobResult: Success deleting or moving to sent-mail.
akonadi_maildispatcher_agent(4155) SendJob::Private::storeResult: success true message ""
CH-333
akonadi_maildispatcher_agent(4155) StoreResultJob::Private::fetchDone:
akonadi_maildispatcher_agent(4155) StoreResultJob::Private::modifyDone:
akonadi_maildispatcher_agent(4155) SendJob::Private::doEmitResult: Success storing result.
akonadi_maildispatcher_agent(4155) MailDispatcherAgent::Private::sendResult: Sending succeeded.
akonadi_maildispatcher_agent(4155) MailDispatcherAgent::Private::dispatch: Empty queue.
CH-400

N900, 4:4.5~20100824.1167481-1maemo1.1167070
Comment 8 Bernhard E. Reiter 2010-08-26 15:26:50 UTC
Sabine:
With akonadiconsole -> Browser -> Local Folders -> Outbox, Attributes
there should be the cause why this email was not send.

(BTw: Could you always give the Plattform (e.g. Desktop or N900) 
and the tag you were retesting with).
Thanks,
Bernhard
Comment 9 Sabine Faure 2010-08-26 23:19:44 UTC
Hi Bernhard!

Thx for your help ;o)

I did include the platform and version number (see above at the bottom of comment #7): N900, 4:4.5~20100824.1167481-1maemo1.1167070

Isn't that specific enough?
Comment 10 Bernhard E. Reiter 2010-08-27 09:39:22 UTC
Sabine,
oh, you are right about the tag number, I somehow overlooked it. Sorry. :(

Did you see the reason meanwhile why your emails were not transported?
Comment 11 Sabine Faure 2010-09-01 20:45:38 UTC
I retested this today and sending emails from the N900 works fine now:

The email is properly sent, added to the sent mail folder and received now.

So I am verifying this bug. Feel free to reopen if needed.

N900, 4:4.5~20100901.1170574-1maemo1.1170522
Comment 12 Felix Wolfsteller 2010-09-21 14:06:35 UTC
While there are stills similar symptoms observable, afaics these all have own issues and more appropriate titles by now. Closing this bug.
Comment 13 Ludwig Reiter 2010-10-20 11:45:34 UTC
Reopened for 4.6~20101015.1186250-1maemo1.1186478

Heavy Regression

No yellow sent mail dialog appears. Mails say in the outbox.
Comment 14 Bjoern Ricks 2010-10-20 15:55:48 UTC
The reason should be: Executable "akonadi_maildispatcher_agent" for agent akonadi_maildispatcher_agent" could not be found!
It might be some agentserver regression.
Comment 15 Felix Wolfsteller 2010-10-22 11:13:06 UTC
That same version was known to have issues with account registration. Which kind of accounts were registered? Also, I opt for opening a new issue, this bugtrackers "collapse comment" feature is imho not enough to make any sense of this report in sensible time (I just counted - 14 lines of readible comments on one screen!).
Comment 16 Volker Krause 2010-10-22 14:36:43 UTC
Fixed in revision 1188138 and 1188438.
Comment 17 Felix Wolfsteller 2010-10-25 12:07:09 UTC
Was(In reply to comment #16)
> Fixed in revision 1188138 and 1188438.

I observe that a mail i want to send is stored twice in the outbox. Was/is that the same issue? (pre-1188438).
Comment 18 Ludwig Reiter 2010-11-08 13:53:53 UTC
tested with Kontact enterprise5 N900 20101108.1194089-1maemo1

I tried to send a mail to different account.
Kontact shows me a successfully sent msg.
But the mail was never received by the second test account.
So still broken.

(The mails were saved in the outbox and not copied to the sent-mail folder)
Comment 19 Bjoern Ricks 2010-11-12 09:36:56 UTC
Created attachment 53348 [details]
Composer not sending mail

With 4:4.6~20101112.1195824-1maemo1.1195646 I am not able to send any mails. The composer got stuck while trying to send a mail.
Comment 20 Volker Krause 2010-11-12 14:10:25 UTC
The composer getting stuck part has been fixed in Akonadi server and the Maemo packages (missing Strigi dependency).
Comment 21 Sabine Faure 2010-11-12 19:49:52 UTC
Indeed it is corrected now.

The Strigi error does not happen anymore + sending and receiving email works fine now.

Feel free to close this bug whenever the other issue are fixed.

N900, 4:4.6~20101112.1195992-1maemo1.1196001
Comment 22 Ludwig Reiter 2010-11-18 11:40:56 UTC
version: N900 kdepim-mobile 20101118.1198236-1maemo1.1198084

sending mail works fine here. So closed.
Comment 23 Ludwig Reiter 2010-11-29 12:17:10 UTC
Reopened, because it failed again.

version: 20101129.1201917-1maemo1

After pressing of the send mail button the mail isn't sent and stays in the outbox, but Kontact told me that it has sent the mail.
(failure)
Comment 24 Volker Krause 2010-11-29 16:51:03 UTC
*** Bug 256687 has been marked as a duplicate of this bug. ***
Comment 25 Ludwig Reiter 2010-11-30 14:42:31 UTC
Also happens with Windows CE (2010-11-28)
Mails are not sent and stays in the outbox.
Comment 26 Bjoern Ricks 2010-11-30 15:11:28 UTC
Sending an replying works with 4:4.6~20101130.1202227-1maemo1.1202030 on maemo. maybe it's some strange issue. ludwig and me are using the same test account but a different n900 device.
Comment 27 Sergio Martins 2010-12-02 14:06:51 UTC
When this happens, can you check the state of the maildir resource? Is it online?
Comment 28 Volker Krause 2010-12-02 15:46:58 UTC
The wrong notifications have been fixed in revision 1202850.
Comment 29 Bjoern Ricks 2010-12-06 18:47:25 UTC
This issue is happening from time to time due to different reasons. We should create new issues in future not reopening this one.