Qsmtp  0.30dev
Macros
mime_chars.h File Reference

definitions of MIME character classes More...

Go to the source code of this file.

Macros

#define TSPECIAL(a)
 
#define WSPACE(a)   (((a) == ' ') || ((a) == '\t') || ((a) == '\r') || ((a) == '\n'))
 

Detailed Description

definitions of MIME character classes

Macro Definition Documentation

#define TSPECIAL (   a)
Value:
(((a) == '(') || ((a) == ')') || ((a) == '<') || ((a) == '>') || ((a) == '@') || \
((a) == ',') || ((a) == ';') || ((a) == ':') || ((a) == '\\') || ((a) == '"') || \
((a) == '/') || ((a) == '[') || ((a) == ']') || ((a) == '?') || ((a) == '='))

check if the given character is a MIME special one

Parameters
athe character to check
Returns
if it is a special character or not

This checks if the given character is within the "tspecials" range as defined in RfC 2045.

#define WSPACE (   a)    (((a) == ' ') || ((a) == '\t') || ((a) == '\r') || ((a) == '\n'))

check if the given character is whitespace

Parameters
athe character to check
Returns
if it is a whitespace character or not