Subject: emacs/rmail (babyl) -> pine folder?

From: [email-masked] (Barry Shein)
Date: Tue, 13 Jul 1993 01:24:24 -0400

Does anyone by any wild chance have a program that can translate an
emacs/rmail (BABYL) format mail folder (RMAIL file) to a pine mail
folder? Someone here ran emacs/rmail to try it and later regretted it.
Unfortunately it's not entirely trivial (I don't think) because BABYL
format throws away the Unix "From" line (not to be confused with the
"From:" line.)

Thanks.

        -Barry Shein

Software Tool & Die    | [email-masked]          | uunet!world!bzs
Purveyors to the Trade | Voice: 617-739-0202        | Login: 617-739-WRLD

---

From: Mark Crispin <[email-masked]>
Date: Mon, 12 Jul 1993 22:41:41 -0700 (PDT)

I'm not aware of such a program, but if some nice person would like to write a
c-client driver for babyl format I'll consider it for inclusion in future
releases of c-client (meaning that Pine will eventually support babyl format
as well).

---

From: Chris Martin <[email-masked]>
Date: Tue, 13 Jul 93 08:57:54 BST

You can run Emacs again and then save the messages using C-o file RET
which "appends a copy of the current message to the file <file>,
writing it in Unix mail format"

I hope this helps,

Chris

---

From: [email-masked] (Barry Shein)
Date: Tue, 13 Jul 1993 15:01:25 -0400

From: Chris Martin <[email-masked]>
>writing it in Unix mail format"

Yes, that works one by one. The real problem here is that the person
ran emacs/rmail on someone else's advice I guess and immediately
decided she had no idea how to use it and didn't want to get into this
so quit. But it had already grabbed all her messages. So she won't be
able to go thru one by one, I suppose one of us could do this for her
plus or minus the privacy issue (of course we'd ask, but she may not
be thrilled and I wouldn't blame her.)

Anyhow, I guess I was just as concerned for the NEXT time this
happens, which I'll guess it inevitably will.

Thanks.

        -Barry Shein

---

From: Bob Gregory <[email-masked]>
Date: Tue, 13 Jul 1993 23:07:42 +0300 (IDT)

> writing it in Unix mail format"

The method described works, but is tedious to type.  What I do is define
an emacs keyboard macro, e.g. 

 (fset 'rmail2bezerk
    "/tmp/mbox
d")

Which stores the current message in bezerk folder "/tmp/mbox", and marks
it for deletion. 

In RMAIL mode, map the macro to a suitable key, e.g.

 (local-set-key "e" (quote rmail2bezerk))

I use "e", because "x" is redundantly mapped to "expunge", and because it
is adjacent to "d".  This makes it real easy to browse a babyl folder and
delete, or copy and delete, each message - cleanup as you convert.

I suppose something like this can be written properly in elisp with a
mode to do a whole folder, but I'm not enough of an emacs hack, and the
above was good enough for me.

 -- Bob Gregory 	<[email-masked]>