c53b291f1345b9fda4e68fa6fe4142459163cb19
[mmh] / h / popsbr.h
1
2 /*
3  * popsbr.h -- header for POP client subroutines
4  *
5  * $Id$
6  */
7
8 #if 0
9 #if !defined(NNTP) && defined(MPOP)
10 # define command pop_command
11 # define multiline pop_multiline
12 #endif
13 #endif
14
15 #ifdef NNTP
16 int pop_set (int, int, int, char *);
17 #else
18 int pop_set (int, int, int);
19 #endif
20
21 #ifdef NNTP
22 int pop_exists (int (*)());
23 #endif
24
25 int pop_init (char *, char *, char *, int, int, int);
26 int pop_fd (char *, int, char *, int);
27 int pop_stat (int *, int *);
28 int pop_retr (int, int (*)());
29 int pop_dele (int);
30 int pop_noop (void);
31 int pop_rset (void);
32 int pop_top (int, int, int (*)());
33 int pop_quit (void);
34 int pop_done (void);
35
36 #ifdef BPOP
37 int pop_list (int, int *, int *, int *, int *);
38 #else
39 int pop_list (int, int *, int *, int *);
40 #endif
41
42 #ifdef BPOP
43 int pop_xtnd (int (*)(), char *, ...);
44 #endif
45
46 #if defined(MPOP) && !defined(NNTP)
47 int pop_last (void);
48 #endif
49
50 #if !defined(NNTP) && defined(MPOP)
51 /* otherwise they are static functions */
52 int command(const char *, ...);
53 int multiline(void);
54 #endif
55
56 /*
57  * Flags for the various pop authentication methods
58  */
59 #define POP_APOP   -1
60 #define POP_PASSWD  0
61 #define POP_RPOP    1
62 #define POP_KPOP    2