>>>>> "NS" == Nick Simicich <njs@scifi.squawk.com> writes
NS> In any case, is there any interest in including this functionality in
NS> mj2? Or does it do something else to handle mime formatted postings?
The development version supports MIME in several ways. The command
processor can handle taking apart a MIME message, decoding it properly and
will ignore commands in everything except for the text/plain parts. It can
use attachments as input for commands (so you can attach a list of
addresses and put them all on the list with one command).
Functionality for removing and converting MIME types from posted messages
is planned and partially in the code but is not really implemented. (The
config variable 'attachment_rules' controls what happens to MIME
attachments.) Dropping offensive parts entirely is not difficult, but
converting them is more interesting. I'd like to see how you do this, as
I could probably shoehorn it in rather easily.
How about an attachment rule like:
multipart/alternate: flatten=text/plain
text/html : convert=text/plain
To take all multipart/alternates that you can flatten to text and do so.
If they have a text/plain part, flatten to that part otherwise convert if
possible. Convert text/html to text/plain whenever it is seen.
- J<
Follow-Ups:
References:
|
|