40 static pthread_mutex_t st_mutex = PTHREAD_MUTEX_INITIALIZER;
91 #if defined(_FFR_CLEAN_MSG_BUF) 114 if (bodylen >
sizeof (buf) - 1)
121 while (i < bodylen && isspace(bodyp[i]))
124 memcpy(buf, bodyp + i, bodylen - i);
125 buf[bodylen - i] =
'\0';
127 while ((i = strlen(buf)) > 0) {
128 if (!isspace(buf[i - 1]))
139 for (cmd = SYMPA_CMDS; (*cmd != NULL); cmd++) {
147 if (h->
value == NULL)
150 for (cmd = SYMPA_CMDS; (*cmd != NULL); cmd++) {
166 while (p != NULL && *p !=
'\0') {
167 if ((p = strpbrk(p,
" \t\n")) != NULL) {
193 if (extract_attachments) {
194 if ((bodyp != NULL) && (bodylen > 0)) {
bool spool_file_create(CTXPRIV_T *)
#define CF_LOG_ATTACHMENTS
void stats_inc(int, long)
#define CF_REJECT_SHORT_BODIES
int scan_block(char *, char *, long, char *, long, int *, content_field_T *, content_field_T **)
int jsmfi_setreply(SMFICTX *, char *, char *, char *)
#define MUTEX_UNLOCK(mutex)
#define MUTEX_LOCK(mutex)
#define MSG_BINARY_MESSAGE
bool zeStrRegex(char *, char *, long *, long *, bool)
size_t buf_clean_rc(char *, size_t)
sfsistat mlfi_body(SMFICTX *ctx, unsigned char *bodyp, size_t bodylen)
#define INIT_CALLBACK(p, which)
void sm_macro_update(SMFICTX *, sm_mac_T *)
#define CF_SCANNER_ACTION
bool spool_file_forget(CTXPRIV_T *)
#define INIT_CALLBACK_DELAY()
void zeKStatsUpdate(kstats_T *, double)
#define IS_UNKNOWN(class)
bool spool_file_write(CTXPRIV_T *, char *, size_t)
#define ZE_MessageInfo(level,...)
#define ZE_MessageWarning(level,...)
#define KSTATS_INITIALIZER
#define ZE_MessageError(level,...)
content_field_T * lcontent
char body_chunk[SZ_CHUNK]
bool spool_file_is_open(CTXPRIV_T *)
#define ZE_LogMsgWarning(level,...)
#define CF_MIN_BODY_LENGTH
#define CONNID_STR(connid)
#define CHECK_CALLBACK_DELAY()
void log_msg_context(SMFICTX *ctx, char *why)