On Wed, 2006-01-11 at 15:49 +0000, Don McLaughlin wrote:
> I'd appreciate any pointers to some command-line tools for doing the
> following.
>
> (1) Take mail and news messages as input files and produce as output
> files the same messages but with all the attachments, HTML parts,
> and other non-plain-text stuff deleted, keeping the headers and
> the plain-text of the body, as if the sender had written the
> message without attachments or HTML.
>
> What I really want to do is use maildirs and news spools as input
> and produce a directory of cleaned files, which will then be used
> for corpus linguistics. But if I can find a straight filter
> program (stdin, stdout) and I can write a script to find -exec it.
>
> I looked at mimefilter but I don't want to generate outgoing
> messages to the senders and all that.
>
>
> (2) Take a mail message file as input and output a directory
> containing separate files of the decoded attachments and the text
> of the message (preferably with the mail headers).
>
> This would be for archiving my own e-mail.
Maybe this would help.
--
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
"As the light changed from red to green to yellow and back to red
again, I sat there thinking about life. Was it nothing more than
a bunch of honking and yelling? Sometimes it seemed that way."
Jack Handey
--- Begin Message ---
Package: wnpp
Severity: wishlist
Owner: gregor herrmann <[EMAIL PROTECTED]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Package name : mailtextbody
Version : 0.1.1
Upstream Author : Toastfreeware <[EMAIL PROTECTED]>
* URL : http://www.toastfreeware.priv.at/
* License : GPL
Description : Tool to return the body of an email message
Mailtextbody reads a complete email message on stdin and returns
the body (the text/plain part) on standard out.
Mailtextbody can therefore easily be included in other tools using
pipes.
- -- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.200601042007
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDxsh0OzKYnQDzz+QRAmKDAKCdku0Q+NI9aF6EYKoIw+tAIf+NfACfZw1q
ADshmuFv/YH4sHPIU8wqbfs=
=tvm7
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--- End Message ---