🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #205408

Re: Ping OHMSTER

#205408
From: Ohmster
Date: Fri, 07 Sep 2007 04:26
85 lines
3953 bytes
Ohmster <root@dev.nul.invalid> wrote in
news:Xns99A3ECD65831FMyBigKitty@194.177.96.26: 

> Blinky the Shark <no.spam@box.invalid> wrote in
> news:slrnfdn62k.6jj.no.spam@thurston.blinkynet.net: 
> 
>> Hey, plug this into your vimrc and see if it reformats the way you
>> want after you've edited a bunch of a reply.  (I saw your req in
>> c.e.) 
>> 
>> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5>
>> gg/^$<CR>V/^-- $<CR>{gq^ 
>> 
>> Do a bunch of editing; more than one para; make lines lengths ugly.
>> 
>> Then press F5.
> 
> Blinky,
> 
> When I use vim as my editor in slrn, the lines wrap by themselves so
> the F5 macro is not essential. I did want to use it though for a
> different news posting program, newspost which is a command line
> program that calls my EDITOR, vim in my case, for doing the text
> preface file. I tried to use F5 in that and it did not do anything. I
> was able to use upper case Q <enter> instead of gq <enter> and that
> did work to reformat and give me line wraps. 
> 
> How come your macro won't work in newspost as in:
> 
> newspost -E -c juki.sfv -s "Juki 586" *
> 
> " Use newspost to post to default newsgroup 
> "alt.binaries.multimedia.pantyhose", -E open vim editor for preceding 
> message, -c create sfv file and specify sfv filename, -s use subject
> in quotes, * all files in current directory"
> 
> I would like to use this macro for that because newspost does not
> offer any auto-wrapping feature like slrn does with vim, any idea of
> how to make it work?
> 
> Kewl macro, thanks!
> 

Blinky,

Here is how newspost makes temp files for editing with vim:

>From .newspostrc:
# directory for storing temporary files
tmpdir=/tmp/ohmster_newspost

Info from /tmp while making a post with vim:

[ohmster@ohmster ohmster_newspost]$ pwd
/tmp/ohmster_newspost

* Show you where we are. newspost is up with vim as the editor.

[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x  3 ohmster ohmster 4096 Sep  7 00:19 .
drwxrwxrwt 19 root    root    4096 Sep  6 23:06 ..
drwx------  2 ohmster ohmster 4096 Sep  7 00:19 newspost-mEldwU

* Showing the contents of the temp dir with active vim edit session.

[ohmster@ohmster ohmster_newspost]$ ls -la
total 16
drwxrwxr-x  3 ohmster ohmster 4096 Sep  7 00:20 .
drwxrwxrwt 19 root    root    4096 Sep  6 23:06 ..
drwx------  2 ohmster ohmster 4096 Sep  7 00:20 newspost-HN4MMs

* Show contents of temp dir with a new newspost session, new vim post 
session:

[ohmster@ohmster ohmster_newspost]$

So how can I incorporate this info into your macro to make it useful in 
newspost?

-- 
~Ohmster | ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
Technical Details
Message-ID: <Xns99A4485B663EMyBigKitty@194.177.96.26>
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.ams.giganews.com!nntp.giganews.com!news.germany.com!aioe.org!not-for-mail
References: <slrnfdn62k.6jj.no.spam@thurston.blinkynet.net> <Xns99A3ECD65831FMyBigKitty@194.177.96.26>

Show Full Headers
Complete Article Headers
Message-ID: <Xns99A4485B663EMyBigKitty@194.177.96.26>
Subject: Re: Ping OHMSTER
Date: Fri, 07 Sep 2007 04:26:57 +0000
From: Ohmster <root@dev.nul.invalid>
References: <slrnfdn62k.6jj.no.spam@thurston.blinkynet.net> <Xns99A3ECD65831FMyBigKitty@194.177.96.26>
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.ams.giganews.com!nntp.giganews.com!news.germany.com!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Ohm's Fish Market
Lines: 85
NNTP-Posting-Host: O/RjhamsI9EKzsYUTMrueA.user.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: Xnews/2006.08.24
X-Face: .XlXp$frDJgk"+lb;
 #RRo7mu{1=_.HV?RtB}%$JLN.!>>|\CPyQIi3/aBRW#(.dd8zlF9N]k8{xh03zVf=zG1G6{.bb%H8Vs%|7l'1YWAw+A)x'S"-}(Y`#ZN`#04OktRpU*!NdugZh(o%w5K,?/WqZ(qWs}K)Req:&D'|lkj%*a[N0bMk^Tr<PY{Sz6YcFm'[*2fkS/RV>}L.;
 =6evum0C,LE}%s@g; ]-DhWu4J"DbcJ*+fIo,l8cH@ZxF|dm~; Vg;
 XxV@K!Wp|SV+3HPyIOS,Z'j]jz]i=/5*!J&hVOQ[