[Mailman-Users] Help with archive

2021-01-21 Thread sundar
Hello Mark,

I am trying to remove the archives older than 2 years by using the
following python script. But, it works for 365 days only. any other
possibilities to use this script for 2 years.

https://www.msapiro.net/scripts/prune_arch



-- 
Regards,
Sundar
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Help with archive

2021-01-21 Thread Mark Sapiro
On 1/21/21 9:00 PM, sundar wrote:
> Hello Mark,
> 
> I am trying to remove the archives older than 2 years by using the
> following python script. But, it works for 365 days only. any other
> possibilities to use this script for 2 years.
> 
> https://www.msapiro.net/scripts/prune_arch


Did you read it?

Options:

   ...

-d /--days=
Remove messages older than . Default is 365.  This is
based on the message's Date: header.  Messages with missing or
unparseable Date: header will be removed.

I.e., for 2 years specify '-d 730'

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/