Lines Matching defs:eprefs

143 process_template(nd_ev_info_t *ev_info, email_pref_t *eprefs)
161 eprefs->ep_template_path, tmpfile, ev_info->ei_diagcode,
166 if ((eprefs->ep_template = read_template(tmpfile)) != NULL)
209 build_headers(nd_hdl_t *nhdl, nd_ev_info_t *ev_info, email_pref_t *eprefs,
285 XHDR_SEVERITY, ev_info->ei_severity, eprefs->ep_reply_to,
295 eprefs->ep_reply_to, subj);
303 XHDR_TO_STATE, ev_info->ei_to_state, eprefs->ep_reply_to,
314 XHDR_TO_STATE, ev_info->ei_to_state, eprefs->ep_reply_to,
321 eprefs->ep_reply_to, subj);
329 ev_info->ei_severity, eprefs->ep_reply_to, subj);
363 send_email_template(nd_hdl_t *nhdl, nd_ev_info_t *ev_info, email_pref_t *eprefs)
367 if (build_headers(nhdl, ev_info, eprefs, &headers) != 0)
376 eprefs->ep_template, ev_info->ei_url)) == NULL) {
381 for (int i = 0; i < eprefs->ep_num_recips; i++)
382 send_email(nhdl, headers, msg, eprefs->ep_recips[i]);
389 get_email_prefs(nd_hdl_t *nhdl, fmev_t ev, email_pref_t **eprefs)
545 *eprefs = ep;
571 email_pref_t *eprefs;
575 if (get_email_prefs(nhdl, ev, &eprefs) < 0)
588 if (eprefs->ep_template != NULL)
589 free(eprefs->ep_template);
591 if (eprefs->ep_template_path != NULL &&
592 process_template(ev_info, eprefs) == 0) {
593 send_email_template(nhdl, ev_info, eprefs);
647 if (build_headers(nhdl, ev_info, eprefs, &headers) != 0)
654 for (int i = 0; i < eprefs->ep_num_recips; i++)
655 send_email(nhdl, headers, body, eprefs->ep_recips[i]);
662 if (eprefs->ep_recips)
663 nd_free_strarray(eprefs->ep_recips, eprefs->ep_num_recips);
664 if (eprefs->ep_reply_to)
665 free(eprefs->ep_reply_to);
666 free(eprefs);
701 email_pref_t *eprefs;
705 if (get_email_prefs(nhdl, ev, &eprefs) < 0)
728 if (eprefs->ep_template != NULL)
729 free(eprefs->ep_template);
731 if (eprefs->ep_template_path != NULL &&
732 process_template(ev_info, eprefs) == 0) {
733 send_email_template(nhdl, ev_info, eprefs);
752 if (build_headers(nhdl, ev_info, eprefs, &headers) != 0)
759 for (int i = 0; i < eprefs->ep_num_recips; i++)
760 send_email(nhdl, headers, body, eprefs->ep_recips[i]);
767 if (eprefs->ep_recips)
768 nd_free_strarray(eprefs->ep_recips, eprefs->ep_num_recips);
769 if (eprefs->ep_reply_to)
770 free(eprefs->ep_reply_to);
771 free(eprefs);