Article View: news.software.readers
Article #43688Re: slrn FAQ
From: John E. Davis
Date: Mon, 12 Oct 1998 00:00
Date: Mon, 12 Oct 1998 00:00
26 lines
1658 bytes
1658 bytes
On 11 Oct 1998 19:59:40 GMT, Fluffy <fluffy@meow.org>
wrote:
>#!/usr/local/bin/perl
>die "annoy-o-matic <filename> [line]\n" unless $file = $ARGV[0];
>$line = $ARGV[1] + 0;
>rename $file, "$file.$$";
>open F, ">$file" ; open T, "$file.$$";
>while (<T>) { last if /^$/ ; print F $_ }
>while (<T>) { next if /^$/ ; $att=$_ ; last }
>$att =~ /([-+.%\w]+\@[-+.%\w]+)/;
>if ($1) { print F "Cc: $1\n"; $line++ }
>print F "\n$att" ; print F $_ while <T>;
>close T ; close F ; unlink "$file.$$";
>exec 'emacs', "+$line", "$file";
I do not read perl, but I think that you can do this in slrn using:
set followup_custom_headers "Cc: %f"
or even:
set followup_custom_headers "Cc: poster"
--John
Technical Details
Message-ID:
<slrn7232tn.qa0.davis@aluche.mit.edu>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!not-for-mailReferences:
<slrn70m1pm.3it.davis@space.mit.edu> <kig4stcejxe.fsf@jagor.srce.hr> <m3af34sa25.fsf@star044213.galstar.com> <slrn721stv.q5k.davis@aluche.mit.edu> <slrn7223hc.sgn.fluffy@fluffy.meow.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn7232tn.qa0.davis@aluche.mit.edu> Subject: Re: slrn FAQ Date: Mon, 12 Oct 1998 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn70m1pm.3it.davis@space.mit.edu> <kig4stcejxe.fsf@jagor.srce.hr> <m3af34sa25.fsf@star044213.galstar.com> <slrn721stv.q5k.davis@aluche.mit.edu> <slrn7223hc.sgn.fluffy@fluffy.meow.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!not-for-mail X-Deja-AN: 400133017 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 908168122 17284 18.75.2.45 (12 Oct 1998 04:55:22 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 12 Oct 1998 04:55:22 GMT Newsgroups: news.software.readers