Bug 290774 - Kmail cannot send emails : Failed to get D-Bus interface of mailfilteragent.
Summary: Kmail cannot send emails : Failed to get D-Bus interface of mailfilteragent.
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 09:10 UTC by tromzy
Modified: 2015-11-14 01:03 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tromzy 2012-01-06 09:10:42 UTC
Version:           4.8 (using Devel) 
OS:                Linux

Kmail does not  send any emails. The emails stay in the Outbox folder and displays this message : Failed to get D-Bus interface of mailfilteragent.

Tested on KDE 4.7.95 and 4.7.97 pre-releases of KDE 4.8.

Reproducible: Always

Steps to Reproduce:
Open Kmail. Click "New Message". Write an email, click "send". 

Actual Results:  
The email stays in the Outbox folder forever.

Expected Results:  
Kmail should have sent the email, the person I send the email to should receive it.

Dell Vostro 1500 laptop. KDE 4.7.97 on latest Chakra release (x86_64).
Comment 1 tromzy 2012-01-06 09:12:55 UTC
On latest 4.7.97, the message Failed to get D-Bus interface of mailfilteragent is not displayed anymore, but emails are still not sent.
Comment 2 tromzy 2012-01-06 09:23:06 UTC
My bad : with the latest 4.7.97, emails are actually sent. But they still stay in the Outbox folder indefinitly.
Comment 3 Christophe Marin 2012-01-08 01:49:18 UTC
Check your identity settings (settings / configure KMail / Identities / Advanced tab) Is the "sent-mail folder" correct ?
Comment 4 Martin Bednar 2012-01-09 01:54:35 UTC
Hi, I'm hit by this issue too. I just checked my sent-mail folder, it definitely is set correctly. This is a clean install Chakra 4.7.97-1 package. With one difference : my mails never leave the outbox and the message is still present.
Comment 5 Laurent Montel 2012-01-12 08:34:09 UTC
Are your sure that mailfilter agent is started ? (look at with qdbus)
qdbus org.freedesktop.Akonadi.Agent.akonadi_mailfilter_agent ?
Comment 6 tromzy 2012-01-12 08:45:36 UTC
The "sent mail" is correct. Now I cannot send emails again, it stays in "Outbox" and is never sent.
Comment 7 tromzy 2012-01-12 08:49:03 UTC
I tried to check Mailfilter agent in qdbus and it says it doesn't exist. What should I do ?

$ qdbus org.freedesktop.Akonadi.Agent.akonadi_mailfilter_agent
Service 'org.freedesktop.Akonadi.Agent.akonadi_mailfilter_agent' does not exist.
Comment 8 Laurent Montel 2012-01-12 08:57:08 UTC
you use kdepim-runtime 4.8 ? kdepim 4.8 ?
you use the same kdepim* ?

akonadi is started ?
Comment 9 tromzy 2012-01-12 09:05:59 UTC
I'm using kdepim-runtime-4.7.97, all my kdepim-* are 4.7.97. Akonadi is running.
Comment 10 Laurent Montel 2012-01-12 09:07:41 UTC
Look at in akonadiconsole if akonadi_mailfilter is started.
Comment 11 tromzy 2012-01-12 09:08:57 UTC
I don't know how to do that, I'm sorry.
Comment 12 Martin Bednar 2012-01-12 15:56:09 UTC
If I understand this correctly akonadi_mailfilter is a new agent that is supposed to be running? In my case it doesn't even show up in the agent seletion dialog/as an enabled agent. (I started with a clean config). Will report this to the Chakra forums, to me it is beginning to sound like a packaging issue. Please confirm.
Comment 13 Manuel Tortosa 2012-01-12 21:24:14 UTC
The problem is in our KDEPIM-COMMON package, please close this bug report, i'm fixing this package right now.
Comment 14 Allen Winter 2012-01-12 21:32:35 UTC
as you wish.
closing
Comment 15 Oleg Morozov 2012-02-07 06:00:25 UTC
Same bug in version 4.8:
zigmund@bug:~> kmail
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kmail2(11085)/kdepimlibs (mailtransport): Could not access Outbox.

Trying to send a email and messages stays in Outbox forever.

openSUSE 12.1
zigmund@bug:~> rpm -qa | grep kmail
kmail-4.8.0-324.5.x86_64
zigmund@bug:~> rpm -qa | grep kdepim
kdepimlibs4-4.8.0-265.1.x86_64
kdepim4-runtime-4.8.0-121.1.x86_64
libkdepimlibs4-4.8.0-265.1.x86_64
kdepim4-4.8.0-324.5.x86_64
libkdepim4-4.8.0-324.5.x86_64

From KDE Factory repo.

akonadi_mailfilter is started - checked using akonadiconsole.
Comment 16 Laurent Montel 2012-02-07 09:03:12 UTC
outbox folder is ok ?
Comment 17 Oleg Morozov 2012-02-07 09:34:31 UTC
(In reply to comment #16)
> outbox folder is ok ?

Yes, outbox is ok, if you mean folder in identities.

I think that something happened with mail dispatcher agent in akonadi. It is started but when I tried to check queue of the agent it gave me error "blabla... .service file not found". I can not give you exact error text right now. I had to fallback to old kmail because I need to work at the moment.

In few hours I'll install kmail 4.8 again and will answer your questions. Ask me if need more information.

/Sorry for my English.
Comment 18 Scott Kitterman 2012-04-16 22:00:16 UTC
(In reply to comment #13)
> The problem is in our KDEPIM-COMMON package, please close this bug report,
> i'm fixing this package right now.

What was the problem?  I'm having a similar problem with the Kubuntu packages, so maybe we made the same mistake.
Comment 19 Alex Merry 2012-12-19 10:50:36 UTC
I'm going to note here for anyone that runs into the same variant of this issue that I did: I got this problem when I already had akonadi installed and running, and only then installed the package containing the mailfilter agent (kdepim-kmail in ArchLinux).  I had to run "akonadictl restart" to get Akonadi to pick up the mailfilter agent.
Comment 20 rfnbnkr 2013-02-11 10:43:49 UTC
I have a same problem in Kde 4.10 on arch linux .
Comment 21 Konstantin Molchanov 2013-02-27 07:50:45 UTC
(In reply to comment #20)
> I have a same problem in Kde 4.10 on arch linux .

Me too.
Comment 22 Konstantin Molchanov 2013-02-27 08:07:45 UTC
Actually, "akonadictl restart" fixes the problem. Thanks.
Comment 23 rfnbnkr 2013-02-27 09:12:12 UTC
(In reply to comment #22)
> Actually, "akonadictl restart" fixes the problem. Thanks.

Thanks work for me
Comment 24 Prosiedem 2013-05-16 17:49:25 UTC
My quick fix:

Remove everything from folder /home/prosiedem/.kde/share/apps/kmail2

Did work right away.

Prosiedem
Comment 25 Hrvoje Senjan 2013-08-02 23:33:11 UTC
I just had this issue with current master...
Comment 26 Josh Liberty 2013-09-02 13:40:56 UTC
Still happening, arch linux, kde 4.11.
Comment 27 Thomas Baag 2015-11-14 01:03:41 UTC
> mv .kde4/share/apps/kmail2 .kde4/share/apps/kmail2.disabled

Removing old kde4 settings for kmail 5 fixed this issue for me.
Kudos to Prosiedem.