mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 04:18:09 +00:00
Log the lookup command in doveauth.lua
This commit is contained in:
@@ -17,8 +17,10 @@ function chatctl_verify(user, password)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function chatctl_lookup(user)
|
function chatctl_lookup(user)
|
||||||
|
local cmd = "doveauth hexlookup "..escape(user)
|
||||||
assert(user)
|
assert(user)
|
||||||
local handle = io.popen("doveauth hexlookup "..escape(user))
|
print("executing: "..cmd)
|
||||||
|
local handle = io.popen(cmd)
|
||||||
local result = handle:read("*a")
|
local result = handle:read("*a")
|
||||||
handle:close()
|
handle:close()
|
||||||
return split_chatctl(result)
|
return split_chatctl(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user