ossp-pkg/lmtp2nntp/lmtp2nntp_msg.h 1.8 -> 1.9
--- lmtp2nntp_msg.h 2003/01/30 19:42:13 1.8
+++ lmtp2nntp_msg.h 2003/02/06 13:50:08 1.9
@@ -35,13 +35,41 @@
#include "val.h"
#include "lmtp2nntp_global.h"
+extern void logbook(l2_channel_t *, l2_level_t, const char *, ...);
+
+#include <pcre.h>
+struct headerrule_st;
+typedef struct headerrule_st headerrule_t;
+struct headerrule_st {
+ headerrule_t *next;
+ int pri;
+ char *regex;
+ char *name;
+ char *val;
+ pcre *pcreRegex;
+ pcre_extra *pcreExtra;
+};
+
+struct headerdata_st;
+typedef struct headerdata_st headerdata_t;
+struct headerdata_st {
+ headerdata_t *prev;
+ headerdata_t *next;
+ char *name;
+ int ndata; /* =0 means data is invalid, =1 means use data.s, >1 means use data.m */
+ union {
+ char *s;
+ char **m;
+ } data;
+};
+
typedef struct {
char *azEnvgroups; /* Groups according to Envelope in GROUPMODE_ENVELOPE */
size_t asEnvgroups;
char *cpMsg; /* the wholly message to be received by DATA command */
char *azHeaders; /* header part of message above */
size_t asHeaders;
- struct headerdata_st *hdFirst; /*FIXME i want headerdata_t here */
+ headerdata_t *hdFirst;
char *cpFid; /* foreign (aka sendmail queue) id from parsing headers */
char *cpBody; /* body part of message above */
char *cpMsgid;
@@ -89,4 +117,3 @@
char *msg_error(msg_rc_t);
#endif /* __MSG_H__ */
-
|
|