~ubuntu-branches/ubuntu/precise/dspam/precise

« back to all changes in this revision

Viewing changes to src/language.h

  • Committer: Bazaar Package Importer
  • Author(s): Trent Lloyd
  • Date: 2006-03-21 07:23:12 UTC
  • Revision ID: james.westby@ubuntu.com-20060321072312-jba9a1avit4r1y6s
Tags: upstream-3.6.4
ImportĀ upstreamĀ versionĀ 3.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: language.h,v 1.23 2006/01/18 16:48:53 jonz Exp $ */
 
2
 
 
3
/*
 
4
 DSPAM
 
5
 COPYRIGHT (C) 2002-2006 DEEP LOGIC INC.
 
6
 
 
7
 This program is free software; you can redistribute it and/or
 
8
 modify it under the terms of the GNU General Public License
 
9
 as published by the Free Software Foundation; version 2
 
10
 of the License.
 
11
 
 
12
 This program is distributed in the hope that it will be useful,
 
13
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 GNU General Public License for more details.
 
16
 
 
17
 You should have received a copy of the GNU General Public License
 
18
 along with this program; if not, write to the Free Software
 
19
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
 
 
21
*/
 
22
 
 
23
#ifndef _LANGUAGE_H
 
24
#  define _LANGUAGE_H
 
25
 
 
26
#define LANGUAGE        "en"
 
27
 
 
28
/* General purpose error codes */
 
29
 
 
30
#define ERR_MEM_ALLOC           "Memory allocation failed"
 
31
#define ERR_IO_FILE_OPEN        "Unable to open file for reading: %s: %s"
 
32
#define ERR_IO_FILE_WRITE       "Unable to open file for writing: %s: %s"
 
33
#define ERR_IO_FILE_CLOSE       "Unable to close file: %s: %s"
 
34
#define ERR_IO_FILE_RENAME      "Unable to rename file: %s: %s"
 
35
#define ERR_IO_DIR_CREATE       "Unable to create directory: %s: %s"
 
36
#define ERR_IO_LOCK             "Failed to lock file %s: %d: %s"
 
37
#define ERR_IO_LOCK_FREE        "Failed to free lock file %s: %d: %s"
 
38
 
 
39
/* LDAP related error codes */
 
40
 
 
41
#define ERR_LDAP_INIT_FAIL      "LDAP initialization failed"
 
42
#define ERR_LDAP_PROTO_VER_FAIL "LDAP failure: unable to set protocol version"
 
43
#define ERR_LDAP_SEARCH_FAIL    "LDAP search failure"
 
44
#define ERR_LDAP_MISCONFIGURED  "LDAP misconfigured"
 
45
 
 
46
/* Agent error codes */
 
47
 
 
48
#define ERR_AGENT_USER_UNDEFINED  "Unable to determine the destination user"
 
49
#define ERR_AGENT_READ_CONFIG     "Unable to read dspam.conf"
 
50
#define ERR_AGENT_DSPAM_HOME      "No DSPAM home specified"
 
51
#define ERR_AGENT_RUNTIME_USER    "Unable to determine the runtime user"
 
52
#define ERR_AGENT_NO_SUCH_PROFILE "No such profile '%s'"
 
53
#define ERR_AGENT_NO_SUCH_CLASS   "No such class '%s'"
 
54
#define ERR_AGENT_NO_SUCH_SOURCE  "No such source '%s'"
 
55
#define ERR_AGENT_NO_SUCH_DELIVER "No such delivery option '%s'"
 
56
#define ERR_AGENT_NO_SUCH_FEATURE "No such feature '%s'"
 
57
#define ERR_AGENT_NO_AGENT        "No %s configured, and --stdout not specified"
 
58
#define ERR_AGENT_NO_SOURCE       "No source was specified for this class"
 
59
#define ERR_AGENT_NO_CLASS        "No class was specified for this source"
 
60
#define ERR_AGENT_CLASSIFY_CLASS  "Classify mode may not specify a class"
 
61
#define ERR_AGENT_NO_OP_MODE      "No operating mode was specified"
 
62
#define ERR_AGENT_NO_TR_MODE      "No training mode was specified"
 
63
#define ERR_AGENT_TB_INVALID      "Training buffer level must be 0-10"
 
64
#define ERR_AGENT_TR_MODE_INVALID "Invalid training mode specified"
 
65
#define ERR_AGENT_IGNORE_PREF     "Ignoring disallowed preference '%s'"
 
66
#define ERR_AGENT_INIT_ATX        "Unable to initialize agent context"
 
67
#define ERR_AGENT_MISCONFIGURED   "DSPAM agent misconfigured: aborting"
 
68
#define ERR_AGENT_FAILOVER        "Failing over to storage profile '%s'"
 
69
#define ERR_AGENT_FAILOVER_OUT    "Could not fail over: out of failover servers"
 
70
#define ERR_AGENT_CLEAR_ATTRIB    "Unable to clear attributes list"
 
71
#define ERR_AGENT_PARSER_FAILED   "Message parser failed. Unable to continue."
 
72
#define ERR_AGENT_SIG_RET_FAILED  "Signature retrieval for '%s' failed"
 
73
#define ERR_AGENT_NO_VALID_SIG    "Unable to find a valid signature. Aborting."
 
74
#define ERR_AGENT_OPTIN_DIR       "The opt-in file %s should be a directory"
 
75
 
 
76
/* Local delivery agent error codes */
 
77
 
 
78
#define ERR_LDA_EXIT      "Delivery agent returned exit code %d: %s"
 
79
#define ERR_LDA_SIGNAL    "Delivery agent terminated by signal %d: %s"
 
80
#define ERR_LDA_OPEN      "Error opening pipe to delivery agent: %s: %s"
 
