🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57524

Re: Bug in sm?

#57524
From: Russ Allbery
Date: Thu, 21 Mar 2002 21:21
28 lines
1936 bytes
Werner <werner@cubbyhole.com> writes:

> In case this hasn't been mentioned yet....

> The man page for sm states...
>      -R   If the ``-R'' flag is used, then the program shows  the
>           raw article spooled into storage method associated with
>           the token.

> However, doing an sm -R token > somefile and viewing the contents of the 
> file shows that there is now a CRLF at the end of every line, instead of 
> just the traditional LF.

Right.  That's what "raw article" means.  INN stores the articles in the
format suitable for sending them to the network socket in response to NNTP
requests.

> I've had to modify one of my program feeds to strip out the CR before 
> processing.

Why don't you just not use -R?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yld6xxd3bm.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <a7bn8j$10q$1@carlton.cubbyhole.com>

Show Full Headers
Complete Article Headers
Message-ID: <yld6xxd3bm.fsf@windlord.stanford.edu>
Subject: Re: Bug in sm?
Date: Thu, 21 Mar 2002 13:21:49 -0800
From: Russ Allbery <rra@stanford.edu>
References: <a7bn8j$10q$1@carlton.cubbyhole.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 27
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1016745709 9877 171.64.13.23 (21 Mar 2002 21:21:49 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:wy4zDTanCWrTFxk21uOeddCrVvQ=