Kinder, Gentler Undigest

From: Howard Schwartz (theo@ncal.verio.com)
Date: Fri, 20 Aug 1999 23:24:26 -0700 (PDT)

The standard way to read a set of messages in a listserv digest, for
yarn has been:

a) Import the digest into a yarn folder
b) Run the program, ddigest.exe on the folder
c) Run import -r on the file produced by ddigest, thereby
filtering the individual messages into a pseudo-newsgroup
d) Read/process the messages within the pseudo-newsgroup

I think I found a better way at least for me to undigest messages.
Perhaps it will appeal to others as well: The basic idea is to use
the yarn utility, editfold instead of ddigest to break up a digest
into individual messages. I simply use any convenient ediitor to
place a Ctrl-S (Ascii 19 or ^S) on the line before the first
header line of each message. In a digest using the standard RFC 1153
format, this would be the date line:

^S
Date: ----

This can be done before you run the import command, or later -- at
your convenience. One way to do this is shown by a batch file like
this:

--------------------------convert.bat----------------------------
sed -e "/^Date: /s/^Date: /\n&/" %1 > %tmp%\ttemp.2
editfold %tmp%\ttemp.2 %1 /F
del %tmp%\ttemp.*
--------------------------end convert.bat-----------------------

What a batch file like the above does is use editfold to convert
every message starting with the line, ``Date:'' into yarn header
format. You then read these messages in a yarn folder,
getting the equivalent of threading by sorting the messages
by subject (using yarn's ``T'' command). The advantages to me are:

a) You dont have to use the ddigest program, which doesnt work
very well and produces some messages that makes yarn freeze.
b) You dont have to store the messages in the potentially giant
news.dat file that contains all newsgroup posts, and.

The news.dat file is easier to corrupt and much harder to
repair than a simple yarn folder file.
c) You have a more simple undigest procedure that potentially
does not require, as ddigest does, a separate script for each
type of digest, and a multi-step import procedure.

If listserv messages are in a folder, how does one send replys
to the whole listserv rather than one person? There are many
ways to do this. Perhaps the most simple is to simply put the
mail address of the listserv in your yarn alias file. Another
approach is to use your editor (e.g., sed) to insert the listserv
address in the ``From:'' line of each message.

Hope this idea is of some use to some folks.