Does anybody know of a good library for parsing MIME files in Java? I was trying to find one for another project also, but all I can find is ad-hoc solutions based on regular expressions, etc.<br><br><div class="gmail_quote">
On Thu, May 17, 2012 at 7:07 AM, Damien Carol <span dir="ltr"><<a href="mailto:damien.carol@gmail.com" target="_blank">damien.carol@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everybody !<br><br>I read the RFC of gopher 1.0 protocol and I can say that MIME is already possible.<br><br>Read that :<br>1) MIME file is '0' type item<br>2) all clients are compatible they can get '0' type files <br>

<br>The file get is something like that :<br><br><pre style="color:rgb(0,0,102)"><b>MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=frontier

This is a message with multiple parts in MIME format.
--frontier
Content-Type: text/plain

This is the body of the message.
--frontier
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64

PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPHA+VGhpcyBpcyB0aGUg
Ym9keSBvZiB0aGUgbWVzc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg=
--frontier--</b></pre><br>Clients can easily manage data because many lib exists to read MIME.<br><br>The only thing to do is to add feature to client that read the first line of '0' type item.<br>If this line starts with "<b>MIME-Version:</b>
" , then it's a mime encoded file and client can offer to extract file or something else.<br><br>It's very very simple to manage mime type this way.<br><br>I will implements it in my client.<br><br>Give me few days to show you that possible and VERY simple to do without redefine another RFC or break RFC 1436.<br>

<br>Regards,<br>ps: your opinions are welcome.<span class="HOEnZb"><font color="#888888"><br>-- <br>Damien CAROL<br>
<a href="gopher://dams.zapto.org/1/" target="_blank">gopher://dams.zapto.org/1/</a><br>
</font></span><br>_______________________________________________<br>
Gopher-Project mailing list<br>
<a href="mailto:Gopher-Project@lists.alioth.debian.org">Gopher-Project@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project</a><br></blockquote></div><br><br clear="all"><br>-- <br>
01010111 01101111 01101100 01100110<br>