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