lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Feb 19, 2008, at 5:04 PM, DarkGod wrote:

I seem to remember somebody here asking for a mime parsing lib.

I did. Ended up writing my own :P

There is one in the Tethys SMTP server in tethys2.util.MIMEMail.
There are barely any comments and docs but it might still be useful.

Here is an usage example of MIME.lua:

-- Parsing a 'multipart/form-data'

local MIME = require( 'MIME' )
local aMIME = MIME( aContent )

for anIndex, aValue in ipairs( aMIME.content ) do
    print( anIndex, aValue )