1 // Return codes for parameter processors 2 #define SUCCESS 0 3 #define WARNING 1 4 #define FATAL 2 5 #define NEEDEXTRAPAR 3 6 #define RET_SUCCESS 4 7 8 // Common error codes 9 #define OUTRANGE 4 10 #define NOTINITED 5 11 #define NOMEMORY 6 12 13 // Config. file handler errors. 14 #define ECH_ALREADYOPEN 1 // There is already a config. file open 15 #define ECH_OPENFAILED 2 // Unable to open configuration file 16 #define ECH_EOF 4 // Reached the end of file 17 #define ECH_NONETMAILDIR 5 // No netmail directory 18 #define ECH_NOOUTBOUNDDIR 6 // No outbound directory 19 #define ECH_NOQQQOUTBOUNDDIR 7 // FastechoPack && ! QQQOutbound 20 #define ECH_NOCONFIG 8 // No config file specified 21 #define ECH_UNKNOWNARG 9 // Unknown parameter in command line 22 #define ECH_FORCEOUT 10 // Generic value to force a termination 23 24 // String handling errors 25 #define SH_ZERO 21 // Source string is zero-length. 26 27 // Token Types 28 #define TT_UNKNOWN 30 // Unknown 29 #define TT_ROUTETO 31 // Command: Route-to 30 #define TT_MAIN 32 // Command: Main-address 31 #define TT_AKA 33 // Command: AKA 32 #define TT_ADDRESS 34 // Address 33 #define TT_FROM 35 // From 34 #define TT_EXCEPT 36 // Except 35 #define TT_NETMAILDIR 37 // Command: Netmail directory 36 #define TT_LOGFILENAME 38 // Command: Log filename 37 #define TT_TOPDOWN 39 // Topdown priority - first match wins 38 #define TT_CRASH 40 // Crash attribute 39 #define TT_HOLD 41 40 #define TT_DIR 42 41 #define TT_NORMAL 44 42 #define TT_MYZONES 45 43 #define TT_MYNETS 46 44 #define TT_MYPOINTS 47 45 #define TT_PARAMETER 48 46 #define TT_DIRECT 49 47 #define TT_ROUTEMAIL 50 48 #define TT_ROUTEFILES 51 49 #define TT_DIRECTMAIL 52 50 #define TT_DIRECTFILES 53 51 #define TT_NOROUTE 54 52 #define TT_NOROUTEMAIL 55 53 #define TT_NOROUTEFILES 56 54 #define TT_OUTBOUND 57 55 #define TT_PVT 58 56 #define TT_HLD 59 57 #define TT_CRA 60 58 #define TT_KS 61 59 #define TT_SNT 62 60 #define TT_RCV 63 61 #define TT_AS 64 62 #define TT_ZON 65 63 #define TT_HUB 66 64 #define TT_FIL 67 65 #define TT_FRQ 68 66 #define TT_IMM 69 67 #define TT_XMA 70 68 #define TT_KFS 71 69 #define TT_TFS 72 70 #define TT_LOK 73 71 #define TT_RRQ 74 72 #define TT_CFM 75 73 #define TT_HIR 76 74 #define TT_COV 77 75 #define TT_SIG 78 76 #define TT_LET 79 77 #define TT_FAX 80 78 #define TT_FPU 81 79 #define TT_PACKET2 82 80 #define TT_PASSWORD 83 81 #define TT_PASSWORDPARAM 84 82 #define TT_DOW 85 83 #define TT_ENCRYPTED 86 84 #define TT_NONENCRYPTED 87 85 #define TT_INCLUDE 88 86 #define TT_NOPACK 89 87 #define TT_NOPACKMAIL 90 88 #define TT_NOPACKFILES 91 89 #define TT_CHECKFILE 92 90 #define TT_DEFINE 93 91 #define TT_ENDDEFINE 94 92 #define TT_ASSUMEPOINTS 95 93 #define TT_ASSUMEWAYPOINTS 96 94 #define TT_EOLENDSCOMMAND 97 95 #define TT_LOCAL 98 96 #define TT_VIABOSSHOLD 99 97 #define TT_VIABOSSDIRECT 100 98 #define TT_IGNOREBSY 101 99 #define TT_PRODUCTINFO 102 100 #define TT_KILLINTRANSIT 103 101 #define TT_LOGPATH 104 102 #define TT_FASTECHOPACK 105 103 #define TT_NODOMAINDIR 106 104 #define TT_FECONFIG 107 105 #define TT_NETSQUISH 108 106 #define TT_IGNOREUNKNOWNATTRIBS 109 107 #define TT_QQQOUTBOUND 110 108 #define TT_QQQALL 111 109 #define TT_RECODEFILENAME 112 110 #define TT_NETJAM 113 111 #define TT_IMMEDIATE 114 112 #define TT_NOLOOPROUTE 115 113 #define TT_INBOUND 116 114 #define TT_KILLTRANSITFILES 117 115 116 // Main() errors 117 #define ENOMAIN 95 // Main address not specified 118 #define EMAIN_FOUNDFLAG 96 // Found a file that prevents CFR from running 119 #define EMAIN_CFRACTIVE 97 120 121 // Netmail handling errors 122 #define ENH_OPENFAIL 101 123 #define ENH_SHORTFILE 103 124 #define ENH_CORRUPTED 104 125 #define ENH_PROCESSED 105 126 #define ENH_DELAYED 106 127 #define ENH_KILLED 107 128 129 // Log handling errors 130 #define ELH_ALREADYOPEN 111 131 #define ELH_CANTOPEN 112 132 #define ELH_NOTOPEN 113 133 134 // Buffered file handler errors 135 #define EBH_OPENFAIL 121 136 #define EBH_ALREADYOPEN 122 137 #define EBH_SEARCHFAILED 124 138 #define EBH_EOF 125 139 140 // Address handling errors 141 #define EAD_TWOMAIN 141 // Attempt to store two main addresses 142 #define EAD_NOMAIN 142 // No main address 143 #define EAD_WILDCARDS 143 // Address with wildcards 144 #define EAD_ZERO 144 // Zero-length address 145 #define EAD_CANTRESOLVE 145 // Unable to get a FQA 146 #define EAD_INVALID 146 // Nonsense address, such as X:/Y 147 #define EAD_OURZONE 149 148 #define EAD_OURNET 150 149 #define EAD_FOREIGN 151 150 151 // Macro handler(s) 152 #define EMH_NOMAIN 161 153 #define EMH_GENERAL 162 // Failure at route handler 154 #define EMH_ALREADYDEFINED 163 155 // Others 156 157 158 // MSG -> PKT conversion 159 #define ECONV_OPENFAILIN 181 160 #define ECONV_OPENFAILOUT 182 161 #define ECONV_SHORTIN 183 162 163 // Via handling errors 164 #define EVH_TWOVIA 262 165 #define EVH_NO_VIAHANDLER 263 // Requested to process an address without seting up a via first 166 #define EVH_CANTRESOLVE 264 // Via address has wildcards 167 #define EVH_NOVIA 266 168 #define EVH_INVALID 267 169 #define EVH_LOCKED 268 170 #define EVH_DIRECT 269 171 #define EVH_NOROUTE 270 172 #define EVH_NONSENSE 271 173 #define EVH_NOPACK 272 174 175 // Route types 176 #define ST_NOTOUCH 300 177 #define ST_ROUTE 301 178 #define ST_DIRECT 302 179 #define ST_BOSS 303 180 181 // Subject to file errors 182 #define ESTF_FAILURE 304 183 184 // FlagAsSent 185 #define EFAS_OPENFAILED 306 186 #define EFAS_CANTWRITE 307 187 188 // Password handler 189 #define EPH_TOOLONG 312 190 #define EPH_INVALID 313 191 #define EPH_NOTFOUND 315 192 193 // String handler 194 #define ESH_INVALID 322 195 196 // Special errors (high numbers to avoid collisions) 197 #define SPECIAL_OUTRANGE 0xFFFE 198 199