gotmail-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [gotmail] Temporary file not being deleted


From: Jens E. Madsen Jr.
Subject: RE: [gotmail] Temporary file not being deleted
Date: Sun, 11 Apr 2004 12:08:26 -0600

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: address@hidden
> [mailto:address@hidden On Behalf Of
> Jens E. Madsen Jr.
> Sent: Wednesday, April 07, 2004 9:14 AM
> To: address@hidden
> 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
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gotmail-list
> 
> 
> _______________________________________________
> Gotmail-list mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gotmail-list

Attachment: gotmail_new.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]