🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #80446

Re: [slrn] My_Posts format

#80446
From: Matthias Friedrich
Date: Sat, 16 Jun 2001 19:10
34 lines
1953 bytes
William Clifford <wobh@thark.barsoom.invalid> wrote:
> Matthias Friedrich <matt@mafr.de> wrote:
[...]
>> Slrn saves articles in mbox style (the standard Mailbox format on
>> Unix) if you hit the 'o' key. You can of course use grepmail on these
>> files.

>> Or do you mean something else with "news archive"?

> It turns out I was. I was trying to use grepmail on the My_Posts file
> which apparently is not in the unix mbox format and therefore grepmail
> wasn't working.

Oh, sorry. You're right. My grepmail also says

| ** Skipping non-mailbox ASCII file: 'slrn_saved_posts' **

But my "slrn_saved_posts" file *is* in valid mbox format. So I had a
look at grepmail (which is a perl script) and found the following:

| if ($buffer =~ /^From: /im && $buffer =~ /^Date: /im)

Since slrn doesn't write a Date: header, grepmail doesn't recognize it
as an mbox file. You can easily bypass this check by changing the
above line to

| if ($buffer =~ /^From: /im )

Maybe you should contact the grepmail author and tell him of this
problem.

HTH,
    Matthias
Technical Details
Message-ID: <slrn9inbol.ue.matt@endeavour.mafr.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!fu-berlin.de!uni-berlin.de!212.144.121.112!not-for-mail
References: <slrn9ij70j.3hb.wobh@thark.barsoom> <slrn9ijokq.h9.matt@endeavour.mafr.de> <slrn9imu5l.1j1.wobh@thark.barsoom>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9inbol.ue.matt@endeavour.mafr.de>
Subject: Re: [slrn] My_Posts format
Date: Sat, 16 Jun 2001 19:10:14 +0000
From: matt@mafr.de (Matthias Friedrich)
References: <slrn9ij70j.3hb.wobh@thark.barsoom> <slrn9ijokq.h9.matt@endeavour.mafr.de> <slrn9imu5l.1j1.wobh@thark.barsoom>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!fu-berlin.de!uni-berlin.de!212.144.121.112!not-for-mail
Newsgroups: news.software.readers
Organization: Projekt Chaos
Lines: 33
NNTP-Posting-Host: 212.144.121.112
X-Trace: fu-berlin.de 992718821 9519637 212.144.121.112 (16 [47474])
User-Agent: slrn/0.9.7.1 (Linux)