[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 69281] Offline mode for all Kontact programs
From:       Melvyn Sopacua <melvyn () webteckies ! org>
Date:       2003-12-15 15:49:36
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=69281     




------- Additional Comments From melvyn@webteckies.org  2003-12-15 16:49 -------
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic