]> git.sur5r.net Git - openldap/blob - clients/rcpt500/rcpt500.h
Import experimental referral implementation from OPENLDAP_DEVEL_REFERRALS.
[openldap] / clients / rcpt500 / rcpt500.h
1 /*
2  * rcpt500.h: includes for rcpt500 (X.500 email query responder)
3  *
4  * 16 June 1992 by Mark C Smith
5  * Copyright (c) 1992 The Regents of The University of Michigan
6  * All Rights Reserved
7  */
8
9 #include <ldap_cdefs.h>
10
11 LDAP_BEGIN_DECL
12
13 struct msginfo {
14     char        *msg_subject;
15     char        *msg_replyto;   /* actually could be from From: line */
16     char        *msg_date;
17     char        *msg_messageid;
18     int         msg_command;
19     char        *msg_arg;
20 };
21
22 struct command {
23         char    *cmd_text;      /* text for command, e.g. "HELP" */
24         /* pointer to handler function */
25         int     (*cmd_handler) LDAP_P((struct msginfo *msgp, char *reply));
26 };
27
28
29 #define MAXSIZE         8096
30
31
32 /*
33  * functions
34  */
35 int     help_cmd  LDAP_P((struct msginfo *msgp, char *reply));
36 int     query_cmd LDAP_P((struct msginfo *msgp, char *reply));
37
38 /*
39  * externs
40  */
41
42 /* cmds.c */
43 extern struct command cmds[];
44 /* main.c */
45 extern int dosyslog;
46 #ifdef LDAP_CONNECTIONLESS
47 extern int do_cldap;
48 #endif
49 extern int derefaliases;
50 extern int sizelimit;
51 extern int rdncount;
52 extern int ldapport;
53 extern char *ldaphost;
54 extern char *searchbase;
55 extern char *dapuser;
56 extern char *filterfile;
57 extern char *templatefile;
58
59 LDAP_END_DECL