[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: exit() on low diskspace
From: Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date: 2001-07-31 14:30:41
[Download RAW message or body]
On Tue, Jul 31, 2001 at 02:01:31PM +0200, Don Sanders wrote:
> Hmm. Well saving the message could be a problem if there is
> no free disk space.
It could try to save in /tmp or simply try to deliver the mail.
I use a local sendmail, so this is not about launching some
smtp slave and contacting a remote host, which could take some
time.
> It's better to prevent out of memory and out of disk space
> errors rather than try to deal with them elegantly if they
> occur.
I disagree. A program has to be failsafe. If it can't write to
the disk, because it is full -- don't write! It could tell me
to clean up some diskspace and then write. Disable the entire
GUI if necessary, stop all slaves and timers and show a "You're
low on diskspace on /home/foo/..., please free some space
to let kmail continue" dialog.
> No, no luck. Which I am not pleased about, the showing of
> the message should be simple on the KMail side. I want to
> know exactly what happens in between the time I call a show
> message in different process function and the time that the
> new process is started.
Did you have a look at kdecore/tests/knotifytest.cpp? It's as
easy as it can get and it works for me. And note that the
knotify daemon should already be running, so no need to start it.
Cheers
Carsten Pfeiffer
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic