Qsmtp  0.37
Enumerations | 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.

Enumerations

enum  recode_reasons {
  recode_8bit = 0x1, recode_long_line = 0x2, recode_qp_body = recode_8bit | recode_long_line, recode_long_header = 0x4,
  recode_long = recode_long_line | recode_long_header, recode_END
}
 

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

Enumeration Type Documentation

◆ recode_reasons

Enumerator
recode_8bit 

buffer has 8bit characters

recode_long_line 

buffer contains line longer 998 chars

recode_qp_body 

body part needs recoding to qp

recode_long_header 

header contains line longer 998 chars

recode_long 

line length would violate SMTP limits

Function Documentation

◆ need_recode()

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 recode_reason flags

◆ send_bdat()

void send_bdat ( unsigned int  recodeflag)

send the message data as binary chunk

Parameters
recodeflagthe result of need_recode() for the input data

◆ send_data()

void send_data ( unsigned int  recodeflag)

send the message data

Parameters
recodeflagthe result of need_recode() for the input data