check for actions claimed by the filter
This commit is contained in:
@@ -10,5 +10,27 @@ end
|
|||||||
if mt.getreply(conn) ~= SMFIR_CONTINUE then
|
if mt.getreply(conn) ~= SMFIR_CONTINUE then
|
||||||
error "mt.conninfo() unexpected reply"
|
error "mt.conninfo() unexpected reply"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if mt.test_action(conn, SMFIF_ADDHDRS) then
|
||||||
|
print "could add headers"
|
||||||
|
else
|
||||||
|
error "mt.test_action() says could not add headers"
|
||||||
|
end
|
||||||
|
|
||||||
|
if mt.test_action(conn, SMFIF_CHGHDRS) then
|
||||||
|
print "could change headers"
|
||||||
|
else
|
||||||
|
error "mt.test_action() says could not change headers"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- -- FIXME: this part of the test fails, as apparently the
|
||||||
|
-- -- dkimpy-milter claims the right to change the body of a message,
|
||||||
|
-- -- even though it shouldn't. How can we fix the negotiation?
|
||||||
|
-- if mt.test_action(conn, SMFIF_CHGBODY) then
|
||||||
|
-- error "mt.test_action() says could change body"
|
||||||
|
-- else
|
||||||
|
-- print "could not change body"
|
||||||
|
-- end
|
||||||
|
|
||||||
mt.disconnect(conn)
|
mt.disconnect(conn)
|
||||||
mt.echo("test complete")
|
mt.echo("test complete")
|
||||||
|
|||||||
Reference in New Issue
Block a user