🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by Nick Sun, 28 Jan 1996 00:00
TRN and incomplete binary extraction
#18238
Author: Nick
Date: Sun, 28 Jan 1996 00:00
30 lines
1508 bytes
I asked earlier a question regarding how to install an update to the
uudecoder in TRN - apparently the reason for asking was incorrect.  I've
been informed that the '755' header on some articles has nothing to do
with the problem (though it appeared so at first).  So I looked a little
deeper and found something consistent.

The problem appears to be that some form of uuencoder that various people 
are using leaves the last line of uuencoded data without the 'M' in 
column 1.  Frex:

  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
  $#P__V0 0 0
 
  end
  END -- Cut Here -- cut here

This appears to be what is causing the built-in decoder to think the 
extraction is to be continued in the body of a following article.

Unfortunately this also appears to be fairly common.  Is there any
practical/convenient way to convince TRN to complete extractions in these
cases? 

Thanks.

-Nick


Re: TRN and incomplete binary extraction
#18222
Author: Nick
Date: Sun, 28 Jan 1996 00:00
42 lines
2190 bytes
In article <4eg3hh$j74@optima.cs.arizona.edu>,
Brady Montz <bradym@mahler.cs.arizona.edu> wrote:

>I don't believe that this is necessarily incorrect. The first character 
>of the line gives you the number of encoded characters in that line,

I find ignorance to be annoying, don't you? ;)  Oh well, at least I'm 
learning something.

>The problem with this file may be that it doesn't have the required line of
>length 0 at the end of the text. If you look at what the real uuencode will
>produce, it looks like:
 
>M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
>M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
>;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
>`
>end
 
>The ascii code for ` is 93, which gives you a 0 length line just like the
>standard requests. (Just for kicks, ';' decodes to 27 data bytes, which
>expands to 36 bytes of uue text, which is exactly the length of the last
>line of the above example).
 
>Most likely it's the nonexistant 0 length line which is confusing trn.

Perhaps the built-in decoder does need to be updated to handle these 
properly.  I end up having to save the articles out and use a decoder on 
my home system which handles them.  So, it's obviously something that can 
be corrected.

At this point, however, it would be nice to know how I could pipe the 
relevant articles out to an external decoder and have the result be the 
same as if this weren't a problem.  I.e. use a macro from TRN and end up 
with decoded files in my chosen dir as normal.  I'll rtfm some more.

Thanks.

-Nick


Re: TRN and incomplete binary extraction
#18224
Author: Brady Montz
Date: Sun, 28 Jan 1996 00:00
64 lines
3140 bytes
In article <4efl3d$jet@rodelo.cyberverse.com>,
Nick <gruel@hondo.cyberverse.com> wrote:
>I asked earlier a question regarding how to install an update to the
>uudecoder in TRN - apparently the reason for asking was incorrect.  I've
>been informed that the '755' header on some articles has nothing to do
>with the problem (though it appeared so at first).  So I looked a little
>deeper and found something consistent.
>
>The problem appears to be that some form of uuencoder that various people 
>are using leaves the last line of uuencoded data without the 'M' in 
>column 1.  Frex:
>
>  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
>  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
>  $#P__V0 0 0
> 
>  end
>  END -- Cut Here -- cut here
>
>This appears to be what is causing the built-in decoder to think the 
>extraction is to be continued in the body of a following article.
>
>Unfortunately this also appears to be fairly common.  Is there any
>practical/convenient way to convince TRN to complete extractions in these
>cases? 
>
>Thanks.
>
>-Nick
>

I don't believe that this is necessarily incorrect. The first character of the
line gives you the number of encoded characters in that line, after you do
this: (firstchar - ' ') & 077. 'M' - ' ' gives you 45. There are 60 characters
(excluding the M) on the 'M' lines, and that gives you 45 encoded characters
(as each 3 characters of data get encoded as 4). '$' translates to 4 data
bytes, which would expand to 8 encoded chars (the line is supposed to be
always padded to a multiple of 4). That line is 2 bytes too long it seems, but
when I was writing my uudecoder I found that many encoders don't conform to
that "multiple of 4 rule" very well, for no reason discernable to me.

