Thread View: news.software.nn
3 messages
3 total messages
Started by Aaron Hsu
Sun, 09 Jul 2006 02:32
Binaries in NN?
Author: Aaron Hsu
Date: Sun, 09 Jul 2006 02:32
Date: Sun, 09 Jul 2006 02:32
15 lines
1932 bytes
1932 bytes
Is there any chance of using nn to decode binaries? I noticed what seemed to be the ability to decode uuencoded articles, but I was hoping maybe there might be some method of decoding multi-part binaries in Yenc format or some such. If nn does not do this natively (and I wouldn't really blame it for not doing this, after all, nn is meant for *reading* news), is there a way to select a group of articles matching certain headers and download the appropriate parts in such form that they can be processed by an external program? Does anyone have any experience with this? - Aaron -- Aaron Hsu <spam@sacrificumdeo.net>
Re: Binaries in NN?
Author: J. Porter Clark
Date: Sun, 09 Jul 2006 03:45
Date: Sun, 09 Jul 2006 03:45
78 lines
4476 bytes
4476 bytes
Aaron Hsu <spam@sacrificumdeo.net> writes:
>Is there any chance of using nn to decode binaries? I noticed what
>seemed to be the ability to decode uuencoded articles, but I was
>hoping maybe there might be some method of decoding multi-part
>binaries in Yenc format or some such.
>If nn does not do this natively (and I wouldn't really blame it for
>not doing this, after all, nn is meant for *reading* news), is there a
>way to select a group of articles matching certain headers and
>download the appropriate parts in such form that they can be processed
>by an external program? Does anyone have any experience with this?
nn can handle uuencoded articles, and that's about it. (There
are some cases of uuencoding that it misbehaves on.)
The best way I've found to handle yEncs is to save each article
into a separate file using "*" in the save filename (like "q*"),
then use a separate program (like "ydecode -k q*") to decode the
pieces.
There are some problems:
1. The ydecode program that was written by Don Moore
<bboy@bboy.net> seems to think that all article files are in
"wire format" and need unescaping of dots at the beginning of
the lines. nn already does the unescaping--what newsreader
doesn't?--so I've had to patch ydecode.c to make it work (see
below). (There is a yydecode program out there, but I had
similar problems with it.)
2. ydecode does not handle extra copies of the same parts
well. So don't do that. Sometimes this is hard to avoid,
particularly when the poster is using a "stuttering" posting
program.
3. Sometimes there is corruption from missing parts or
whatever. If the file was posted with par2 files, what I do
is to use ydecode -k to decode all of the files, good or bad,
rename all the *.bad-* files to their proper names, and use
the par2 program to attempt to recover the data. Occasionally
this even works!
I'm not an expert on this process, because I do it very
infrequently, so it could be that there is a much better way to
make it work.
I have never attempted downloading a MIME-encoded multipart
binary that turned out to be worth even half the trouble.
--- work/yencode-0.46/src/ydecode.c.orig Fri Mar 15 23:29:14 2002
+++ work/yencode-0.46/src/ydecode.c Sun Sep 28 09:47:03 2003
@@ -461,9 +461,9 @@
else if (*b == '\t')
Verbose("%s:%lu:%d: %s", y->input_filename, lineno + y->line_offset, linect+1,
_("line begins with an unescaped TAB"));
- else if (*b == '.' && *(b+1) != '.')
+/* else if (*b == '.' && *(b+1) != '.')
Verbose("%s:%lu:%d: %s", y->input_filename, lineno + y->line_offset, linect+1,
- _("line begins with an unescaped single dot"));
+ _("line begins with an unescaped single dot")); jpc */
}
if (*(b+1) == '\r' || *(b+1) == '\n')
{
@@ -478,8 +478,8 @@
/* If this is the beginning of a line, and it's a plain dot, and the next character is also a dot,
move one character forward. */
- if (linect == 0 && *b == '.' && *(b+1) == '.')
- b++;
+/* if (linect == 0 && *b == '.' && *(b+1) == '.')
+ b++; jpc */
/* For all relevant characters, set char_escaped if it was escaped (for strict checking line length) */
if (*b != '\n' && *b != '\r')
--
J. Porter Clark <jpc@suespammers.org>
Re: Binaries in NN?
Author: Chime Hart
Date: Mon, 02 Jan 2023 00:09
Date: Mon, 02 Jan 2023 00:09
5 lines
1481 bytes
1481 bytes
Hi Aaron: I realize your question was several years ago. I would think there should be a way of piping a batch of threaded articles to uudeview which has yenc support. But I am having enough challenges finding or creating a config file. Chime
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