Article View: news.software.readers
Article #86305Re: SLRN Macro Problem
From: Thomas Schultz
Date: Sun, 28 Oct 2001 11:32
Date: Sun, 28 Oct 2001 11:32
54 lines
2612 bytes
2612 bytes
* Gary Denrael [2001-10-03 04:54] :
> Ok, thanks...I've added util.sl and it all is working now, just not
> as I expected. I was under the assumption that that macro would
> numerically tag for decode, but it seems to be doing a non-catchup
> type tag...have I missed something?
It sounds like that macro just is not what you need. Here is a simple
macro that will allow you to numerically tag by regular expressions:
#v+
define numtag_via_subject_regexp ()
{
variable str;
variable count = 0;
variable pos = extract_article_header ("Message-Id");
str = read_mini ("Numtag subjects pattern: ", "", "");
!if (strlen (str))
return;
uncollapse_threads ();
call ("header_bob");
while (andelse {re_fsearch_subject (str)}
{get_header_tag_number () == 0})
{
variable is_last = 1;
if (header_down (1))
{
is_last = 0;
() = header_up (1);
}
call ("tag_header");
count++;
if (is_last)
break;
}
collapse_threads ();
() = locate_header_by_msgid (pos, 0);
vmessage ("%d headers marked.", count);
}
definekey ("numtag_via_subject_regexp", "%", "article");
#v-
It is not perfect (e.g. does not preserve the (un)collapsed status of
threads), but should do the job.
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2001-09-20] slrn is going international
-> [2001-08-20] slrn 0.9.7.2 released
-> [2001-08-11] slrn-announce mailing list created / wishlist reviewed
Technical Details
Message-ID:
<slrn9tnr71.rd.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!news.belwue.de!news.sns-felb.debis.de!bignews.mediaways.net!cluster.news.mediaWays.net!not-for-mailReferences:
<slrn9rhh5e.93k.news@suzy.talentsinc.net> <slrn9rk6s6.21o.tststs@starflower.tststs.ddns.org> <slrn9rl6fr.5ce.news@suzy.talentsinc.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn9tnr71.rd.tststs@starflower.tststs.ddns.org> Subject: Re: SLRN Macro Problem Date: Sun, 28 Oct 2001 11:32:49 +0000 From: Thomas Schultz <tststs@gmx.de> References: <slrn9rhh5e.93k.news@suzy.talentsinc.net> <slrn9rk6s6.21o.tststs@starflower.tststs.ddns.org> <slrn9rl6fr.5ce.news@suzy.talentsinc.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!news.belwue.de!news.sns-felb.debis.de!bignews.mediaways.net!cluster.news.mediaWays.net!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. User-Agent: slrn/0.9.7.2pl2 (Linux) Lines: 53 NNTP-Posting-Host: 172.178.17.112 X-Trace: 1004268866 news-1.compuserve.de 25472 172.178.17.112 X-Complaints-To: abuse@mediaWays.net