Qsmtp  0.30dev
Functions | Variables
qrdata.h File Reference

function definitions for Qremote's handling of message bodies More...

#include <sys/types.h>

Go to the source code of this file.

Functions

unsigned int need_recode (const char *, off_t)
 
void send_data (unsigned int recodeflag)
 
void send_bdat (unsigned int recodeflag)
 

Variables

const char * successmsg []
 
const char * msgdata
 
off_t msgsize
 

Detailed Description

function definitions for Qremote's handling of message bodies

Function Documentation

unsigned int need_recode ( const char *  buf,
off_t  len 
)

check if buffer has to be recoded for SMTP transfer

Parameters
bufbuffer to scan
lenlength of buffer
Returns
logical or of:
  • 1: buffer has 8bit characters
  • 2: buffer contains line longer 998 chars
  • 4: header contains line longer 998 chars
void send_bdat ( unsigned int  recodeflag)

send the message data as binary chunk

Parameters
recodeflagthe result of need_recode() for the input data
void send_data ( unsigned int  recodeflag)

send the message data

Parameters
recodeflagthe result of need_recode() for the input data