🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #80447

Re: [slrn] My_Posts format

#80447
From: Matthias Friedrich
Date: Sat, 16 Jun 2001 20:06
31 lines
1951 bytes
Thomas Schultz <tststs@gmx.de> wrote:
> * William Clifford [2001-06-16 15:07] :
> [...]
>> 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.

> Actually, slrn uses the mbox format; grepmail whines because slrn does
> not insert any "Date:" header lines.  When posting, their generation
> can be left to the server (and there are reasons for doing so);
> however, it looks like I need to add them at least in the Archive for
> RFC 2822 compatibility.  Will be in the next release.

Does mbox require messages to be RFC-2822 compliant? I'm not even sure
if there's a formal format specification.

Anyway, old slrn-generated files can easily be rewritten using a
simple sed script ('s' command broken for readability):

#v+
#! /bin/sed -f
/^From / {
	p
	s/^.*\(...\) \(...\) \(..\) \(..:..:..\) \(....\)$/
    Date: \1, \3 \2 \5 \4 +0000/
}
#v-

bye,
    Matthias
Technical Details
Message-ID: <slrn9inf1g.1ki.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!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!howland.erols.net!fu-berlin.de!uni-berlin.de!212.144.120.83!not-for-mail
References: <slrn9ij70j.3hb.wobh@thark.barsoom> <slrn9ijokq.h9.matt@endeavour.mafr.de> <slrn9imu5l.1j1.wobh@thark.barsoom> <slrn9ina1m.1ul.tststs@starflower.tststs.ddns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9inf1g.1ki.matt@endeavour.mafr.de>
Subject: Re: [slrn] My_Posts format
Date: Sat, 16 Jun 2001 20:06:08 +0000
From: matt@mafr.de (Matthias Friedrich)
References: <slrn9ij70j.3hb.wobh@thark.barsoom> <slrn9ijokq.h9.matt@endeavour.mafr.de> <slrn9imu5l.1j1.wobh@thark.barsoom> <slrn9ina1m.1ul.tststs@starflower.tststs.ddns.org>
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!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!howland.erols.net!fu-berlin.de!uni-berlin.de!212.144.120.83!not-for-mail
Newsgroups: news.software.readers
Organization: Projekt Chaos
Lines: 30
NNTP-Posting-Host: 212.144.120.83
X-Trace: fu-berlin.de 992722217 9345136 212.144.120.83 (16 [47474])
User-Agent: slrn/0.9.7.1 (Linux)