* Fixes to the configure script by Florian Meyer (to fix an implicit
[alpine.git] / pith / maillist.h
blobbfaa6bc3df51b3f0a212738b34b9958101f4f5bc
1 /*
2 * $Id: maillist.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2022 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_MAILLIST_INCLUDED
18 #define PITH_MAILLIST_INCLUDED
22 * Constants and structs to aid RFC 2369 support
24 #define MLCMD_HELP 0
25 #define MLCMD_UNSUB 1
26 #define MLCMD_SUB 2
27 #define MLCMD_POST 3
28 #define MLCMD_OWNER 4
29 #define MLCMD_ARCHIVE 5
30 #define MLCMD_COUNT 6
31 #define MLCMD_MAXDATA 3
32 #define MLCMD_REASON 8192
35 typedef struct rfc2369_field_s {
36 char *name,
37 *description,
38 *action;
39 } RFC2369FIELD_S;
41 typedef struct rfc2369_data_s {
42 char *value,
43 *comment,
44 *error;
45 } RFC2369DATA_S;
47 typedef struct rfc2369_s {
48 RFC2369FIELD_S field;
49 RFC2369DATA_S data[MLCMD_MAXDATA];
50 } RFC2369_S;
53 /* exported prototypes */
54 char **rfc2369_hdrs(char **);
55 int rfc2369_parse_fields(char *, RFC2369_S *);
58 #endif /* PITH_MAILLIST_INCLUDED */