Title: RE: Processing months of archives
I used a similar approach but take one step further which also update the top level index.html file to insert 2 URL for the respective index files.
if ( ! -d $outdir ) {
# oops! it's missing, let's create it
mkdir $outdir, 0755;
to archive on a monthly basis i filter my mails in a .forward
file and then call a pl script. pls note our email is not
sendmail but exim (www.exim.org) so i dont know if sendmail
supports the same commands.
# .forward
#Exim filter
if error_message then finish endif
# Get todays month and ye