Article View: news.software.readers
Article #50023Re: slrn 0.9.5.2: duplicated periods in post.c
From: Sherilyn
Date: Wed, 21 Jul 1999 00:00
Date: Wed, 21 Jul 1999 00:00
68 lines
3068 bytes
3068 bytes
-----BEGIN PGP SIGNED MESSAGE-----
[Sorry to follow this up]
In article <slrn7p9vts.5sh.Sherilyn@sidaway.demon.co.uk>, Sherilyn wrote:
...
>To sign my postings with PGP, I have written a macro based on the
>post-file-hook example shipped with slrn 0,9.5.2. It simply splits
>the posting into header and body sections, stripping the sig at "--",
>PGP-signs the body, and then reconstructs the posting file from the
>header, body and signature file.
>
>It's just come to my notice that the postings output are sometimes
>corrupted, and upon examining one such posting I notice that it is
>because, when I type an ellipsis ("...") on its own on a blank line,
>which is how I habitually represent a snip in quoted text in a followup,
>slrn in posting it always adds an extra "." if it finds a "." in the
>first character position in the line, thereby busting my PGP armor.
...
Still investigating this. It seems that John's code _does_ work because
the news server strips up to one period from the line (the traditional
method of checking this is RTFS, but I haven't got a copy of innd source
to hand).
The real reason for my corrupted postings is as far away as ever, but there
are definitely some postings from me with "...." instead of "...", and
removing the extra period causes the signature to verify.
Example:
Newsgroups: alt.internet.providers.uk,alt.internet.providers.uk.free
Message-ID: <slrn7p8q6l.2fk.Sherilyn@sidaway.demon.co.uk>
Perhaps my macro is introducing an extra period? I considered this first,
but it doesn't seem possible because the record copy loops are like this:
while (-1 != fgets (&line, fp))
{
if (line == "\n")
break;
() = fputs (line, header_fp);
}
() = fclose (header_fp);
% Now do body
while (-1 != fgets (&line, fp))
{
% Break on signature
if (line == "-- \n")
break;
() = fputs (line, body_fp);
}
and so on. There isn't a lot of room for a period to creep in there.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBN5UswdSR8rI01qX9AQG5gwP/SYYvIp1CG0cYXkHGBmbtewsoCZNqr6Tt
Uf9uxe3+RShz9IF7xvdte29J7RIgMAGRGPKtao2Z809/cNJIh5A2Kdxvu3MaTTbh
XiI0VjML8g3hK89mxrxMlkUwsmIyTkRi+JHJe8HWHzgBrZ9yHy990cyham/yM5hp
TioUhwLMvT4=
=4Euy
-----END PGP SIGNATURE-----
--
Sherilyn
Technical Details
Message-ID:
<slrn7pab5l.6r4.Sherilyn@sidaway.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7p9vts.5sh.Sherilyn@sidaway.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn7pab5l.6r4.Sherilyn@sidaway.demon.co.uk> Subject: Re: slrn 0.9.5.2: duplicated periods in post.c Date: Wed, 21 Jul 1999 00:00:00 +0000 From: Sherilyn@sidaway.demon.co.uk (Sherilyn) References: <slrn7p9vts.5sh.Sherilyn@sidaway.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 503367419 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 932523572 17671 (none) 212.49.226.45 X-Access: 16 [7050] Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: news.software.readers