removed some debugs
[citadel.git] / citadel / modules / pop3 / serv_pop3.h
1 /*
2  * Copyright (c) 1998-2017 by the citadel.org team
3  *
4  * This program is open source software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  */
12
13 struct pop3msg {
14         long msgnum;
15         size_t rfc822_length;
16         int deleted;
17 };
18
19 struct citpop3 {                /* Information about the current session */
20         struct pop3msg *msgs;   /* Array of message pointers */
21         int num_msgs;           /* Number of messages in array */
22         int lastseen;           /* Offset of last-read message in array */
23 };
24                                 /* Note: the "lastseen" is represented as the
25                                  * offset in this array (zero-based), so when
26                                  * displaying it to a POP3 client, it must be
27                                  * incremented by one.
28                                  */
29
30 #define POP3 ((struct citpop3 *)CC->session_specific_data)
31
32 void pop3_cleanup_function(void);
33 void pop3_greeting(void);
34 void pop3_user(char *argbuf);
35 void pop3_pass(char *argbuf);
36 void pop3_list(char *argbuf);
37 void pop3_command_loop(void);
38 void pop3_login(void);
39