Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

mailfilter.hh

Go to the documentation of this file.
00001 /* mailfilter.hh - source file for the mailfilter program
00002  * Copyright (c) 2000 - 2004  Andreas Bauer <baueran@in.tum.de>
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
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  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00017  * USA.
00018  */
00019 
00020 #ifndef MAILFILTER_HH
00021 #define MAILFILTER_HH
00022 
00023 // Constants
00024 #define CMD_LENGTH                     128
00025 
00026 // Preferences
00027 #define ALLOW_NON_ALPHANUMERIC           1
00028 
00029 // General error codes
00030 #define DNS_LOOKUP_FAILURE            -100
00031 #define AUTHENTICATION_FAILURE        -101
00032 #define SOCKET_COMMUNICATION_FAILURE  -102
00033 #define SOCKET_CONNECTION_FAILURE     -103
00034 #define UNKNOWN_COMMUNICATION_FAILURE -104
00035 #define MALFORMED_HEADER_FAILURE      -105
00036 #define NO_REPLY_FAILURE              -106
00037 #define ALARM_FAILURE                 -107
00038 #define SIGNAL_FAILURE                -108
00039 
00040 // POP error codes
00041 #define CMD_LIST_FAILED               -201
00042 #define CMD_TOP_FAILED                -202
00043 #define CMD_QUIT_FAILED               -203
00044 #define CMD_STAT_FAILED               -204
00045 #define CMD_DELE_FAILED               -205
00046 
00047 // Start up parameters
00048 #define VALUE_HELP                      1
00049 #define VALUE_VERBOSE                   2
00050 #define VALUE_MAILFILTERRC              3
00051 #define VALUE_LOGFILE                   4
00052 #define VALUE_VERSION                   5
00053 #define VALUE_TEST                      6
00054 #define VALUE_RETURN                    7
00055 
00056 #endif

Generated on Sat Feb 14 18:53:12 2004 for mailfilter by doxygen 1.3.5