-
Notifications
You must be signed in to change notification settings - Fork 3
opendkim.query_method()
Christopher Mooney edited this page Apr 7, 2017
·
1 revision
This function gets and sets the query method option. In libopendkim
parlance this is the DKIM_OPTS_QUERYMETHOD
option. When used with no arguments, this will get the stored value, when passed an option it will set query method to that value.
For more information:
http://www.opendkim.org/libopendkim/dkim_options.html
Type: (String
| undefined
)
-
option
: EitherDKIM_QUERY_DNS
(default) orDKIM_QUERY_FILE
which should override anyq=
value in signatures during verifications.
- On successful get, returns the value for this option
- On successful set, returns the opendkim instance
- On failure, an exception is thrown that indicates the cause of the problem.
- if no arguments are passed, this function will get the value.
- if
DKIM_QUERY_FILE
is passed it will only be used if opendkim.query_info() has also been set with the filename.
try {
var opendkim = new OpenDKIM();
opendkim.query_method('DKIM_QUERY_FILE');
} catch (err) {
console.log(err.message);
}