🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #5845

Re: converting files into mbox format

#5845
From: Jonathan McDowell
Date: Mon, 27 Dec 1999 00:00
29 lines
1760 bytes
Dan Glover <dan@dangl.demon.co.uk> wrote:
> In article <19991226155622.A309@netlink.co.uk>, Darren Wyn Rees 
> <merlin@netlink.co.uk> wrote:

>>i need help in converting some files into a format
>>suitable for reading with a mail reader (viz. mutt).
> mutt supports several formats: do you have any specific one in mind?

I'm assuming mbox.

>>is there any means of doing this fairly automatically ?
> The way I'd do it is to *mail* the articles to the appropriate user.
> You might want to strip out some of the news headers first, using sed or
> whatever.

Feed them to procmail?

for i in /var/spool/news/freeserve/help/unix/*; \
	do (echo "From news@news  `date`"; cat $i) | procmail; done

seems to work here.

J.

-- 
Oxford University / BA Computation / Can't you see I want tenderness,
Computer Society / Finalist       / you idiot?
President       /                /
Technical Details
Message-ID: <848bo1$82k$1@noodles.freeserve.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <19991226155622.A309@netlink.co.uk> <FnEuvM.33t@dangl.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4424,c7b58c8477ad0d54
X-Google-Attributes: gidf4424,public
X-Google-Thread: 111053,c7b58c8477ad0d54
X-Google-Attributes: gid111053,public
From: Jonathan McDowell <noodles@earth.li>
Subject: Re: converting files into mbox format
Date: 1999/12/27
Message-ID: <848bo1$82k$1@noodles.freeserve.co.uk>
X-Deja-AN: 565400772
Sender: Jonathan McDowell <noodles@malcolm.orange>
References: <19991226155622.A309@netlink.co.uk> <FnEuvM.33t@dangl.demon.co.uk>
X-Complaints-To: abuse@theplanet.net
X-Trace: newsg2.svr.pol.co.uk 946323025 19563 62.136.34.9 (27 Dec 1999 19:30:25 GMT)
Organization: Noodles' BBS (+44-1693-250834)
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (Linux/2.0.38 (i586))
NNTP-Posting-Date: 27 Dec 1999 19:30:25 GMT
Newsgroups: comp.mail.misc,freeserve.help.unix