Script for mime encoding
Jörg Sommer <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I was peeved by this mime stuff and hacked some SLang code to remove it.
http://www.minet.uni-jena.de/~joergs/jmime.sl If someone is interested in
it, try it. Put this code in a SLang file that is evaluated by slrn.
() = evalfile("jmime.sl");
define read_article_hook()
{
conv_mime();
!if ( strncmp(current_newsgroup(), "linux.", 6) )
fix_subject();
}
I've never read a RFC about this mime stuff. The implementation is as I
gathered the informations from examples.
Some additionals:
* There's a function check_sig() that runs gpg to verify a PGP signed
mail.
* And it should be really easy to implement a function that saves only
parts of the mime container, e.g. attachments.
But I've some problems:
* How can I trigger a reprocession of the article by slrn? Can I make
slrn updates the message after I changed the Content-Type?
* Can I access the iconv functions from SLang?
Bye, Jörg.
--
Prof: Ist etwas an der Tafel nicht zu lesen? Sie schauen so komisch.
Studentin: Nein, es ist alles in Ordnung.
Prof: Aber ihr Gesicht sieht überhaupt nicht in Ordnung aus.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642