#include <postgres.h>
Go to the source code of this file.
Defines | |
#define | __P(protos) protos |
Functions | |
int4 | send_new_pr_msg (const text *email_list, const text *project, const text *pr_title, const text *descr, const text *severity, const text *problem_type, const text *submitter) |
Format and send a 'new problem report' notification message. More... | |
int4 | send_assign_msg (const text *email_list, const text *pr_title, const text *descr, const text *fix_descr, const text *status, const text *severity, const text *responsible, const text *submitter) |
Format and send an 'assignment' notification message. More... | |
int4 | send_update_msg (const text *email_list, const text *pr_title, const text *descr, const text *fix_descr, const text *status, const text *severity, const text *responsible, const text *submitter) |
Format and send an 'update' notification message. More... |
The funcions contained within are intended for use by the database for sending notification messages to the PRepS users. These functions are called from triggers in the database.
Note that many of the function parameters are of type text. This is a type defined by PostgreSQL to handle the database text type. See the PostgreSQL for details on how to manipulate these types from C code.
|
Format and send an 'assignment' notification message. send_assign_msg (const text *email_list, const text *pr_title, const text *descr, const text *fix_descr, const text *status, const text *severity, const text *responsible, const text *submitter)
Use the file $PREFIX/share/preps/assign.msg as a template to create an 'assignment' notification message. Send the message out to the recipient list.
|
|
Format and send a 'new problem report' notification message.
Use the file $PREFIX/share/preps/new_pr.msg as a template to create a 'new problem report' notification message. Send the message out to the recipient list.
|
|
Format and send an 'update' notification message.
Use the file $PREFIX/share/preps/update.msg as a template to create an 'update' notification message. Send the message out to the recipient list.
|