Article View: comp.mail.mush
Article #150Re: using folders with other formats
From: David W. Vezie
Date: Fri, 18 Aug 1989 00:42
Date: Fri, 18 Aug 1989 00:42
50 lines
2248 bytes
2248 bytes
(Dan and Bart, if I goof up here, let me know, but I'm taking your
suggestion of other people piping in with answers, so it isn't just you two)
> Can mush be configured to handle folders with the following
> headers?
>
> Return-Path: @bloom-beacon.mit.edu:xpert-request@expo.lcs.mit.edu
> Received: ...
> Received: ...
> Date: 19 Jun 89 12:19:48 GMT
> From: Colas NAHABOO <mcvax!inria!mirsa!colas@uunet.uu.net>
> Organization: Koala Project -- BULL/INRIA
> Subject: GWM Announcement
> Message-Id: <189@mirsa.inria.fr>
> Sender: xpert-request@expo.lcs.mit.edu
> To: xpert@expo.lcs.mit.edu
Mush by default looks for a line, after a blank line, that begins
with "From ". If it doesn't see any such lines, then it won't find
any messages (treat everything as "garbage before the first line").
I take it from your message that there is no such line in the file.
Is there some recognizable pattern that begins each message? You
can either use some program to add a From_ line in front of each
pattern, or you can set mush to use that pattern as the message
separator (via MSG_SEPARATOR in config.h).
Here's a little sed script that I think would work for you:
sed 's/^\(Return-Path: \)\(.*\)/From \2 Thu Aug 17 17:55:54 1989\
\1\2/' < mail.gwm > mush.gwm
Keep in mind that the date part of the From line isn't used in mush
when a Date: field exists.
This also assumes that all headers begin with Return-Path.
> --
> --- duane voth duanev@mcc.com
> ---- ALL systems are arbitrary!
> --- effectiveness is the measure of Truth
> --
--
Name: David W. Vezie | Company: Lucasfilm Ltd
UUCP: {apple|pacbell}!well!dv | Last-name-pronounced: "VEE-zee"
Internet: dv@well.sf.ca.us | Phone: +1 415 662 1222
Best_Picture: Indiana Jones and the Last Crusade (what else!!)
Technical Details
Message-ID:
<8908180042.AA05056@well.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!well.sf.ca.us!dvShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!well.sf.ca.us!dv From: dv@well.sf.ca.us (David W. Vezie) Newsgroups: comp.mail.mush Subject: Re: using folders with other formats Message-ID: <8908180042.AA05056@well.UUCP> Date: 18 Aug 89 00:42:09 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 50