www.slrn.org / slrn.sourceforge.net
home of the slrn newsreader
Macros
Last update: Sat Dec 11 23:54:09 CET 2004
Information

This page offers a collection of macros for slrn that implement some more or less frequently requested features. Each of the files includes documentation; if you never used a macro, you may also want to read the generic instructions I put down.
Currently, there are only a few macros I wrote myself, but I hope that I will soon find the time to write some more and I would be happy to publish the work of other authors as well. If you have a bugreport or questions about these macros, you can write to our public mailing list; for more general questions, please prefer the appropriate newsgroup.
If you want to have all of the macros available here, you can get a tarball at the bottom of this page.

Macros for scoring
One-key scoring
These are macros that allow you to create scorefile entries based on the current article via a single function call / keystroke. Two interfaces are available - the first is very simple and can be used to watch or ignore subthreads. The second is more complex, but also more versatile: It can put a score on subjects, ``From:'' lines or references.
If you regularly use these functions, your scorefile will become quite large, so I recommend the perl script cleanscore that can automatically remove expired entries.
Note: As of slrn 0.9.7.0, these macros affect the currently visible article. There is now an option affect_article_at_cursor for those who consider this counter intuitive.
Last changed on 2004-11-08 (first release: 1999-02-10)
Temporary scoring
This macro makes it possible to assign a ``temporary score'' on all articles that match a given regular expression in the subject, author or body. It will not affect your scorefile, so the scores are lost as soon as you exit the group.
It can also ``tag'' matching headers, so they can be selected using the functions defined in nn.sl. This is done automatically if nn.sl is loaded before this file.
Last changed on 2004-12-11 (first release: 1999-07-15)

Miscellaneous macros
Improved searching
This file is meant as a replacement for the file search.sl that comes with slrn. It also searches through the articles in the current newsgroup, but has nicer features: It leaves threads in their collapsed / uncollapsed status, optionally starts the search at the beginning of the buffer or wraps around the end of the article list.
Last changed on 2002-11-10 (first release: 2000-08-16)
Sorted output of header lines
Some people like to view header lines in a special order. At your option, this macro set will sort header lines alphabetically, in a user-defined order or as given in the ``visible_headers'' slrnrc command. It can be automatically called whenever a new article is read.
Last changed on 2004-10-10 (first release: 2000-09-01)

All in one
All macros in one .tar.gz file
If you want to have all of these macros, getting the tarball is easier and faster than downloading the individual files.
Last changed on 2004-12-11 (first release: 2000-08-16)

This page
Site map
Latest changes
[2004-12-11]
Fixed a bug in temporary scoring (thanks to Alain Bench).
[2004-11-08]
Added an option to ``one key scoring''.
[2004-10-10]
Made ``sort headers'' treat articles without body correctly.
[2002-11-09]
Fixed a bug in ``advanced searching''.
[2002-03-02]
``One key scoring'' now gives feedback.
[2001-10-17]
Added an option to ``one key scoring''.
[2001-08-20]
Updated macros to work correctly with slrn 0.9.7.2.
[2001-03-28]
Updated macros to work correctly with slrn 0.9.7.0.
[2000-09-24]
Fixed a minor bug in ``temporary scoring''.
[2000-09-01]
Added ``sort header lines''.
Hosting
SourceForge Logo
This project is kindly hosted by SourceForge.
HTML validation
Valid HTML 4.0!
This webpage complies with the W3C HTML standards.
Macros are written by Thomas Schultz. This page is designed by Thomas Schultz. © 2000