The problem with this file may be that it doesn't have the required line of
length 0 at the end of the text. If you look at what the real uuencode will
produce, it looks like:

M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
`
end
end

The ascii code for ` is 93, which gives you a 0 length line just like the
standard requests. (Just for kicks, ';' decodes to 27 data bytes, which
expands to 36 bytes of uue text, which is exactly the length of the last
line of the above example).

Most likely it's the nonexistant 0 length line which is confusing trn.

-- 
Brady Montz
bradym@cs.arizona.edu

Re: TRN and incomplete binary extraction
#18240
Author: Mark Shadley
Date: Sun, 28 Jan 1996 00:00
42 lines
2072 bytes
In article: <4eg3hh$j74@optima.cs.arizona.edu>, 
Brady Montz <bradym@mahler.cs.arizona.edu> wrote:
> In article <4efl3d$jet@rodelo.cyberverse.com>,
> Nick <gruel@hondo.cyberverse.com> wrote:
...
> >The problem appears to be that some form of uuencoder that various people 
> >are using leaves the last line of uuencoded data without the 'M' in 
> >column 1.  Frex:
> >
> >  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
> >  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
> >  $#P__V0 0 0
> > 
> >  end
> >  END -- Cut Here -- cut here
> >
> >This appears to be what is causing the built-in decoder to think the 
> >extraction is to be continued in the body of a following article.
...

