I'm settin up a web archive of a some smartlist lists, and i wont setup archive divided into year and month, like debian does.
How?!
Marco Gaiarin wrote:
I'm settin up a web archive of a some smartlist lists, and i wont setup archive divided into year and month, like debian does.
You may also be interested in this snipped:
# # Enable archiving on :0 c # http://www.infodrom.org/Mail-Archive/ | /usr/bin/hypermail -i -u -a ../../../ \ -l '<insert title here>' \ -d "/var/www/www.infodrom.org/Mail-Archive/$list/%y/%m"
which requires hypermail, if you only need yearly archives, remove one '../' from -a and remove '/%m' from -d.
This snipped has to be added to $RC_LOCAL_SUBMIT_20 (we're using a special rc.forward for this, though) -- or alternatively add a special mail address like thislist-archive@somehost.com to the dist file and hook the above hypermail-call to that address (useful when the list is to be archived on a different host than the web server is running on -- like what Debian does :)
Regards,
Joey
A 11:14 01/11/01 +0100, Martin Schulze nous a écrit:
Marco Gaiarin wrote:
I'm settin up a web archive of a some smartlist lists, and i wont setup archive divided into year and month, like debian does.
I've wrote a shell front-end to mhonarc called from in rc.local.s10 (I more than thousand lists so I've added a mhonarced=yes 'a la smartlist' in all my rc.custom and rc.init ).
I can send it to you...
Best regards,
"MG" == Marco Gaiarin gaio@linux.it writes:
MG> I'm settin up a web archive of a some smartlist lists, MG> and i wont setup archive divided into year and month, MG> like debian does.
I don't know what exactly Debian does. I faced this problem some years ago, and have recently put my solution on
http://www.ha-schneider.de/software/smartlist/
Look out for "rc.local.s10.mhonarc". The recipe file has some comments and gives some examples on variations (archive by year, by month, ...).
If you want one large flat archive where everything goes, just assign a fixed value to html_archive (instead of calling the date command).
Hope this helps,
Hans-Albert
Here is my own form rc.local.s20:
# Set variables for sending to web based archive mhonarc=/home/xxxxxxxxx/cgi-bin/mhonarc listdir=/home/xxxxxxxxx/yyyy/archive/latest weblist=/home/xxxxxxxxx/zzz/archives/2001/aug-dec
# Send message to web archive # :0 cw | $mhonarc -add -quiet -spammode -umask 022 $listdir -outdir $weblist
I had a problem with the permissions being improperly set on the archive files so I added the -unmask option. I do not use any method to automatically divide into the month/day, but jsut create and add directories as needed. It's only once per quarter, so it has not been a pressing matter.
I don't know what exactly Debian does. I faced this problem some years ago, and have recently put my solution on
http://www.ha-schneider.de/software/smartlist/
Mandi! Hans-Albert Schneider In chel dí si favelave...
HAS> Look out for "rc.local.s10.mhonarc". The recipe file has some HAS> comments and gives some examples on variations (archive by year, HAS> by month, ...).
Ok, simple and foolproof.
Now i've simply to make a script that can regenerate the webspace, but picking date from file date (ls -l --full-time).
Also, a little script to make a glue page that summarize month/year...
Thanks. ;)
smartlist@lists.rwth-aachen.de