Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

junkmail - autodelete

Quote Reply
junkmail - autodelete
Hi

I discovered that all junkmail is stored in a tmp folder inside Webmail/Data. Isnīt any of this deleted from admin when I choose delte all ?

I found 5 GB ! of junk-1600 etc mail, and took large parts of my disk...

Are

Quote Reply
Re: junkmail - autodelete In reply to
You should create a shell script that could be called via Crontab to automatically delete the files...

Like the following:

Code:

rm /absolute/path/to/WebMail/Data/*


Then create a Crontab to execute this script on a daily basis.

Or you could hack the GM script to "unlink" those files when you delete them through the Admin interface.

Regards,

Eliot Lee
Quote Reply
Re: junkmail - autodelete In reply to
It seems that mail in junk is not junk :( , itīs real email....

Anyone know what might happen, since all mail goes into webmail/data/tmp with filename like "junk-6346-1". ?

Are

Quote Reply
Re: junkmail - autodelete In reply to
Well...just change the directory in the codes I gave you to delete the files in the /Webmail/Data/tmp/.

Got it?

Regards,

Eliot Lee
Quote Reply
Re: junkmail - autodelete In reply to
Hi

I understand how to delete it, both wit cron and by hand...but I canīt get incoming messages, all mail is coming into /tmp catalog, even though itīs not junk.

When trying to run incoming, I get this:

Can't call method "path" on an undefined value at /home/Webmail.pm line 860, <GEN2> line 17164.
Quote Reply
Re: junkmail - autodelete In reply to
Hi,

This is incoming.pl croaking on an invalid MIME message. You can have it ignore this by editing Webmail.pm line 865:

Code:
foreach $part (@parts) {
next unless $part; # ADD THIS LINE.
Let me know if this doesn't work.

Cheers,

Alex

--
Gossamer Threads Inc.