> The problem with this file may be that it doesn't have the required line of
> length 0 at the end of the text. If you look at what the real uuencode will
> produce, it looks like:
> 
> M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
> M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
> ;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
> `
> end

That looks to me like the most likely reason.

It's interesting though, in most cases where trn's builtin uudecoder
fails; if the article is saved to text, then manually decoded, it
usually decodes ok using uudecode.

Mark
--
Mark Shadley <shadcat@catcher.com>
pgp id:C596C1F9 - fp:B60A796CAF6769B9 0688C30B390A0A66 - on servers

Re: TRN and incomplete binary extraction
#18244
Author: Nick
Date: Sun, 28 Jan 1996 00:00
42 lines
2231 bytes
In article <4eg3hh$j74@optima.cs.arizona.edu>,
Brady Montz <bradym@mahler.cs.arizona.edu> wrote:

>I don't believe that this is necessarily incorrect. The first character of the
>line gives you the number of encoded characters in that line,

I find ignorance to be annoying, don't you? ;)  Oh well, at least I'm 
learning something.

>The problem with this file may be that it doesn't have the required line of
>length 0 at the end of the text. If you look at what the real uuencode will
>produce, it looks like:
>
>M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
>M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
>;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
>`
>end
>
>The ascii code for ` is 93, which gives you a 0 length line just like the
>standard requests. (Just for kicks, ';' decodes to 27 data bytes, which
>expands to 36 bytes of uue text, which is exactly the length of the last
>line of the above example).
>
>Most likely it's the nonexistant 0 length line which is confusing trn.

Perhaps the built-in decoder does need to be updated to handle these 
properly.  I end up having to save the articles out and use a decoder on 
my home system which handles them.  So, it's obviously something that can 
be corrected.

At this point, however, it would be nice to know how I could pipe the 
relevant articles out to an external decoder and have the result be the 
same as if this weren't a problem.  I.e. use a macro from TRN and end up 
with decoded files in my chosen dir as normal.  I've never made use of 
the 'E' command, but will look into it.

Thanks.

-Nick

Re: TRN and incomplete binary extraction
#18276
Author: John E. Davis
Date: Mon, 29 Jan 1996 00:00
32 lines
1950 bytes
On 28 Jan 1996 23:23:37 GMT, Nick <gruel@hondo.cyberverse.com>
wrote:
 : >Most likely it's the nonexistant 0 length line which is confusing trn.
 : 
 : Perhaps the built-in decoder does need to be updated to handle these 
 : properly.  I end up having to save the articles out and use a decoder on 
 : my home system which handles them.  So, it's obviously something that can 
 : be corrected.

I believe that the program that is encoding the file should be corrected and
not trn since it works correctly in this regard.  The man page for uuencode
clearly states:

   [...]
     The body consists of a number of  lines,  each  at  most  62
     characters long (including the trailing NEWLINE). These con-
     sist of a character count, followed by  encoded  characters,
     followed  by  a  NEWLINE.  The  character  count is a single
   [...]
     multiple of 4.  The body is terminated  by  a  line  with  a
     count of zero.  This line consists of one ASCII SPACE.

     The trailer line consists of end on a line by itself.

It makes no sense for all decoders to be modified to take care of one
brain-damaged encoder.  I suggest that the author of the defective software
be notified of the problem so that it can be corrected.

--John


Re: TRN and incomplete binary extraction
#18279
Author: Andy Rabagliati
Date: Mon, 29 Jan 1996 00:00
16 lines
1108 bytes
Bill Mageors<bmageors@europa.lonestar.org> wrote:

>I have a question to add about the TRN news reader. How do I post
>a new message to a newsgroup? I see how to follow up using "f" or
>"F" and "r" & "R" to replay via email but there is no command to
>post a NEW msg. Does anyone know how to do this using TRN?
>


Recent versions prompt you after "f" if this is a new message.
However, try ":p".

Cheers,     Andy!


Re: TRN and incomplete binary extraction
#18286
Author: Brady Montz
Date: Mon, 29 Jan 1996 00:00
38 lines
2148 bytes
In article <slrn4goidt.9h9.davis@wiwaxia.mit.edu>,
John E. Davis <davis@space.mit.edu> wrote:

>I believe that the program that is encoding the file should be corrected and
>not trn since it works correctly in this regard.  The man page for uuencode
>clearly states:
>
>   [...]
>     The body consists of a number of  lines,  each  at  most  62
>     characters long (including the trailing NEWLINE). These con-
>     sist of a character count, followed by  encoded  characters,
>     followed  by  a  NEWLINE.  The  character  count is a single
>   [...]
>     multiple of 4.  The body is terminated  by  a  line  with  a
>     count of zero.  This line consists of one ASCII SPACE.
>
>     The trailer line consists of end on a line by itself.
>
>It makes no sense for all decoders to be modified to take care of one
>brain-damaged encoder.  I suggest that the author of the defective software
>be notified of the problem so that it can be corrected.
>
>--John
>

I think that there are a lot of broken encoders out there, but people
who write crappy software should get beaten over the head. It's a lot easier
to write a correct uuencode program than it is to make a decoder which
handles correctly the various permutations of uuencode that exist.

I personally wish that people would start using something better than uuencode
for postings in the first place. 

-- 
Brady Montz
bradym@cs.arizona.edu

Re: TRN and incomplete binary extraction
#18293
Author: Bill Mageors
Date: Mon, 29 Jan 1996 00:00
7 lines
871 bytes
I have a question to add about the TRN news reader. How do I post
a new message to a newsgroup? I see how to follow up using "f" or
"F" and "r" & "R" to replay via email but there is no command to
post a NEW msg. Does anyone know how to do this using TRN?


Re: TRN and incomplete binary extraction
#18321
Author: Ollivier Robert
Date: Mon, 29 Jan 1996 00:00
16 lines
1329 bytes
In article <1996Jan29.023547.21417@europa.lonestar.org>,
Bill Mageors <bmageors@europa.lonestar.org> wrote:
> I have a question to add about the TRN news reader. How do I post
> a new message to a newsgroup? I see how to follow up using "f" or

You can use ":p" (no, this is not a smiley :-))

Anyway, if you type "f" on an article, it will ask you if you want to start
aother thread, so answer "yes". 

[[ cc'ed to Bill ]]
-- 
Ollivier ROBERT  -=-=-  FreeBSD 2.x FAQ maintainer -=-=-  roberto@freebsd.org
-=-=-=-=-=- Support The Free UNIX Systems !  FreeBSD Linux NetBSD -=-=-=-=-=-

Re: TRN and incomplete binary extraction
#18339
Author: Tony Eva
Date: Tue, 30 Jan 1996 00:00
49 lines
2442 bytes
bradym@mahler.cs.arizona.edu (Brady Montz) wrote:

> In article <4efl3d$jet@rodelo.cyberverse.com>,
> Nick <gruel@hondo.cyberverse.com> wrote:
> > ...
> >The problem appears to be that some form of uuencoder that various people 
> >are using leaves the last line of uuencoded data without the 'M' in 
> >column 1.  Frex:
> >
> >  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
> >  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
> >  $#P__V0 0 0
> > 
> >  end
> >  END -- Cut Here -- cut here
>
> ...
> 
> The problem with this file may be that it doesn't have the required line of
> length 0 at the end of the text. If you look at what the real uuencode will
> produce, it looks like:
> 
> M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
> M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
> ;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
> `
> end

