Hello,

Background: I created a website years and years ago called
http://freebsdrocks.net for qmail so when you created users the spams would
automatically go to the users' spam folder. After time the Spam folder
would just continually build up. With some help from friends this script
will train spamassassin for the spams in the .Spam folder and then delete
anything over 30 days which is set as a default. If you want to use the
same principal for the Trash, you will need to edit the following script

http://wolson.dyndns.info/files/spamlearn.sh

This may work in the same fashion but you will need to change the current
functionality to delete the messages in the Trash folder and not the Spam
folder and not train them with spamassassin. I would try this on a test box
first :-)

Bill







Bill

http://www.goodcleanemail.com
http://www.freebsdrocks.net <http://www.centosrocks.net>



On Wed, Nov 7, 2012 at 9:51 PM, William Olson <wol...@gmail.com> wrote:

> I can answer this tomorrow. I have a script at work that keeps the last 30
> days of spams and it's customizable. You may just need to change .Spam to
> .Trash within the script.
>
> Bill
>
> Bill
>
> http://www.goodcleanemail.com
> http://www.freebsdrocks.net
> <http://www.centosrocks.net>
>
>
>
> On Wed, Nov 7, 2012 at 6:19 PM, Frank Chan <fc...@molsci.org> wrote:
>
>> Hi Matt,
>> If you referring to Squirrelmail webmail there is a plugin called "Empty
>> trash" where you can configure when to purge the trash folder in
>> Squirrelmail. Here is the link to the Squirrelmail plugin page to Empty
>> Trash plugin: 
>> http://www.squirrelmail.org/**plugin_view.php?id=92<http://www.squirrelmail.org/plugin_view.php?id=92>
>>
>> If this is not correct please specify which mail client you are referring
>> to.
>>
>> I hope this helps,
>> Frank
>>
>>
>> On 07-11-2012 14:43, Matt Rauch wrote:
>>
>>> Hello,
>>>
>>>         Sorry if this isn't the place to ask, but I've looked all over
>>> and
>>> haven't managed to find a clear solution. I'm looking for a way to have
>>> items that have been in the user's .Trash folder for a certain period of
>>> time (lets say 30 days or older) removed automatically. I thought there
>>> must
>>> be built-in functionality for this, or a script someone has come up with
>>> to
>>> manage this sort of thing. I've see a squirrelmail plugin that does it
>>> based
>>> on number of logins or every x number of days, but it empties the whole
>>> trash and doesn't check each message's age individually.
>>>
>>> Any help would be greatly appreciated.
>>>
>>> Thanks,
>>>
>>> Matt Rauch
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> 
>>
>>
>


!DSPAM:509afa9f33995129038296!

Reply via email to