Re: [Dovecot] Post-login scripting - Trash cleanup

2012-02-28 Thread Robert Schetterer
Am 28.02.2012 20:26, schrieb l...@airstreamcomm.net:
> On Tue, 28 Feb 2012 19:26:11 +0100, Robert Schetterer
>  wrote:
>> Am 28.02.2012 19:11, schrieb l...@airstreamcomm.net:
>>> We are considering using the post-login scripting to clear trash older
>>> than 90 days from user accounts.  has anyone done this, and if so did
>>> this
>>> cause logins to slow down too much waiting for the trash to purge?  One
>>> idea was to execute the trash purge script once a day by tracking their
>>> logins and seeing that it has already ran that day.  Another idea was
> to
>>> call the trash purge script in the background and continue without
>>> acknowledging that it has finished to keep logins speedy.
>>
>> look here if this match/solve your problem
>>
>> http://wiki2.dovecot.org/Plugins/Expire
> 
> Expire looks to be useful, but it appears to be something that enhances
> expunging of messages rather than automates the process if I am reading
> correctly.  We would like to make the process for expunging old Trash
> messages as automated and inline as possible.

wouldnt
doveadm expunge -A mailbox Trash savedbefore 90d
as cron job do what you want ?
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Post-login scripting - Trash cleanup

2012-02-28 Thread Ed W

On 28/02/2012 18:11, l...@airstreamcomm.net wrote:

We are considering using the post-login scripting to clear trash older
than 90 days from user accounts.  has anyone done this, and if so did this
cause logins to slow down too much waiting for the trash to purge?  One
idea was to execute the trash purge script once a day by tracking their
logins and seeing that it has already ran that day.  Another idea was to
call the trash purge script in the background and continue without
acknowledging that it has finished to keep logins speedy.


I think you can also use doveadm to achieve this?  So you could schedule 
something for all accounts at some out of hours period - should speed up 
backups also?


Ed W


Re: [Dovecot] Post-login scripting - Trash cleanup

2012-02-28 Thread list
On Tue, 28 Feb 2012 19:26:11 +0100, Robert Schetterer
 wrote:
> Am 28.02.2012 19:11, schrieb l...@airstreamcomm.net:
>> We are considering using the post-login scripting to clear trash older
>> than 90 days from user accounts.  has anyone done this, and if so did
>> this
>> cause logins to slow down too much waiting for the trash to purge?  One
>> idea was to execute the trash purge script once a day by tracking their
>> logins and seeing that it has already ran that day.  Another idea was
to
>> call the trash purge script in the background and continue without
>> acknowledging that it has finished to keep logins speedy.
> 
> look here if this match/solve your problem
> 
> http://wiki2.dovecot.org/Plugins/Expire

Expire looks to be useful, but it appears to be something that enhances
expunging of messages rather than automates the process if I am reading
correctly.  We would like to make the process for expunging old Trash
messages as automated and inline as possible.


Re: [Dovecot] Post-login scripting - Trash cleanup

2012-02-28 Thread Robert Schetterer
Am 28.02.2012 19:11, schrieb l...@airstreamcomm.net:
> We are considering using the post-login scripting to clear trash older
> than 90 days from user accounts.  has anyone done this, and if so did this
> cause logins to slow down too much waiting for the trash to purge?  One
> idea was to execute the trash purge script once a day by tracking their
> logins and seeing that it has already ran that day.  Another idea was to
> call the trash purge script in the background and continue without
> acknowledging that it has finished to keep logins speedy.

look here if this match/solve your problem

http://wiki2.dovecot.org/Plugins/Expire

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


[Dovecot] Post-login scripting - Trash cleanup

2012-02-28 Thread list
We are considering using the post-login scripting to clear trash older
than 90 days from user accounts.  has anyone done this, and if so did this
cause logins to slow down too much waiting for the trash to purge?  One
idea was to execute the trash purge script once a day by tracking their
logins and seeing that it has already ran that day.  Another idea was to
call the trash purge script in the background and continue without
acknowledging that it has finished to keep logins speedy.