Greetings, Good monks,
There are a number of ListServe-style Lists that I subscribe to and ongoing irritation with them is that, as a digest recipient, I get a lot of trash (vcards, HTML, and unprocessed Quoted-Printable encoding to name the three biggies) in them. My Question: Does there exist a portable (by which I mean not excessively oriented towards *nix system calls and so on) Perl solution that might already exist, that would:
- Take apart a digest email (data in a file on disk or as a stdin filehandle for instance) and make available the individual constituent messages of the digest -- which is a
functionality like that of `formail(1)' (part of the procmail package), so that:
- A functionality like `stripmime' can be engaged to make the garbage disappear (stripmime is a Perl application meant to be run on a server that is processing incoming/outgoing mailing list messages); and then:
- Re-assemble the digest and write it to disk or to stdout, for instance.
If such a thing has already been written I would like to not re-invent an already-developed, capable solution. However, if not, it would seem to be a worthy project.
The author of stripmime, Alex Wetmore, gave me a tip to use formail to blow apart my digests and then process the individual messages with stripmime. But formail is apparently not ported to Win32 yet and isn't likely (according to some sources who have worked with porting it a bit) to done in the near future.
Comments please!
Soren Andersen
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.