🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #187771

Re: FAQ: Canonical list of questions Beavis refuses to answer (V1.90)

#187771
From: Troy Piggins
Date: Tue, 11 Jul 2006 07:17
57 lines
3735 bytes
* Edward Langenback wrote:
>
> On 2006-07-11, Sam <sam@email-scan.com> wrote:
>>
>> Nope.  This text is placed in the hidden preamble portion of a multipart 
>> MIME section, that MIME-compliant clients should never display.  The 
>> multipart MIME preamble, due to an idiosyncrasy of multipart MIME section 
>> formatting, is completely no-man's land.  Its contents are, by definition, 
>> undefined.  It may contain anything at all -- secret jokes, nuclear launch 
>> codes, et al -- because its contents are undefined and are only seen by 
>> obsolete clients that do not support MIME formatting.
>
> ...such as slrn?  is there something for slrn that will allow it to 
> properly deal with pgp-mime messages... give user option to verify sigs 
> and or decrypt content while not mucking up the ability to f'up or just 
> plain read the post in the first place?
>
> I've spent a bunch of time googling for answers and have come up with a 
> few things that didn't work.  I did come up with one that would allow me 
> to verify (inline) signatures, but it cannot even see pgp-mime.

My way of dealing with it:

Install 'demime' then put this in your macro file or whatever.

define demime_pgp ()
{
  variable xcharset = extract_displayed_article_header("Content-Type");
  if (string_match(xcharset,"\\Cmultipart/signed",1))
  {
    variable demime_tmp, raw_art, fp, art_demime;
    variable macro_sig =
               "\n-- \n[demime_pgp macro removed MIME PGP signature]";
    demime_tmp = "/tmp/slrn_demime."+ string (getpid () );
    raw_art = raw_article_as_string ();
    fp = fopen (demime_tmp, "w");
    if (fp == NULL)
      error (_function_name () +": could not open "+demime_tmp);
    fputs (raw_art, fp);
    fclose (fp);
    fp = popen ("/usr/local/bin/demime --quiet - < "+demime_tmp, "r");
    if (fp == NULL)
      error (_function_name () +": demime pipe failed" );
    art_demime = strjoin (fgetslines (fp), "");
    pclose (fp);
    if (art_demime != "") replace_article (art_demime+macro_sig);
    else error (_function_name () +": failed");
    system ("rm "+demime_tmp);
  }
}
() = register_hook ("read_article_hook", "demime_pgp");

-- 
Troy Piggins :                            "My karma just ran over my dogma"
 ,-o  slrn 0.9.8.1pl1/rt (score_color patch)
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 17:14:30 up 6 days,19:57,2 users,load average:0.00,0.00,0.00
Technical Details
Message-ID: <20060711171430@usenet.piggo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
References: <slrneb3p78.l9o.penryu@ruri.saiyix> <slrneb3s4n.3jv.i3x9mdw@b29x3m.invalid> <cone.1152573171.457388.22392.500@commodore.email-scan.com> <W2usEpHpvi9C092yn@visi.com> <cone.1152585282.427176.22392.500@commodore.email-scan.com> <slrneb5r6q.st9.real.address@peculiar.homeip.net>

Show Full Headers
Complete Article Headers
Message-ID: <20060711171430@usenet.piggo.com>
Subject: Re: FAQ: Canonical list of questions Beavis refuses to answer (V1.90)
Date: Tue, 11 Jul 2006 17:17:36 +1000
From: Troy Piggins <usenet-0607@piggo.com>
References: <slrneb3p78.l9o.penryu@ruri.saiyix> <slrneb3s4n.3jv.i3x9mdw@b29x3m.invalid> <cone.1152573171.457388.22392.500@commodore.email-scan.com> <W2usEpHpvi9C092yn@visi.com> <cone.1152585282.427176.22392.500@commodore.email-scan.com> <slrneb5r6q.st9.real.address@peculiar.homeip.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: news.software.readers
Reply-To: usenet-0607@piggo.com
User-Agent: slrn/0.9.8.1pl1/rt (Linux)
Lines: 57
NNTP-Posting-Host: 203.206.109.220
X-Trace: 1152602474 per-qv1-newsreader-01.iinet.net.au 21707 203.206.109.220