local rspamd_dns = require "rspamd_dns"
local logger = require "rspamd_logger"
local config_path = rspamd_paths['CONFDIR'] .. '/rspamd.conf'
local _r,err = rspamd_config:load_ucl(config_path)
if not _r then
logger.errx('cannot parse %s: %s (r=%s)', config_path, err, _r)
os.exit(1)
end
_r,err = rspamd_config:parse_rcl({'logging', 'worker'})
if not _r then
logger.errx('cannot process %s: %s (r=%s)', config_path, err, _r)
os.exit(1)
end
rspamd_config:init_subsystem('dns', rspamadm_ev_base)
local is_ok, results = rspamd_dns.request({
config = rspamd_config,
session = rspamadm_session,
type = 'txt',
name = 'test._domainkey.example.com',
-- name = '_dmarc.google.com',
})
print(is_ok, results[1])
it();'>
1-10-stable
1-11-stable
1-12-stable
1-13-stable
1-8-stable
1-9-stable
datepicker
dependabot/github_actions/github-actions-0b02fec6e3
dependabot/github_actions/github-actions-384b59e5c3
dependabot/github_actions/github-actions-66959c3ab9
dependabot/github_actions/github-actions-6951dec90a
dependabot/github_actions/github-actions-7574396d95
dependabot/github_actions/github-actions-a2938ab9b9
dependabot/github_actions/github-actions-ced721f930
dependabot/github_actions/github-actions-e7ab6fa4fa
dependabot/github_actions/github-actions-f50e11107c
dependabot/npm_and_yarn/body-parser-1.20.3
dependabot/npm_and_yarn/express-4.20.0
interactions
jtr-test
main
spinner-globalize-1.x
blob: 70ba64dcc6395209040c84dc399321fad2f5dce8 (
plain )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > Button Visual Test</ title >
< link rel = "stylesheet" href = "../../../themes/base/jquery.ui.all.css" >
< script src = "../../../jquery-1.8.2.js" ></ script >
< script src = "../../../ui/jquery.ui.core.js" ></ script >
< script src = "../../../ui/jquery.ui.widget.js" ></ script >
< script src = "../../../ui/jquery.ui.button.js" ></ script >
< script >
$ ( function () {
$ ( ".buttons" ). each ( function () {
$ ( this ). children ()
. eq ( 0 )
. button ({
text : false ,
icons : {
primary : "ui-icon-help"
}
})
. end ()
. eq ( 1 )
. button ({
icons : {
primary : "ui-icon-help"
},
disabled : true
})
. end ()
. eq ( 2 )
. button ();
});
});
</ script >
</ head >
< body >
< div class = "buttons" >
< button > button</ button >
< button > button</ button >
< button > button</ button >
</ div >
< div class = "buttons" >
< button type = "button" > button button</ button >
< button type = "button" > button button</ button >
< button type = "button" > button button</ button >
</ div >
< div class = "buttons" >
< button type = "submit" > button submit</ button >
< button type = "submit" > button submit</ button >
< button type = "submit" > button submit</ button >
</ div >
< div class = "buttons" >
< input type = "button" value = "input button" >
< input type = "button" value = "input button" >
< input type = "button" value = "input button" >
</ div >
< div class = "buttons" >
< input type = "submit" value = "input submit" >
< input type = "submit" value = "input submit" >
< input type = "submit" value = "input submit" >
</ div >
< div class = "buttons" >
< input type = "checkbox" id = "input-checkbox0" >
< input type = "checkbox" id = "input-checkbox1" >
< input type = "checkbox" id = "input-checkbox2" >
< label for = "input-checkbox0" > input checkbox</ label >
< label for = "input-checkbox1" > input checkbox</ label >
< label for = "input-checkbox2" > input checkbox</ label >
</ div >
< div class = "buttons" >
< input type = "radio" id = "input-radio0" name = "radio" >
< input type = "radio" id = "input-radio1" name = "radio" >
< input type = "radio" id = "input-radio2" name = "radio" >
< label for = "input-radio0" > input radio</ label >
< label for = "input-radio1" > input radio</ label >
< label for = "input-radio2" > input radio</ label >
</ div >
< div class = "buttons" >
< a href = "#" > anchor</ a >
< a href = "#" > anchor</ a >
< a href = "#" > anchor</ a >
</ div >
</ body >
</ html >