🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #168341

Re: [Dialog] Disable HTML?

#168341
From: Andreas Loch
Date: Thu, 30 Jun 2005 05:59
55 lines
3332 bytes
2005-06-29, Alan Connor:

> On news.software.readers, in <1vqmngi22hbd$.dlg@eddie.co.uk>, "Eddie" wrote:
>> On Wed, 29 Jun 2005 21:53:37 GMT, Alan Connor wrote:

>>> What you should do is inform the person that they should be
>>> using plain text on Usenet text groups, and if they don't
>>> change their ways, killfile them.
>> 
>> I know. I did that! :)
> 
> If you were running slrn, you could write a simple macro that
> would pipe the article through an html-to-text converter.

Running Dialog you could do the same. You can use korrnews (available at 
http://www.tglsoft.de/misc/hamtools_en.htm) as converter, just enable 
the option "HTML2Text" in korrnews.ini.

In Dialog you could use this event script as a start (you better should 
first check the message header for "Content-Type: text/html" and convert 
only HTML messages, otherwise this script will slow down the message 
download dramatically):


// please change the Korrnews-path if necessary
program OnBeforeSavingMessage;

procedure OnBeforeSavingMessage(var Message: TStringlist;
                                    Servername: string;
                                    IsEmail: boolean);
begin

  result:=true;
  message.savetofile('C:\Temp\te­mp.msg');

  //give the converter some milliseconds for this...
  FileExecute(0,'C:\program files\40­tude Dialog\KorrNews\korrnews.exe',
              'open','Type:news 
Filename:"C:\Temp\temp.msg"','­',1,5000);
  message.loadfromfile('C:\Temp\­temp.msg');

end;

begin
end.


I never tried it, but it should work - at least with some minor changes.

Andreas

-- 
http://gigaschatten.de/
40tude Dialog - http://www.40tude.com/dialog/
Newsoffice.de - http://newsoffice.de/
Technical Details
Message-ID: <1120111170.09@anchedo.newsoffice.de>
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!newscon06.news.prodigy.com!prodigy.net!fu-berlin.de!newsoffice.de!not-for-mail
References: <BLEwe.1010$aY6.585@newsread1.news.atl.earthlink.net> <1vqmngi22hbd$.dlg@eddie.co.uk> <NvFwe.13748$pa3.5317@newsread2.news.atl.earthlink.net>

Show Full Headers
Complete Article Headers
Message-ID: <1120111170.09@anchedo.newsoffice.de>
Subject: Re: [Dialog] Disable HTML?
Date: Thu, 30 Jun 2005 07:59:30 +0200
From: Andreas Loch <anchedo@expires-30-06-2005.news-group.org>
References: <BLEwe.1010$aY6.585@newsread1.news.atl.earthlink.net> <1vqmngi22hbd$.dlg@eddie.co.uk> <NvFwe.13748$pa3.5317@newsread2.news.atl.earthlink.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!newscon06.news.prodigy.com!prodigy.net!fu-berlin.de!newsoffice.de!not-for-mail
Newsgroups: news.software.readers
Organization: Newsoffice.de - http://www.newsoffice.de
Lines: 55
Sender: Andreas Loch <anchedo@expires-30-06-2005.news-group.org>
Reply-To: usenet-reply@anchedo.net
NNTP-Posting-Host: localhost
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: stgb.online-anmeldung.com 1120111170 29233 127.0.0.1 (30 Jun 2005
User-Agent: Newsoffice.de - based on NewsPortal
X-Abuse-Management: 0sLWk9nXkt3bx9XN5tzQ1ZiWrF+blVeJmKZhg6BhQH/foFZnaGFVjqeoWmlucmNpiqFilaBp
X-Complaints-To: abuse@newsoffice.de
X-God: Ivanova
X-URL: http://gigaschatten.de/
X-Face: w9bMbd2{F~x6?D!\mU+yE(onhfp%2wx{YBB_WtGg/nK0[80&"Jvm0g|ZS&Z4[WfXcqdh\Nq6U-!nVSCc->LTZkQTSHd+Q<64(D]l3I!EG2a{iPHMRXY9^Ikj$\PB9TvVhM8)%W9)Ns]3i-.Tm~nX>^k+Z`4I]#UpK+LAJ&|Ai#m;
 RmU2eM*f{{Oz