diff options
Diffstat (limited to 'src/mime.lua')
| -rw-r--r-- | src/mime.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mime.lua b/src/mime.lua index f6509a0..e112f8a 100644 --- a/src/mime.lua +++ b/src/mime.lua | |||
| @@ -10,7 +10,9 @@ | |||
| 10 | ----------------------------------------------------------------------------- | 10 | ----------------------------------------------------------------------------- |
| 11 | local base = _G | 11 | local base = _G |
| 12 | local ltn12 = require("ltn12") | 12 | local ltn12 = require("ltn12") |
| 13 | local mime = require("cmime") | 13 | local mime = require("mime.core") |
| 14 | local io = require("io") | ||
| 15 | local string = require("string") | ||
| 14 | module("mime") | 16 | module("mime") |
| 15 | 17 | ||
| 16 | -- encode, decode and wrap algorithm tables | 18 | -- encode, decode and wrap algorithm tables |
| @@ -49,8 +51,6 @@ decodet['quoted-printable'] = function() | |||
| 49 | return ltn12.filter.cycle(unqp, "") | 51 | return ltn12.filter.cycle(unqp, "") |
| 50 | end | 52 | end |
| 51 | 53 | ||
| 52 | local io, string = io, string | ||
| 53 | |||
| 54 | local function format(chunk) | 54 | local function format(chunk) |
| 55 | if chunk then | 55 | if chunk then |
| 56 | if chunk == "" then return "''" | 56 | if chunk == "" then return "''" |
