Article View: news.software.readers
Article #203522Re: [Dialog] .DAT to .mbox conversion?
From: Bernd Rose
Date: Sat, 11 Aug 2007 03:38
Date: Sat, 11 Aug 2007 03:38
38 lines
2881 bytes
2881 bytes
On Thu, 9 Aug 2007 01:42:39 -0400, Oliver Cromm wrote: >>> I didn't express myself clearly? I don't see the bribe going up. [...] >> $35 [...] > It was basically a joke ... I had a good laugh watching this exchange during the last days. Since Charles posted his offer I wondered how you meddle out of this. ;-) > Well, here's a quick hack that worked for my SeaMonkey AFAICS in a few > tests. Tell me if it does the job for you. There are differences between > what various applications expect and accept as "mbox". [...] > FROMLINE = "From abc@xyz.invalid Mon Jan 01 00:00:00 1970\r\n" You could extract the envelope-From from the Return-Path: header. It is always the first line for mails and not available for Usenet postings. So you could also filter out the Usenet postings during the parsing process, this way. But because of the little importance of the envelope-From for *.mbox handling, I suggest to stick with a solution like the one you posted, but with a minor change. If you use >From msgXXXXX@export.from.40tude.invalid [24 chars current date 'asctime'] you can archive them and can easily identify the content, later. (The XXXXX would be a counter, of course.) > line.sub!(/^From /, ">From ") You need to adjust this one. You not only need to "escape" lines starting with "From", but also with ">From", ">>From", and so on. HTH. Bernd
Technical Details
Message-ID:
<4ztwohnytd2r$.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.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mailReferences:
<16n9t1ynvi8j2.dlg@ncdm.com> <nxsahp9pj00b$.dlg@sqwertz.com> <1wk9pc4x2ck6z$.dlg@ocromm.my-fqdn.de> <1ty9e76kkz658.dlg@ncdm.com> <nydjhcd39a0y$.dlg@ocromm.my-fqdn.de> <1vvi7q5d0q4rf.dlg@ncdm.com> <1a3wznzipiq2h$.dlg@ocromm.my-fqdn.de> <9si85jancxkk.dlg@ocromm.my-fqdn.de> <zk0obxz7cif8.dlg@ncdm.com> <14w8exlprcgmx$.dlg@ocromm.my-fqdn.de>Show Full Headers
Complete Article Headers
Message-ID: <4ztwohnytd2r$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: [Dialog] .DAT to .mbox conversion? Date: Sat, 11 Aug 2007 05:38:15 +0200 From: Bernd Rose <b.rose.tmpbox@expires-2007-08-31.arcornews.de> References: <16n9t1ynvi8j2.dlg@ncdm.com> <nxsahp9pj00b$.dlg@sqwertz.com> <1wk9pc4x2ck6z$.dlg@ocromm.my-fqdn.de> <1ty9e76kkz658.dlg@ncdm.com> <nydjhcd39a0y$.dlg@ocromm.my-fqdn.de> <1vvi7q5d0q4rf.dlg@ncdm.com> <1a3wznzipiq2h$.dlg@ocromm.my-fqdn.de> <9si85jancxkk.dlg@ocromm.my-fqdn.de> <zk0obxz7cif8.dlg@ncdm.com> <14w8exlprcgmx$.dlg@ocromm.my-fqdn.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.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.15.41 (0067550b.88.432) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Lines: 38 Organization: Arcor NNTP-Posting-Date: 11 Aug 2007 05:34:45 CEST NNTP-Posting-Host: bf487124.newsspool3.arcor-online.net X-Trace: DXC=1P`O40?927D@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA^; 5]aA^R6>BiM`30; `0=VGBYf[Tl<>RjJhYfPg1d_; BD:PkjCbld@`O X-Complaints-To: usenet-abuse@arcor.de