Skip to content

opendkim.tmpdir()

Christopher Mooney edited this page Apr 18, 2017 · 1 revision

DESCRIPTION

This function gets and sets the tmpdir option, which is the directory libopendkim should use for creating temporary files. In libopendkim parlance this is the DKIM_OPTS_TMPDIR option. When used with no arguments, this will get the stored value, when passed a filename it will set query info to that value.

For more information:
http://www.opendkim.org/libopendkim/dkim_options.html

ARGUMENTS

Type: (String | undefined)

  • path: The full path of the temporary directory.

RETURN VALUES

  • 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.

NOTES

  • if no arguments are passed, this function will get the value.

EXAMPLE

try {
  var opendkim = new OpenDKIM();
  opendkim.tmpdir('/tmp');
} catch (err) {
  console.log(err.message);
}