Lines Matching refs:template
79 static const char DEF_SUBJ_TEMPLATE[] = "smtp-notify-subject-template";
80 static const char SMF_SUBJ_TEMPLATE[] = "smtp-notify-smf-subject-template";
81 static const char FM_SUBJ_TEMPLATE[] = "smtp-notify-fm-subject-template";
82 static const char IREPORT_MSG_TEMPLATE[] = "ireport-msg-template";
83 static const char SMF_MSG_TEMPLATE[] = "ireport.os.smf-msg-template";
99 * This function simply reads the file specified by "template" into a buffer
104 read_template(const char *template)
110 if (stat(template, &statb) != 0) {
111 nd_error(nhdl, "Failed to stat %s (%s)", template,
115 if ((fd = open(template, O_RDONLY)) < 0) {
116 nd_error(nhdl, "Failed to open %s (%s)", template,
126 nd_error(nhdl, "Failed to read in template (%s)",
138 * This function runs a user-supplied message body template through a script
371 * If the user specified a message body template, then we pass it
377 nd_error(nhdl, "Failed to parse msg template");
428 * template
582 * If the user specified a template, then we pass it through a script,
615 * template that we fill in based on the payload of the event.
722 * If the user specified a template, then we pass it through a script,