* The TAB key allows autocomplete in the Fcc field in the composer headers,
[alpine.git] / pith / maillist.h
blobbc9b02b5b1b8618359a6144e5e3318866711bc74
1 /*
2 * $Id: maillist.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_MAILLIST_INCLUDED
17 #define PITH_MAILLIST_INCLUDED
21 * Constants and structs to aid RFC 2369 support
23 #define MLCMD_HELP 0
24 #define MLCMD_UNSUB 1
25 #define MLCMD_SUB 2
26 #define MLCMD_POST 3
27 #define MLCMD_OWNER 4
28 #define MLCMD_ARCHIVE 5
29 #define MLCMD_COUNT 6
30 #define MLCMD_MAXDATA 3
31 #define MLCMD_REASON 8192
34 typedef struct rfc2369_field_s {
35 char *name,
36 *description,
37 *action;
38 } RFC2369FIELD_S;
40 typedef struct rfc2369_data_s {
41 char *value,
42 *comment,
43 *error;
44 } RFC2369DATA_S;
46 typedef struct rfc2369_s {
47 RFC2369FIELD_S field;
48 RFC2369DATA_S data[MLCMD_MAXDATA];
49 } RFC2369_S;
52 /* exported protoypes */
53 char **rfc2369_hdrs(char **);
54 int rfc2369_parse_fields(char *, RFC2369_S *);
57 #endif /* PITH_MAILLIST_INCLUDED */