[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: MIME Mail parsing
- From: Petite Abeille <petite.abeille@...>
- Date: Tue, 19 Feb 2008 23:00:24 +0100
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
http://dev.alt.textdrive.com/browser/HTTP/MIME.lua
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 )
end
Cheers,
PA.