3 #ifndef _NAME_MASK_H_INCLUDED_
4 #define _NAME_MASK_H_INCLUDED_
10 /* map names to bit mask
12 /* #include <name_mask.h>
29 #define NAME_MASK_FATAL (1<<0)
30 #define NAME_MASK_ANY_CASE (1<<1)
31 #define NAME_MASK_RETURN (1<<2)
32 #define NAME_MASK_COMMA (1<<3)
33 #define NAME_MASK_PIPE (1<<4)
34 #define NAME_MASK_NUMBER (1<<5)
36 #define NAME_MASK_MATCH_REQ NAME_MASK_FATAL
38 #define NAME_MASK_NONE 0
39 #define NAME_MASK_DEFAULT (NAME_MASK_FATAL)
40 #define NAME_MASK_DEFAULT_DELIM ", \t\r\n"
42 #define name_mask_opt(tag, table, str, flags) \
43 name_mask_delim_opt((tag), (table), (str), \
44 NAME_MASK_DEFAULT_DELIM, (flags))
45 #define name_mask(tag, table, str) \
46 name_mask_opt((tag), (table), (str), NAME_MASK_DEFAULT)
47 #define str_name_mask(tag, table, mask) \
48 str_name_mask_opt(((VSTRING *) 0), (tag), (table), (mask), NAME_MASK_DEFAULT)
50 extern int name_mask_delim_opt(const char *, const NAME_MASK
*, const char *, const char *, int);
51 extern const char *str_name_mask_opt(VSTRING
*, const char *, const NAME_MASK
*, int, int);
56 /* The Secure Mailer license must be distributed with this software.
59 /* IBM T.J. Watson Research
61 /* Yorktown Heights, NY 10598, USA