equal
deleted
inserted
replaced
1 |
1 |
2 local jid_bare = require "util.jid".bare; |
2 local jid_bare = require "util.jid".bare; |
3 local os_time = os.time; |
3 local os_time = os.time; |
4 local t_concat = table.concat; |
4 local t_concat = table.concat; |
|
5 |
|
6 prosody.unlock_globals(); -- LuaSocket wants to pollute the global scope |
5 local smtp = require "socket.smtp"; |
7 local smtp = require "socket.smtp"; |
|
8 prosody.lock_globals(); |
6 |
9 |
7 local smtp_server = module:get_option_string("smtp_server", "localhost"); |
10 local smtp_server = module:get_option_string("smtp_server", "localhost"); |
8 local smtp_user = module:get_option_string("smtp_username"); |
11 local smtp_user = module:get_option_string("smtp_username"); |
9 local smtp_pass = module:get_option_string("smtp_password"); |
12 local smtp_pass = module:get_option_string("smtp_password"); |
10 |
13 |