On Wed, 1 May 2019 at 17:29, Sam Ruby <ru...@intertwingly.net> wrote: > > On Wed, May 1, 2019 at 12:09 PM sebb <seb...@gmail.com> wrote: > > > > On Wed, 1 May 2019 at 16:48, Sam Ruby <ru...@intertwingly.net> wrote: > > > > > > On Wed, May 1, 2019 at 10:53 AM sebb <seb...@gmail.com> wrote: > > > > > > > > There are quite a few board@ mails stored under /srv/board. These date > > > > from 201605 to 201705. > > > > > > > > Some are duplicates of those under /srv/mail/board but there are some > > > > unique ones, and some are copies sent to whimsy-vm3 for which there > > > > are copies sent to whimsy-vm4. > > > > > > > > Do these need to be copied to the new host? > > > > > > I don't believe so. The new directory is /srv/mail/board. > > > > > > > How long do board emails need to be kept for use by Whimsy? > > > > > > One year (probably best rounded to 13 months). As an example, the > > > board agenda tool will report whether or not comments made on board > > > reports within the last year got any responses. > > > > OK, so maybe there needs to be a monthly clean-up? > > Just for clarity, it would be a good idea to have a cron job that runs > monthly under the www-data user id that runs something like the > following logic: > > require 'date' > require 'fileutils' > > keep = (Date.today - 365).strftime('%Y-%m') > > mail = '/srv/mail' > > Dir["#{mail}/board/20*", "#{mail}/members/20*"].each do |dir| > FileUtils.rm_rf dir unless File.basename(dir) >= keep > end
OK, I can set that up. What about the secretary emails? Or do we need to keep those for longer (or forever)? > - Sam Ruby