This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kmail prompts to go online, but doesn't.

Tags: None
(comma "," separated)
karthikp
Registered Member
Posts
109
Karma
0
OS
I'm seeing some weird behavior on two separate machines. At the moment, kmail is working just barely well enough for me to not outright abandon it and start looking for alternatives.

* Kmail thinks it's offline. Always. If I need to retrieve emails, it asks me if it should go online. If I want to send emails, it asks me if it should go online. If I switch to another folder, I get a background saying it's offline and I should click on a link to make it go online. If it does goes online, I can't tell — it immediately reverts to thinking it's offline for the next operation.

* Sending mails doesn't work reliably. Usually, it tells me it's offline, so it can't send emails. The email is stored in the local outbox instead. I can right-click on the outbox and select Send queued messages. Then, I get a prompt from the mail dispatcher asking me if it should go online (At this point, I really just want to strangle something. On a good day.). The mail doesn't get sent till I open akonadi console, delete/re-add the mail dispatcher resource and try sending queued messages again.

* I can toggle online/offline status from the menus. File > Work Online or Offline. It seems to work right. The option toggles, but it seems to be completely disconnected from the rest of the application. Kmail still prompts me on every action and pretends to not listen to the menu.

* As I mentioned, I've looked into the akonadi console. I've sometime had to toggle my mail resources online, but usually everything but the nepomuk indexer says everything's dandy. The nepomuk indexer says the system's busy and indexing is suspended. I don't care about it for this issue, so let's leave that alone.

So, my question is this. How do I make kmail think it's online? I looked into System Settings > Information sources and set the network management backend to Fake Net. On my desktop, I don't use anything other than the network service to get me online (it just starts a dhcpcd on the interface). On my netbook, I use netcfg.

Any help/kind words are appreciated. Thanks!


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Does viewtopic.php?f=18&t=97685&p=207005#p207005 help?
(I believe the scenario there is the same - KDE thinks your system is offline when it is not)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
karthikp
Registered Member
Posts
109
Karma
0
OS
bcooksley wrote:(I believe the scenario there is the same - KDE thinks your system is offline when it is not)


The source of the problem is definitely the same. I tried the dbus command from the other thread:

Code: Select all
qdbus org.kde.kded /modules/networkstatus org.kde.Solid.Networking.setNetworkStatus Solid 4


and that doesn't seem to have changed anything. kmail still prompts me if I ask it to check for new mail.

I have ntrack installed as a dependency for kdebase-runtime and can't find any package called qntrack (I'm on archlinux). :(


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, if ntrack is installed as a dependency of kde-runtime you probably already have it.
That command should have worked however...

What does this command give? (it should give '4')
Code: Select all
qdbus org.kde.kded /modules/networkstatus org.kde.Solid.Networking.Client.Status


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
karthikp
Registered Member
Posts
109
Karma
0
OS
Okay, we're getting somewhere. Querying for the client status returns 1, not 4. I ran setNetworkStatus Solid 4 again, but it still returns 1.

(Thanks for helping me troubleshoot, btw.) :)


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you try disabling the NTrack dependency and rebuilding KDE Runtime, then logging out and back in again? You will likely need to run the previously given qdbus command though.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
wazyk
Registered Member
Posts
16
Karma
0
OS
karthikp
Registered Member
Posts
109
Karma
0
OS
I just wanted to add the following. I recently received a few updates, including one for akonadi which bumps up the version to 1.7.1 and the problem I described has since disappeared. kmail now functions normally and doesn't insist on being offline.

Further, querying Solid for the Networking.Client.Status now returns 4 as bcooksley described earlier.

Thanks everyone for helping me troubleshoot this! I'm marking this as resolved.


karthikp, proud to be a member of KDE forums since 2008.
Image


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell