RE: Temporary file not being deleted
"Jens E. Madsen Jr." <[email protected]> Sun, 11 Apr 2004 21:58:14 -0600
| Newsgroups | gmane.mail.gotmail |
|---|---|
| Message-ID | <[email protected]> |
Of course, right after sending the email, another error occurred which left temporary files. I added three more doCleanTempFiles. I will test for a few days and send a new copy. Jens On Sun, 2004-04-11 at 12:08, Jens E. Madsen Jr. wrote: > John, > > Again thanks for maintain gotmail. > > I was in the process of adding an additional configuration parameter to > my version of gotmail when I looked into the temporary file problem. > > I believe that I found the problem. There are several "die" statements > that can result if things go wrong. "die" simply prints the messages and > quits. I don't believe it calls the signal handler and from the > remaining temporary files, that would be a good assumption. > > In the attached gziped file, I have added "doCleanTempFiles" calls which > for the last two days has not left a temporary file and seems to > retrieve mail from Hotmail for several account here. > > I also added a "summary" configuration parameter to gotmail for both the > configuration file and command line argument. When specified it will > always print a summary of unread messages by folders. I was looking to > capture a metric of files downloaded and this was my first attempt for a > quick and dirty solution. I followed the dispText subroutine and added a > dispSummary subroutine. > > Enjoy, > Jens > > > On Wed, 2004-04-07 at 17:44, John Fruetel wrote: > > I've noticed the same thing happen on my computer, but I haven't looked into > > it. It's supposed to clean up the temp files after both normal and error > > exits, but it doesn't always do it. > > > > It's perfectly safe to delete them. It's what I'm doing for the time being > > myself. > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of > > Jens E. Madsen Jr. > > Sent: Wednesday, April 07, 2004 9:14 AM > > To: [email protected] > > Subject: [gotmail] Temporary file not being deleted > > > > Greetings, > > > > I am currently using gotmail-0.8.1. I have been using gotmail for at least a > > year and have been very satisfied with it. We use it for our small network > > here pulling about a half dozen Hotmail accounts. Each user runs a script > > that pulls their account and send them to postfix to deliver to the user > > with spam checking (Spamassassin) and virus detection (Clamav). > > > > Recently, I have noticed an excessive number of temporary files remaining in > > the /tmp directory every day. There is over one hundred for the last two > > days. They seem to be related to error in the gotmail log but I can not say > > there is a one-to-one correspondence to errors. > > > > Does gotmail delete temporary files on errors? If not, should it? If it > > does, what needs to be configured? > > > > Can I delete the temporary files after gotmail completes execution? I > > currently delete them after two days. > > > > Thanks, > > Jens > > > > > > > > > > _______________________________________________ > > Gotmail-list mailing list > > [email protected] > > http://mail.nongnu.org/mailman/listinfo/gotmail-list > > > > > > _______________________________________________ > > Gotmail-list mailing list > > [email protected] > > http://mail.nongnu.org/mailman/listinfo/gotmail-list > > ______________________________________________________________________ > _______________________________________________ > Gotmail-list mailing list > [email protected] > http://mail.nongnu.org/mailman/listinfo/gotmail-list