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