🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #222344

Re: automatic crossposting

#222344
From: Hactar
Date: Fri, 20 Jun 2008 03:37
63 lines
4394 bytes
In article <slrng5l87l.5kp.pjr@pjr.motzarella.org>,
Peter J Ross  <peadar.ruadh@gmail.com> wrote:
> In news.software.readers on Thu, 19 Jun 2008 16:08:45 GMT, Hactar
> <ebenZEROONE@verizon.net> wrote:
> 
> > I participate in the newsgroup "alt.fan.cecil-adams".  Since lots of
> > people (including me, unless I do something about it) are going to lose
> > access to alt.* in the next few weeks, we are thinking about moving en
> > masse to "misc.facts.straight-dope" (which was newgrouped with that
> > purpose in mind).  One step in migration is consistent crossposting.
> > So far I've been manually adding ",misc.facts.straight-dope" to the
> > Newsgroups line on every post.  But this is error-prone, and a PITA.
> > Is there a way to get vim (editor), trn (newsreader) or leafnode (news
> > server) to do this automatically?
> 
> For vim, try adding something like these two commands to ~/.vimrc:
> 
> autocmd VimEnter .article,.followup
> \ :1s/\(alt\.fan\.cecil-adams\)/\1,misc.facts.straight-dope/
> 
> autocmd VimEnter .article,.followup
> \ :1s/\(misc\.facts\.straight-dope.*\),misc\.facts\.straight-dope/\1/
> 
> Change ".article,.followup" if trn uses different names for the
> temporary files, and change ":1s" if the "Newsgroups:" header doesn't
> appear on line 1 in the editor. Above all, test (perhaps with alt.test
> and misc.test), because I haven't tested.

Changed it a bit to

,--
| " adds ",misc.facts.straight-dope" to Newsgroups if AFCA is listed
| autocmd VimEnter /home/eben/News/.article.*
| \ :1s/\(: alt\.fan\.cecil-adams\)$/\1,misc.facts.straight-dope/
|
| " adds ",alt.fan.cecil-adams" to Newsgroups if MFSD is listed
| autocmd VimEnter /home/eben/News/.article.*
| \ :1s/\(: misc\.facts\.straight-dope\)$/\1,alt.fan.cecil-adams/
'--

but it still throws errors if those substitutions fail:

"~/News/.article.25301" 62L, 2469C
Error detected while processing VimEnter Auto commands for "/home/eben/News/.article.*":
E486: Pattern not found: \(: alt\.fan\.cecil-adams\)$
Press ENTER or type command to continue
Error detected while processing VimEnter Auto commands for "/home/eben/News/.article.*":
E486: Pattern not found: \(: misc\.facts\.straight-dope\)$
Press ENTER or type command to continue

Still, pressing enter once or twice is much better than fixing the
Newsgroups line manually.  I'll stick my head into comp.editors to see
if they have any good ideas.

> A better solution is to use a news server that carries AFC-A.

Done.

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      royalty.mine.nu:81
VIRGO:  All Virgos are extremely friendly and intelligent - except
for you.  Expect a big surprise today when you wind up with your 
head impaled upon a stick. -- Weird Al, _Your Horoscope for Today_
Technical Details
Message-ID: <99lri5-uao.ln1@royalty.mine.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
References: <efaqi5-24i.ln1@royalty.mine.nu> <slrng5l87l.5kp.pjr@pjr.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <99lri5-uao.ln1@royalty.mine.nu>
Subject: Re: automatic crossposting
Date: Thu, 19 Jun 2008 23:37:45 -0400
From: ebenZEROONE@verizon.net (Hactar)
References: <efaqi5-24i.ln1@royalty.mine.nu> <slrng5l87l.5kp.pjr@pjr.motzarella.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 63
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX19fOxs3BuzCwIGJAHo9+BnEfYOwhQVla9WXVL6JS9QVniAgUNR0/VLUtR+JFjCeSx9P6CiDTEJbjGttf9tfeL350Z/QJ9FP0VVjIeqdLUTqeXN5/Nx9ZnL6piUNb0TX5rQ=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 20 Jun 2008 04:08:50 +0000 (UTC)
Originator: eben@pc.verizon.net (Eben King)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
X-No-ahbou: yes
X-Auth-Sender: U2FsdGVkX1/9uJ6/kxc9Ax0DGHWvvmWoLYV/MQrikqY=
X-GetARealNewsreader: <!
X-Face: $/l:}sIrV@ebX4l8a`l.7j#B:>O~R&,
 e07C6?Th7atH"C~AW%c!1~C%Z!#2W<zAyF'Y0"~\lLMpPE$&3gN~s9=X<5=NF`%ngs&:+56-YTDgK[XGX%1El.]DWi(Uii4XTO@cGM5&qn`f=,
 $g}QPkY8o3{yYHWf?:}Mig]
Cancel-Lock: sha1:yftZo5lA+8xhEidwpWOdAdeXUJ8=
X-no-archive: yes