81
#define ERR_LDA_CLOSE     "Unexpected return code %d when closing pipe"
 
82
#define ERR_LDA_STATUS    "Error getting exit status of delivery agent: %s: %s"
 
83
 
 
84
/* Client error codes */
 
85
 
 
86
#define ERR_CLIENT_EXIT           "Client exited with error %d"
 
87
 
 
88
/* Trusted-user related error codes */
 
89
 
 
90
#define ERR_TRUSTED_USER \
 
91
"Option --user requires special privileges when user does not match current \
 
92
user, e.g.. root or Trusted User [uid=%d(%s)]"
 
93
 
 
94
#define ERR_TRUSTED_PRIV \
 
95
"Option %s requires special privileges; e.g.. root or Trusted User [uid=%d(%s)]"
 
96
 
 
97
#define ERR_TRUSTED_MODE \
 
98
"Program mode requires special privileges, e.g., root or Trusted User"
 
99
 
 
100
/* DSPAM core engine (libdspam) related error codes */
 
101
 
 
102
#define ERR_CORE_INIT             "Context initialization failed"
 
103
#define ERR_CORE_ATTACH           "Unable to attach DSPAM context"
 
104
 
 
105
/* Storage driver error codes */
 
106
 
 
107
#define ERR_DRV_NO_ATTACH       "Driver does not support dbh attach"
 
108
#define ERR_DRV_NO_MERGED       "Driver does not support merged groups"
 
109
#define ERR_DRV_INIT            "Unable to initialize storage driver"
 
110
 
 
111
/* Daemon-mode related info codes */
 
112
 
 
113
#define INFO_DAEMON_START       "Daemon process starting"
 
114
#define INFO_DAEMON_EXIT        "Daemon process exiting"
 
115
#define INFO_DAEMON_BIND        "Binding to :%d"
 
116
#define INFO_DAEMON_DOMAINSOCK  "Creating local domain socket %s"
 
117
#define INFO_DAEMON_RELOAD      "Reloading configuration"
 
118
 
 
119
/* Daemon-mode related error codes */
 
120
 
 
121
#define ERR_DAEMON_NO_SUPPORT   "DSPAM was not compiled with daemon support"
 
122
#define ERR_DAEMON_BIND         "Could not bind to :%d: %s"
 
123
#define ERR_DAEMON_DOMAINBIND   "Could not bind to %s: %s"
 
124
#define ERR_DAEMON_SOCKET       "Could not create socket: %s"
 
125
#define ERR_DAEMON_SOCKOPT      "Could not set sockopt %s: %s"
 
126
#define ERR_DAEMON_LISTEN       "Unable to listen: %s"
 
127
#define ERR_DAEMON_ACCEPT       "Unable to accept: %s"
 
128
#define ERR_DAEMON_THREAD       "Thread creation failed: %s"
 
129
#define ERR_DAEMON_FAIL         "Daemon mode failed to start"
 
130
#define ERR_DAEMON_TERMINATE    "Daemon terminating on signal %d"
 
131
 
 
132
/* LMTP (externally visible) info codes */
 
133
 
 
134
#define INFO_LMTP_DATA          "Enter mail, end with \".\" on a line by itself"
 
135
 
 
136
/* LMTP (externally visible) error codes */
 
137
 
 
138
#define ERR_LMTP_MSG_NULL       "Message is empty. Aborting."
 
139
#define ERR_LMTP_BAD_RCPT       "Invalid RCPT TO. Use RCPT TO: <recipient>"
 
140
 
 
141
/* Client-mode related info codes */
 
142
 
 
143
#define INFO_CLIENT_CONNECTED           "Connection established"
 
144
#define INFO_CLIENT_CONNECTING          "Establishing connection to %s:%d"
 
145
 
 
146
/* Client-mode related error codes */
 
147
 
 
148
#define ERR_CLIENT_INVALID_CONFIG       "Invalid client configuration"
 
149
#define ERR_CLIENT_CONNECT              "Unable to connect to server"
 
150
#define ERR_CLIENT_IDENT                "No ClientIdent provided in dspam.conf"
 
151
#define ERR_CLIENT_CONNECT_SOCKET       "Connection to socket %s failed: %s"
 
152
#define ERR_CLIENT_CONNECT_HOST         "Connection to %s:%d failed: %s"
 
153
#define ERR_CLIENT_AUTH_FAILED          "Unable to authenticate client"
 
154
#define ERR_CLIENT_AUTHENTICATE         "Authentication rejected"
 
155
#define ERR_CLIENT_WHILE_AUTH           "Error while authenticating: %s"
 
156
#define ERR_CLIENT_ON_GREETING          "Received error on greeting: %s"
 
157
#define ERR_CLIENT_SEND_FAILED          "Packet send failure"
 
158
#define ERR_CLIENT_INVALID_RESPONSE     "Received error in response to %s: %s"
 
159
#define ERR_CLIENT_DELIVERY_FAILED      "Delivery failed completely"
 
160
#define ERR_CLIENT_RESPONSE             "Got error %d in response to %s: %s"
 
161
#define ERR_CLIENT_RESPONSE_CODE        "Invalid data waiting for code %d: %s"
 
162
 
 
163
/* Classes */
 
164
 
 
165
#define LANG_CLASS_WHITELISTED          "Whitelisted"
 
166
#define LANG_CLASS_SPAM                 "Spam"
 
167
#define LANG_CLASS_INNOCENT             "Innocent"
 
168
#define LANG_CLASS_VIRUS                "Virus"
 
169
#define LANG_CLASS_BLOCKLISTED          "Blocklisted"
 
170
#define LANG_CLASS_BLACKLISTED          "Blacklisted"
 
171
 
 
172
#endif /* _LANGUAGE_H */