Bug 337347 - Can't send emails unless network-manager is installed
Summary: Can't send emails unless network-manager is installed
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Dispatcher Agent (show other bugs)
Version: 1.12.1
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 07:32 UTC by Salvo "LtWorf" Tomaselli
Modified: 2017-01-07 21:50 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2014-07-11 07:32:21 UTC
I have a perfectly working wired connection, handled by the configuration files of my distribution. Since there is nothing dynamic and the machine is not going anywhere, there is no need whatsoever to have network-manager.

However, the mail dispatcher agent is not aware that the absence of network-manager does not imply the absence of a working connection. So it will refuse to go online and send any emails until network manager is installed.

the algorithm should work a bit like this:


if nm and nm.is_offline
    do nothing
else
    try to send

Reproducible: Always
Comment 1 Daniel Vrátil 2014-07-14 16:55:07 UTC
I think this might be a more general issue in Solid? (CCing our solid/networking experts)
Comment 2 Lamarque V. Souza 2014-07-15 20:14:16 UTC
You can mark to all KDE programs that you are online using the command below:

qdbus org.kde.kded /modules/networkstatus org.kde.Solid.Networking.setNetworkStatus Solid 4

The networkstatus module has native support for NetworkManager and Wicd. When one of those are installed it can automatically detectet if the computer is online or offline. The same is true if it has been compiled against ntrack library, which in this case make NetworkManager and Wicd support redundant since ntrack works with any network interface, not only the ones managed by NetworkManager or Wicd. But enabling ntrack support in networkstatus is distributions' decision.

Another thing: the rule for KDE developers that use networkstatus (that includes Solid::Networking::status() API in kdelibs) is to check network connectivity, if the return value is "Unknown" then mark the system as online. So either akonadi is not following this rule or the network management software (wicd or whatever Debian use) is marking the system as offline. Please send me the output of command below:

qdbus org.kde.kded /modules/networkstatus org.kde.Solid.Networking.Client.Status

A couple of years ago I fixed a problem in solid-networkstatus regarding network connectivity and ntrack-15 is buggy (it always mark system as offline). What is the version of the kde-runtime package installed in your computer?
Comment 3 Salvo "LtWorf" Tomaselli 2014-07-16 13:23:53 UTC
I guess it's something more subtle.

After removing network-manager again, the dispatcher seems to have no problem in staying online, even thou originally it refused and only went online after nm was installed and started.

The output of that qdbus query is "4", with nm uninstalled.
Comment 4 Denis Kurz 2016-09-24 20:44:24 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 21:50:40 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.