The last line doesn't have to have a length character of '`'.  The
requirement is that (length character - ' ' & 0x3F) == 0.  This
requirement is satisfied by the space character as well.

To quote from the HP-UX uuencode(4) man page:

"The body is terminated by a line with a count of zero.  This line
consists of one ASCII space."

Most uuencoders use a back quote (`) character instead of a space in
the last line, presumably because many mail programs will strip off
trailing spaces from a line and therefore reduce the last line to just
a null line if a space was used.  However, it is valid to have a last
line consisting of just a single space and trn's uudecoder should
treat it correctly as the end of file.

-- 
Tony Eva       | BNR Europe Ltd, Maidenhead, Berkshire, SL6 4AG, UK
tonyeva@bnr.ca |             My opinions only, not BNR's

Re: TRN and incomplete binary extraction
#18350
Author: Brady Montz
Date: Tue, 30 Jan 1996 00:00
33 lines
1670 bytes
In article <4ekpno$i4o@bmdhh222.bnr.ca>, Tony Eva <tonyeva@bnr.ca> wrote:
>bradym@mahler.cs.arizona.edu (Brady Montz) wrote:
>
>> In article <4efl3d$jet@rodelo.cyberverse.com>,
>> Nick <gruel@hondo.cyberverse.com> wrote:
>> >
>> >  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
>> >  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
>> >  $#P__V0 0 0
>> > 
>> >  end
>> >  END -- Cut Here -- cut here
>>
>> 
>> M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
>> M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
>> ;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
>> `
>> end
>
>The last line doesn't have to have a length character of '`'.  The
>requirement is that (length character - ' ' & 0x3F) == 0.  This
>requirement is satisfied by the space character as well.
>

Doh! You score. I knew that, really I did! Yes, the above uuencoded
stuff is completely correct, and trn should handle it.

--
Brady Montz
bradym@cs.arizona.edu

Re: TRN and incomplete binary extraction
#18353
Author: Kim DeVaughn
Date: Tue, 30 Jan 1996 00:00
32 lines
1747 bytes
Had a typo in my previous reply, which I tried to cancel ... this reply is
corrected.

In article <4ei9nb$3oj@sidhe.hsc-sec.fr>,
	Ollivier Robert <roberto@hsc.fr.net> wrote:
|
| In article <1996Jan29.023547.21417@europa.lonestar.org>,
|	  Bill Mageors <bmageors@europa.lonestar.org> wrote:
| >
| > I have a question to add about the TRN news reader. How do I post
| > a new message to a newsgroup? I see how to follow up using "f" or
| 
| You can use ":p" (no, this is not a smiley :-))

Alternatively, you can do a f(ollowup) on the "psuedo-article" that's just
past the end of the selector's article listing.

Manually, from the selector, use "+$f", or put a macro in your RNMACRO file
similar to:

# W - use W from the thread select level to make an original posting
#
W   %(%m=t?+$f:W)


/kim

===========================================================================
Excuse me ... I have to go vacuum my files now ...
          ... before they magically show up on a coffee-table somewhere ...

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads