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