Qsmtp  0.30dev
Functions | Variables
status.c File Reference

functions to write delivery status information to qmail-rspawn More...

#include <qremote/qremote.h>
#include <netio.h>
#include <string.h>
#include <unistd.h>

Functions

void write_status_raw (const char *str, const size_t len)
 write raw status message to qmail-rspawn More...
 
void write_status (const char *str)
 write status message to qmail-rspawn More...
 
void write_status_m (const char **strs, const unsigned int count)
 write status messages to qmail-rspawn More...
 

Variables

int statusfd = 1
 

Detailed Description

functions to write delivery status information to qmail-rspawn

Function Documentation

void write_status ( const char *  str)

write status message to qmail-rspawn

Parameters
strthe string to write

This will include the trailing 0-byte in the output as qmail-rspawn awaits that as separator between the output fields.

void write_status_m ( const char **  strs,
const unsigned int  count 
)

write status messages to qmail-rspawn

Parameters
strsthe strings to write
counthow many strings to write

This will include the trailing 0-byte after the last entry in the output as qmail-rspawn awaits that as separator between the output fields.

void write_status_raw ( const char *  str,
const size_t  len 
)

write raw status message to qmail-rspawn

Parameters
strthe data to write
lenlength of the data to write