5
/* initialize message delivery attributes
9
/* void deliver_attr_init(attrp)
10
/* DELIVER_ATTR *attrp;
12
/* void deliver_attr_dump(attrp)
13
/* DELIVER_ATTR *attrp;
15
/* deliver_attr_init() initializes a structure with message delivery
16
/* attributes to a known initial state (all zeros).
18
/* deliver_attr_dump() logs the contents of the given attribute list.
22
/* The Secure Mailer license must be distributed with this software.
25
/* IBM T.J. Watson Research
27
/* Yorktown Heights, NY 10598, USA
35
/* Utility library. */
40
/* Application-specific. */
44
/* deliver_attr_init - set message delivery attributes to all-zero state */
46
void deliver_attr_init(DELIVER_ATTR *attrp)
50
attrp->queue_name = 0;
67
/* deliver_attr_dump - log message delivery attributes */
69
void deliver_attr_dump(DELIVER_ATTR *attrp)
71
msg_info("level: %d", attrp->level);
72
msg_info("path: %s", VSTREAM_PATH(attrp->fp));
73
msg_info("fp: 0x%lx", (long) attrp->fp);
74
msg_info("queue_name: %s", attrp->queue_name ? attrp->queue_name : "null");
75
msg_info("queue_id: %s", attrp->queue_id ? attrp->queue_id : "null");
76
msg_info("offset: %ld", attrp->offset);
77
msg_info("sender: %s", attrp->sender ? attrp->sender : "null");
78
msg_info("recipient: %s", attrp->recipient ? attrp->recipient : "null");
79
msg_info("domain: %s", attrp->domain ? attrp->domain : "null");
80
msg_info("local: %s", attrp->local ? attrp->local : "null");
81
msg_info("user: %s", attrp->user ? attrp->user : "null");
82
msg_info("extension: %s", attrp->extension ? attrp->extension : "null");
83
msg_info("unmatched: %s", attrp->unmatched ? attrp->unmatched : "null");
84
msg_info("owner: %s", attrp->owner ? attrp->owner : "null");
85
msg_info("delivered: %s", attrp->delivered ? attrp->delivered : "null");
86
msg_info("relay: %s", attrp->relay ? attrp->relay : "null");
87
msg_info("exp_type: %d", attrp->exp_type);
88
msg_info("exp_from: %s", attrp->exp_from ? attrp->exp_from : "null");