From kmail-devel Tue Jul 31 14:30:41 2001 From: Carsten Pfeiffer Date: Tue, 31 Jul 2001 14:30:41 +0000 To: kmail-devel Subject: Re: exit() on low diskspace X-MARC-Message: https://marc.info/?l=kmail-devel&m=99659018414692 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