At 17:02 2005-11-14 +0200, Udi Mottelo wrote:
It will make procmail to be an heavy monster, isn't? I suggest
to add more templates to the examples in the distribution pack
where you can catn`paste or include.
Enter procmail-lib. Still, MANY operations would be SO much easier if
procmail had some extensions as already suggested.
I failed to mention in my small list of off-the-cuff features, that
PROCEDURES would be really nifty. Being able to define a function
(possibly iterative) rather than having to includerc it each time you
wanted to make use of it. If you had that capability, then having a
procmail-lib of standard functions would be much easier to implement, and
people wouldn't have to root around in the code of those features, merely
provide appropriate arguments when calling them.
My addition:
- Strip HTML, like lynx -dump where "hel<big></big>lo"
will be found as "hello". Say: * L ?? hello
My thought was to have each part of a message (and the mime data for same)
split out into separate "body" variables and "head" variables, with some
way of walking through the list. First use of them would decode them into
a buffer that would remain decoded until that instance of procmail
terminated - no decoding until they're acutally used, but also no
re-decoding of them just because they're re-referenced. HTML decoding
could be stripped similarly.
Bear in mind though that HTML is a continuously evolving
specification. not that email content isn't as well, but simply not at the
same pace. One would need to deal with plain text messages sent with HTML
code embedded (like on a discussion list), and plain text format messages
sent AS html (which some spam is), versus actual content-type
HTML. Perhaps have an html stripper that strips based on mime type, but
then also has a FORCE characteristic, allowing you to force it even on what
is claimed to be plain text.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail