Main Page   File List   File Members  

sendmsg.h File Reference

Send notification messages to users. More...

#include <postgres.h>

Go to the source code of this file.

Defines

#define __BEGIN_DECLS
#define __END_DECLS
#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...


Detailed Description

Send notification messages to users.

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.

Author:
Kenneth W. Sodemann (stuffle@charter.net)
Revision:
1.7
Date:
2002/01/30 00:40:02


Function Documentation

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.

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.

Parameters:
email_list  The white space separated recipient list for the notification message.
pr_title  The title (or 'subject') of the problem report.
descr  The detailed description of the problem report.
fix_descr  The detailed description of the fix for the problem report.
status  The textual description of the status of the problem report.
severity  The textual description of the severity of the problem report.
responsible  The name of the assignee.
submitter  The name of the submitter.
Returns:
Always returns zero.

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.

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.

Parameters:
email_list  The white space separated recipient list for the notification message.
project  The name of the project that the problem report was entered against.
pr_title  The title (or 'subject') of the problem report.
descr  The detailed description of the problem report.
severity  The textual description of the severity of the problem report.
problem_type  The textual description of the type of problem.
submitter  The name of the submitter.
Returns:
Always returns zero.

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.

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.

Parameters:
email_list  The white space separated recipient list for the notification message.
pr_title  The title (or 'subject') of the problem report.
descr  The detailed description of the problem report.
fix_descr  The detailed description of the fix for the problem report.
status  The textual description of the status of the problem report.
severity  The textual description of the severity of the problem report.
responsible  The name of the assignee.
submitter  The name of the submitter.
Returns:
Always returns zero.


Generated on Sun Oct 20 18:15:10 2002 for libPRepS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002