1 /*	$Id: const.h,v 1.18 2004/09/03 13:29:39 dengxf Exp $	*/
2 
3 /*
4  * Copyright (c) 2003-2004 Deng XueFeng <dsnofe@hotmail.com>
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *    This product includes software developed by Deng XueFeng.
18  * 4. Neither the name of the author nor the names of any co-contributors
19  *    may be used to endorse or promote products derived from this software
20  *    without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY DENG XUEFENG AND CONTRIBUTORS ``AS IS'' AND
23  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32  * SUCH DAMAGE.
33  *
34  */
35 
36 const int def_send_psiz = 32 * 1024;
37 
38 const char msg_wel[] = "+OK Missey POP3 Ready\r\n";
39 const char msg_unknown[] = "-ERR unknown command\r\n";
40 const char msg_quit[] = "+OK bye\r\n";
41 const char msg_noop[] = "+OK\r\n";
42 const char msg_user_ok[] = "+OK username accepted\r\n";
43 const char msg_user_err[] = "-ERR need username\r\n";
44 const char msg_pass_ok[] = "+OK authenfication successful\r\n";
45 const char msg_pass_no_user[] = "-ERR send USER username first\r\n";
46 const char msg_pass_no_pass[] = "-ERR need password \r\n";
47 const char msg_pass_err[] = "-ERR wrong password \r\n";
48 const char msg_list_all[] = "+OK scan listing mail\r\n";
49 const char msg_list_no[] = "+OK scan listing follows\r\n.\r\n";
50 const char msg_uidl_no[] = "+OK\r\n.\r\n";
51 const char msg_id_err[] = "-ERR incorrect agument\r\n";
52 const char msg_id_del[] = "-ERR message is marked as deleted\r\n";
53 const char msg_id_no[] = "-ERR no such message\r\n";
54 const char msg_no_arg[] = "+ERR need argument\r\n";
55 const char msg_rset[] = "+OK all messages unmarked\r\n";
56 const char msg_ok[] = "+OK\r\n";
57 const char crlfend[] = ".\r\n";
58 const char msg_dele_err[] = "-ERR DELE FILE SYSTEM ERROR\r\n";
59 const char msg_open_err[] = "-ERR OPEN FILE SYSTEM ERROR\r\n";
60 const char msg_mmap_err[] = "-ERR MMAP FILE SYSTEM ERROR\r\n";
61 const char msg_munmap_err[] = "-ERR MUNMAP FILE SYSTEM ERROR\r\n";
62 const char msg_unlink_err[] = "-ERR UNLINK FILE SYSTEM ERROR\r\n";
63 const char msg_rename_err[] = "-ERR RENAME FILE SYSTEM ERROR\r\n";
64 const char msg_opendir_err[] = "-ERR OPENDIR SYSTEM ERROR\r\n";
65 const char msg_max_err[] = "-ERR Too many errors\r\n";
66 const char msg_max_online[] = "-ERR Too many connections, try another time.\r\n";
67 const char msg_over[] = "-ERR parameter is too long\r\n";
68 const char msg_timeout[] = "-ERR timeout.\r\n";
69