[gopher] Support for MIME type

Damien Carol damien.carol at gmail.com
Thu May 17 11:58:17 UTC 2012


My crawler use apache Tika

2012/5/17 Wolfgang Faust <wolfgangmcq at gmail.com>

> 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.
>
> On Thu, May 17, 2012 at 7:07 AM, Damien Carol <damien.carol at gmail.com>wrote:
>
>> Hello everybody !
>>
>> I read the RFC of gopher 1.0 protocol and I can say that MIME is already
>> possible.
>>
>> Read that :
>> 1) MIME file is '0' type item
>> 2) all clients are compatible they can get '0' type files
>>
>> The file get is something like that :
>>
>> *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--*
>>
>>
>> Clients can easily manage data because many lib exists to read MIME.
>>
>> The only thing to do is to add feature to client that read the first line
>> of '0' type item.
>> If this line starts with "*MIME-Version:* " , then it's a mime encoded
>> file and client can offer to extract file or something else.
>>
>> It's very very simple to manage mime type this way.
>>
>> I will implements it in my client.
>>
>> Give me few days to show you that possible and VERY simple to do without
>> redefine another RFC or break RFC 1436.
>>
>> Regards,
>> ps: your opinions are welcome.
>> --
>> Damien CAROL
>> gopher://dams.zapto.org/1/
>>
>> _______________________________________________
>> Gopher-Project mailing list
>> Gopher-Project at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project
>>
>
>
>
> --
> 01010111 01101111 01101100 01100110
>
> _______________________________________________
> Gopher-Project mailing list
> Gopher-Project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project
>



-- 
Damien CAROL
gopher://dams.zapto.org/1/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/gopher-project/attachments/20120517/285a37b5/attachment.html>


More information about the Gopher-Project mailing list