Back to index

citadel  8.12
serv_pop3.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1998-2012 by the citadel.org team
00003  *
00004  * This program is open source software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3.
00006  * 
00007  * 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * 
00015  * 
00016  * 
00017  */
00018 
00019 struct pop3msg {
00020        long msgnum;
00021        size_t rfc822_length;
00022        int deleted;
00023 };
00024 
00025 struct citpop3 {            /* Information about the current session */
00026        struct pop3msg *msgs;       /* Array of message pointers */
00027        int num_msgs;        /* Number of messages in array */
00028        int lastseen;        /* Offset of last-read message in array */
00029 };
00030                             /* Note: the "lastseen" is represented as the
00031                              * offset in this array (zero-based), so when
00032                              * displaying it to a POP3 client, it must be
00033                              * incremented by one.
00034                              */
00035 
00036 #define POP3 ((struct citpop3 *)CC->session_specific_data)
00037 
00038 void pop3_cleanup_function(void);
00039 void pop3_greeting(void);
00040 void pop3_user(char *argbuf);
00041 void pop3_pass(char *argbuf);
00042 void pop3_list(char *argbuf);
00043 void pop3_command_loop(void);
00044 void pop3_login(void);
00045