* More license declarations
[citadel.git] / citadel / modules / pop3 / serv_pop3.h
1 /*
2  * $Id$
3  *
4  *
5  * Copyright (c) 1998-2009 by the citadel.org team
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 struct pop3msg {
23         long msgnum;
24         size_t rfc822_length;
25         int deleted;
26 };
27
28 struct citpop3 {                /* Information about the current session */
29         struct pop3msg *msgs;   /* Array of message pointers */
30         int num_msgs;           /* Number of messages in array */
31         int lastseen;           /* Offset of last-read message in array */
32 };
33                                 /* Note: the "lastseen" is represented as the
34                                  * offset in this array (zero-based), so when
35                                  * displaying it to a POP3 client, it must be
36                                  * incremented by one.
37                                  */
38
39 #define POP3 ((struct citpop3 *)CC->session_specific_data)
40
41 void pop3_cleanup_function(void);
42 void pop3_greeting(void);
43 void pop3_user(char *argbuf);
44 void pop3_pass(char *argbuf);
45 void pop3_list(char *argbuf);
46 void pop3_command_loop(void);
47 void pop3_login(void);
48