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