diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 07:58:04 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 07:58:04 +0000 |
| commit | 7c97e8e40aaa665226fb54449773dc3134e755b2 (patch) | |
| tree | 47888d4c924fc24bf3b355bf58120ea3cdc74bc4 /test/testmesg.lua | |
| parent | eb0fc857ddea6f084d338589e2a33d3e7d4eade6 (diff) | |
| download | luasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.tar.gz luasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.tar.bz2 luasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.zip | |
Almost ready for beta3
Diffstat (limited to 'test/testmesg.lua')
| -rw-r--r-- | test/testmesg.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testmesg.lua b/test/testmesg.lua index e29b3cb..5350921 100644 --- a/test/testmesg.lua +++ b/test/testmesg.lua | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | -- load the smtp support and its friends | 1 | -- load the smtp support and its friends |
| 2 | local smtp = require("smtp") | 2 | local smtp = require("socket.smtp") |
| 3 | local mime = require("mime") | 3 | local mime = require("mime") |
| 4 | local ltn12 = require("ltn12") | 4 | local ltn12 = require("ltn12") |
| 5 | 5 | ||
| @@ -48,6 +48,11 @@ source = smtp.message{ | |||
| 48 | } | 48 | } |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | --[[ | ||
| 52 | sink = ltn12.sink.file(io.stdout) | ||
| 53 | ltn12.pump.all(source, sink) | ||
| 54 | ]] | ||
| 55 | |||
| 51 | -- finally send it | 56 | -- finally send it |
| 52 | r, e = smtp.send{ | 57 | r, e = smtp.send{ |
| 53 | rcpt = {"<diego@tecgraf.puc-rio.br>", | 58 | rcpt = {"<diego@tecgraf.puc-rio.br>", |
