🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #222121

Re: [Dialog] Cracking Richard

#222121
From: Bernd Rose
Date: Sat, 14 Jun 2008 07:50
83 lines
4902 bytes
On Fri, 13 Jun 2008 17:39:00 -0500, Ron Ford wrote:

> Thanks for your reply, Bernd.  

You're welcome. :-)

> I seem to have liked every Bernd I've met.

I doubt this observation holds to make it a law of nature.  ;-)

> I did what you said and ended up with 524K of Richard's posts in RMain.txt!
> That seems impossible to me as I cleared comp.lang.fortran yesterday.

The msg*.dat files also contain all deleted messages until "Compact
Database" is run. If you have an old setup of Dialog, you may even
have "undeletable" messages (like I have, myself), which are stored
in the database, but appear nowhere in Dialog. There have been some 
early Beta versions, which messed up parts of the database, while
still leaving it functional.

> -- 
> Richard Maine                    | Good judgement comes from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle           |  -- Mark Twain

Please avoid posting a sig-separator line unaltered inside quotes.
Some people use special formats for sigs or even set sigs to be
hidden. This way they may miss what you write after this line.

IMHO, the best way to paste a citation of an extern text is by
using <Edit><Paste as custom quote> with a special quote char
like |. If this isn't an option, delete/mung the sig separator 
inside the quote.

> 2D 20 4D 61 72 6B 20 54 77 61 69 6E 0D 0A 7F 53 - Mark Twain...S
> 
> I can see in the hex editor that the control character that precedes
> Subject is DEL or hex 7F.  

I saw that you already sifted out the true position of the 
separator. (I commented on this in a follow-up to that posting.)

> Can you say a few words on the syntax you used for the command line
> for mtr.exe?

Hm. The short version: Read minitrue.txt!

The longer one:
mtr.exe  -xo^^$i:sig.txt msg*.dat > RMain.txt

I decided to use a separate sig.txt, since the text you're looking
for was too long to be used on the command line. If you would like
to filter all messages containing:
  "From: nospam@see.signature (Richard Maine)"
you may as well execute this directly (all on one line):

mtr.exe -xo^^$ msg*.dat "[^\x7F]*\r\nFrom: nospam@see.signature (Richard Maine)\r\n[^\x7F]*\x7F" > RMain.txt

All options are concatenated. You need to look them up, separately, 
from the MiniTrue documentation.
-x    ... search string contains regular expressions
-o^^  ... output text will not be prepended by file name (where the
          text has been found); please note that the double caret is
          necessary on Windows command line, because a single caret
          is interpreted as an escape character
-o$   ... no contextual lines in output (the RegEx is built in a way
          to fetch to whole text; therefore no context is necessary)

The most important parts of the RegEx are [^\x7F]* and [\x7F]. While
the former catches all chars *except* 0x7F, finds the latter *only*
that character. 

And just another thought: If messages are found as first messages
inside msg*.dat files, the header of the msg*.dat (01 00 00 00) will 
appear in the output. You can prevent this by replacing [^\x7F] with
[^\x00\x01\x7F]. Please note that you will encounter problems with all 
these search strings, if the excluded characters appear inside the
message, e.g. when the messages carry attachments.

The nice thing about MiniTrue is the possibility to search multiline
RegEx without special efforts. Therefore I chose this tool.

Bernd
Technical Details
Message-ID: <d6bs7tyfi7gb$.dlg@b.rose.tmpbox.news.arcor.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!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <uanmp8cyck7t$.mxpi34a897nf$.dlg@40tude.net> <1n5m5cak1rimq$.dlg@b.rose.tmpbox.news.arcor.de> <2frrqb96i73b$.dlg@b.rose.tmpbox.news.arcor.de> <17c4o5xb0usay.55sc1qp1wgky.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <d6bs7tyfi7gb$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: [Dialog] Cracking Richard
Date: Sat, 14 Jun 2008 09:50:31 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2008-06-30.arcornews.de>
References: <uanmp8cyck7t$.mxpi34a897nf$.dlg@40tude.net> <1n5m5cak1rimq$.dlg@b.rose.tmpbox.news.arcor.de> <2frrqb96i73b$.dlg@b.rose.tmpbox.news.arcor.de> <17c4o5xb0usay.55sc1qp1wgky.dlg@40tude.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!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (33df56cb.233.304)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 83
Organization: Arcor
NNTP-Posting-Date: 14 Jun 2008 09:50:33 CEST
NNTP-Posting-Host: cbaaecc9.newsspool2.arcor-online.net
X-Trace: DXC=d[Ri2o[W6EK78PK[oJ2ng@A9EHlD;
 3YcB4Fo<]lROoRA8kF<OcfhCOKkieLe02d6fIBYf[Tl<>RjJjOZ_ZiUe4<MDe5I[`HN?_E
X-Complaints-To: usenet-abuse@arcor.de