Using core.so instead of csocket.so and cmime.so.

This commit is contained in:
Diego Nehab
2005-06-17 04:04:55 +00:00
parent 65c35845c5
commit 4d455c6206
9 changed files with 89 additions and 69 deletions

View File

@ -10,7 +10,9 @@
-----------------------------------------------------------------------------
local base = _G
local ltn12 = require("ltn12")
local mime = require("cmime")
local mime = require("mime.core")
local io = require("io")
local string = require("string")
module("mime")
-- encode, decode and wrap algorithm tables
@ -49,8 +51,6 @@ decodet['quoted-printable'] = function()
return ltn12.filter.cycle(unqp, "")
end
local io, string = io, string
local function format(chunk)
if chunk then
if chunk == "" then return "''"