Article View: news.software.readers
Article #15996TRN macros
From: Olly Betts
Date: Mon, 13 Mar 1995 17:26
Date: Mon, 13 Mar 1995 17:26
41 lines
1999 bytes
1999 bytes
I'm using strn, though this is a trn question (I think). v at the newsgroups prompt gives: STRN version 0.9.2 (beta) This source is based on: @(#)$Id: trn.c,v 3.0 1991/11/22 00:14:59 davison Trn $ Version: 0.9.2/3.4.1 Send bug reports to caadams@access.digex.net OK, here's the problem. The default (according to the man page) for NEWSHEADER is: %(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n )Newsgroups: %(%F=^$?%C:%F) [...] I assume the X-ORIGINAL-NEWSGROUPS is a "your follow-up is being redirected somewhere" warning. That's what I use it for anyway, and it gets stripped out before posting. However, it only catches an empty or non-existant Followup-To:. There are a number of posts around which have a Followup-To: with the same groups as the Newsgroups: line. IMHO this is brain-dead, but life is full of brain-dead news software, so I want to catch this case too. I've tried: %(%[followup-to]=^$?:%(%[followup-to]=^%n$?:X-ORIGINAL-NEWSGROUPS: %n )) but this doesn't work. Investigation reveals that: %(%%n=^%n$?True:False) gives True. So it seems % expansion isn't done on the reg-exp pattern. Is this a bug, or the intended behaviour? And is there a way around this? Olly -- Putting the "Ol" in technology.
Technical Details
Message-ID:
<"Mon_Mar_13_17:14:17_GMT_1995".olly@mantis.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!mantis!mantis!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <"Mon_Mar_13_17:14:17_GMT_1995".olly@mantis.co.uk> Subject: TRN macros Date: Mon, 13 Mar 1995 17:26:56 +0000 From: olly@mantis.co.uk (Olly Betts) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!mantis!mantis!not-for-mail Newsgroups: news.software.readers Organization: Mantis Consultants Ltd, Cambridge, UK Lines: 41 NNTP-Posting-Host: sunforest.mantis.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit