7 /* map named attribute record type to pseudo record type
9 /* #include <rec_attr_map.h>
11 /* int rec_attr_map(attr_name)
12 /* const char *attr_name;
14 /* rec_attr_map() maps the record type of a named attribute to
15 /* a pseudo record type, if such a mapping exists. The result
16 /* is the pseudo record type in case of success, 0 on failure.
20 /* The Secure Mailer license must be distributed with this software.
23 /* IBM T.J. Watson Research
25 /* Yorktown Heights, NY 10598, USA
35 #include <mail_proto.h>
37 #include <rec_attr_map.h>
39 /* rec_attr_map - map named attribute to pseudo record type */
41 int rec_attr_map(const char *attr_name
)
43 if (strcmp(attr_name
, MAIL_ATTR_DSN_ORCPT
) == 0) {
44 return (REC_TYPE_DSN_ORCPT
);
45 } else if (strcmp(attr_name
, MAIL_ATTR_DSN_NOTIFY
) == 0) {
46 return (REC_TYPE_DSN_NOTIFY
);
47 } else if (strcmp(attr_name
, MAIL_ATTR_DSN_ENVID
) == 0) {
48 return (REC_TYPE_DSN_ENVID
);
49 } else if (strcmp(attr_name
, MAIL_ATTR_DSN_RET
) == 0) {
50 return (REC_TYPE_DSN_RET
);
51 } else if (strcmp(attr_name
, MAIL_ATTR_CREATE_TIME
) == 0) {
52 return (REC_TYPE_CTIME
);