Bug 69281 - Offline mode for all Kontact programs
Summary: Offline mode for all Kontact programs
Status: RESOLVED NOT A BUG
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 0.7.3
Platform: unspecified FreeBSD
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-29 15:23 UTC by Melvyn Sopacua
Modified: 2004-06-06 12:08 UTC (History)
0 users

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 Melvyn Sopacua 2003-11-29 15:23:48 UTC
Version:           0.7.3 (using KDE 3.1.93 (CVS >= 20031111), yes)
Compiler:          gcc version 3.3.3 [FreeBSD] 20031106
OS:          FreeBSD (i386) release 5.2-BETA

This would obviously need support in the underlying applications, but basically the only major issue still missing from the network and communications applications is an "offline mode". Especially since the settings of the "Check mail/news every x minutes" dialogues are not remembered.

The offline mode would:
- disable all receive methods involving networked protocols
- set the default send method to 'queued'
- not automatically save TODO-list information if the resource is remote.
Comment 1 Matej Cepl 2003-12-12 05:33:32 UTC
I suggest join this with bug 7765 and then move it all together somewhere closer to the KDE heart (kio slaves or even deeper?).
Comment 2 Melvyn Sopacua 2003-12-15 16:49:35 UTC
I don't see why. Being 'offline' could mean you don't want to download mail. Doing this 'automatically' and registering an offline handler in io slaves, would this mean that I couldn't save a file over fish for example?

Offline mode is not necessarily a 'environment state', it can be a mood-state of the end-user. I have 4 personalities with 1 pop-server. I often would like to set off-line mode if that server is unreachable for whatever reason (popd down, network unreachable, server too busy or inet connection unavailable) and for the specific accounts which are on a different server I could simply download them on request and push the right button.

Right now I use the scripts below. If that's done during runtime, it's all that is required for kmail. It's basically a mode that halts anything automatically done, that requires a network connection. I am still able to use networkconnections if I desire to do so, which is quite important - I just hate the "You are offline, so you *cannot* download mail" messages.

I think the most important thing is that, the check_interval is now used both as an interval and on/off switch (=0), which is why the old settings cannot be stored somewhere. If you seperate those, then it's also much easier to temporarily disable an account.

$ cat ~/bin/kmailoffline ~/bin/kmailonline
#!/bin/sh

[ -z $KDEHOME ] && export KDEHOME=$HOME/.kde-cvs

sed -i.online -e "s/check-interval=5/check-interval=0/" \
        -e "s/checkmail-startup=true/checkmail-startup=false/" \
        -e "s/^Immediate=true/Immediate=false/" \
        $KDEHOME/share/config/kmailrc
#!/bin/sh

[ -z $KDEHOME ] && export KDEHOME=$HOME/.kde-cvs

sed -i.offline -e "s/check-interval=0/check-interval=5/" \
        -e "s/checkmail-startup=false/checkmail-startup=true/" \
        -e "s/^Immediate=false/Immediate=true/" \
        $KDEHOME/share/config/kmailrc
Comment 3 Matej Cepl 2003-12-31 20:20:57 UTC
Is there any way how to make kmail re-read its configuration files (something like reload parameter of /etc/init.d/ scripts)? Sending some SIGNAL perhaps?
Comment 4 Melvyn Sopacua 2004-01-06 21:38:15 UTC
Subject: Re:  Offline mode for all Kontact programs

On Wednesday 31 December 2003 20:20, you wrote:

> ------- Additional Comments From cepl@surfbest.net  2003-12-31 20:20
> ------- Is there any way how to make kmail re-read its configuration files
> (something like reload parameter of /etc/init.d/ scripts)? Sending some
> SIGNAL perhaps?

That would be a nightmare since part of the config file is a layout snapshot 
and currently selected email etc.
Which would you ignore and which to reload?

Comment 5 Ingo Klöcker 2004-06-06 12:08:52 UTC
This wish doesn't make much sense since it has nothing to do with Kontact. You'll have to file the wish for the separate apps that Kontact is built upon. For KMail there's already a corresponding wish. And I'm not sure which other apps need such an offline mode. Maybe KNode? Anyway, please submit separate wishes for those apps.

For reference you might want to add the numbers of the corresponding wishes to this wish.

KMail: http://bugs.kde.org/show_bug.cgi?id=7765