c57520f5a6dbacd35835d3a95761eacbf992d6b1
[citadel.git] / citadel / modules / pop3 / serv_pop3.h
1 /*
2  * $Id$
3  *
4  */
5
6 struct pop3msg {
7         long msgnum;
8         size_t rfc822_length;
9         int deleted;
10 };
11
12 struct citpop3 {                /* Information about the current session */
13         struct pop3msg *msgs;   /* Array of message pointers */
14         int num_msgs;           /* Number of messages in array */
15         int lastseen;           /* Offset of last-read message in array */
16 };
17                                 /* Note: the "lastseen" is represented as the
18                                  * offset in this array (zero-based), so when
19                                  * displaying it to a POP3 client, it must be
20                                  * incremented by one.
21                                  */
22
23 #define POP3 ((struct citpop3 *)CC->session_specific_data)
24
25 void pop3_cleanup_function(void);
26 void pop3_greeting(void);
27 void pop3_user(char *argbuf);
28 void pop3_pass(char *argbuf);
29 void pop3_list(char *argbuf);
30 void pop3_command_loop(void);
31 void pop3_login(void);
32