SMTP_UNKNOWN,
};
+extern const char *smtp_state_names[SMTP_count];
+
/* \see http://www.postfix.org/SMTPD_POLICY_README.html */
typedef struct query_t {
unsigned state : 4;
__attribute__((nonnull))
const char *query_field_for_id(const query_t *query, postlicyd_token id);
+/** Formats the given string by replacing ${field_name} with the content
+ * of the query.
+ * Unknown and empty fields are filled with (null).
+ */
+__attribute__((nonnull(3)))
+ssize_t query_format(char *dest, size_t len, const char* fmt, const query_t *query);
+
#endif