smartlist, mhonarc, month, year, ...
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?! -- Se si insegna a un bambino a programmare in qualche linguaggio informatico, questo esercizio logico lo renderà padrone e non schiavo del computer. (Umberto Eco)
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 -- The only stupid question is the unasked one. Please always Cc to me when replying to me on the lists.
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, -- Quelle connerie la guerre (J. Prevert) Défendre les libertés: http://www.iris.sgdg.org/actions/loi-sec Francois SAUTEREY Email : Francois@Sauterey.eu.org Tel/Fax : +33 1 40 33 68 46
"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 -- Hans-Albert Schneider <Hans-Albert.Schneider@mchp.siemens.de> Siemens AG phone: (+49) 89 636 45445 Corporate Technology fax: (+49) 89 636 42284 Munich, Germany -- To get my public PGP key, send me a mail with subject "send key" --
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
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. ;) -- Non e` bello cio che e` bellico, e` bello cio che e` Pace (anonimo, muri di PD)
participants (5)
-
Francois Sauterey
-
Hans-Albert Schneider
-
Marco Gaiarin
-
Martin Schulze
-
Mike Goins