Hello: Does SmartList have an archiving and (hopefully user friendly) search capability? [I'm not interested in the archives of this Disc List, but of the list I run for my 'users']. Thanks, Mitch Darer -- Mitchell Darer, WebMaster, mitch@focusing.org The Focusing Institute, 34 East Lane, Spring Valley, NY 10977 http://www.focusing.org (845) 362-5222 (phone/fax)
Hello,
"Mitchell" == Mitchell Darer <mitch@focusing.org> writes:
Mitchell> Does SmartList have an archiving and (hopefully Mitchell> user friendly) search capability? SmartList lists have an "archive" directory, where they store incoming mails. Usually the most recent N mails are stored in archive/latest/ which is expunged after every second or forth mail. The archive can be accessed by e-mail (send mail to the -request address of your list with subject "archive help"; this returns the file "archive.txt".) This includes a search capability based on the UNIX "egrep" command. I have extended the archive via one of the rc.local.s* files to also store mails by month (in archive/Jan00/ etc.). However, if you prefer the archives being in HTML form (so they can be acceessed via WWW), SmartList does not provide this feature itself. To achieve this, I use a program called MHonArc which I also call via one of the rc.local.s* files. MHonArc can be found at http://www.mhonarc.org/. I am not aware of a search capability built into it. Use any search facility provided by your Web site. Some search programs can be restricted to certain areas of the server, like "Mailinglist XY" or "all mailinglists". I can send you those rc.local.s* files if you like. 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" --
"HAS" == Hans-Albert Schneider <Hans-Albert.Schneider@mchp.siemens.de> writes: [...] HAS> I have extended the archive via one of the rc.local.s* HAS> files to also store mails by month (in archive/Jan00/ HAS> etc.).
HAS> However, if you prefer the archives being in HTML form HAS> (so they can be acceessed via WWW), SmartList does not HAS> provide this feature itself. To achieve this, I use a HAS> program called MHonArc which I also call via one of the HAS> rc.local.s* files. [...] I got several requests for these rc files, and they are very small, so I decided to send them to the list. Attached you find: - rc.local.s20.mmmyy to store the mail in archive/Jan00, archive/Feb00, etc. This one should be used as (part of) rc.local.s20, as it expects the ARCHIVE variable to be set. It even uses the same filename (so numbering is consistent across months). It "hardlinks" the files so archive/Sep00/2315 is not a copy of archive/latest/2315 but the same file (thus saving some disk space). In contrast to the archive/latest directory, archive/Sep00 etc. are not purged, so they keep the messages until they are explicitely removed. I usually remove last year's directories in the middle of a year, after creating one tar.gz archive of them. Change the call to the date command to get other names for the directories; e.g., `date +%Y-%m-%d` gives you 2000-09-08 etc (year-month-day). - rc.local.s10.mhonarc calls MHonArc (http://www.mhonarc.org/) to archive mails as HTML. It creates directories html/2000, html/2001 etc. for these archives. Again, change the date command to get html/2000-09 or whatever. Note that it just creates these directories but does nothing to initialize those MHonArc archives. If you want a special look of the index and/or the archived mails, this must be done outside the rc.local file: create an RCFILE for MHonArc (this has nothing to do with SmartList's or procmail's rc files--"rc" just stands for "resource definitions" in both cases), then run mhonarc -editidx -rcfile YourRCFILE to apply it. The parts of this script had been scattered across several files, so there is a small chance of errors, syntactical or otherwise. 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" -- # # rc.local.s20.mmmyy # Archive the message to directory archive/Jul94 etc. # and preserve the number it got. # # Author: Hans-Albert Schneider, Siemens AG, # <Hans-Albert.Schneider@mchp.siemens.de> # July, 1994 # :0 * ARCHIVE ?? . { # ARCHIVE is set month=`date '+%h%y'` archive2="archive/$month" result=`test -d $archive2 || mkdir $archive2` :0 c hi | ln ${ARCHIVE} ${archive2} } # # rc.local.s10.mhonarc # maintain an HTML archive of the submissions. # Author: Hans-Albert Schneider, Siemens AG, # <Hans-Albert.Schneider@mchp.siemens.de> # # Where is MHonArc? MHONARC = /usr/local/bin/mhonarc # MHonArc tries to create its lockfile this often # (ca. 3 secs interval): M2H_LOCKTRIES = 20 html_archive=`date "+html/%Y"` result=`test -d $html_archive || mkdir $html_archive` :0 c | $MHONARC -add -quiet -outdir $html_archive
participants (2)
-
Hans-Albert Schneider
-
Mitchell Darer