~ubuntu-branches/ubuntu/saucy/dspam/saucy

« back to all changes in this revision

Viewing changes to src/mysql_drv.c

  • Committer: Package Import Robot
  • Author(s): Thomas Preud'homme, Julien Valroff, Thomas Preud'homme
  • Date: 2012-04-22 17:46:10 UTC
  • mfrom: (8.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120422174610-m3bxpldro0e30gfw
Tags: 3.10.2+dfsg-1
[ Julien Valroff ]
* New upstream release
* Add gbp.conf to allow filtering out non DFSG-clean files when using
  git-import-orig to merge new upstream releases 
* Use definitive DEP-5 copyright format uri
* Add dspam_alias_retraining script to dspam package as example 
* Refresh and update patches 
* Use maintscript support in dh_installdeb rather than writing out
  dpkg-maintscript-helper commands by hand.  We now simply Pre-Depend on a
  new enough version of dpkg rather than using 'dpkg-maintscript-helper
  supports' guards, leading to more predictable behaviour on upgrades.
  Thanks to Colin Watson <cjwatson@ubuntu.com> (Closes: #659717)
* Add Thomas Preud'homme as uploader
* Set DM-Upload-Allowed: yes 

[ Thomas Preud'homme ]
* Remove multiarch support for libdspam7-dev as it contains an header with
  arch-specific contents (Closes: #669993).
* Build-depend on debhelper (>= 9.0.0) to match compatibility.
* Bump Standards-Version to 3.9.3 (no changes needed).
* Fix quarantine mails deletion in web frontend for spanish users
  (Closes: #673833).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: mysql_drv.c,v 1.889 2011/08/10 13:54:21 sbajic Exp $ */
 
1
/* $Id: mysql_drv.c,v 1.889 2011/10/01 10:22:17 sbajic Exp $ */
2
2
 
3
3
/*
4
4
 DSPAM
5
 
 COPYRIGHT (C) 2002-2011 DSPAM PROJECT
 
5
 COPYRIGHT (C) 2002-2012 DSPAM PROJECT
6
6
 
7
7
 This program is free software: you can redistribute it and/or modify
8
8
 it under the terms of the GNU Affero General Public License as
81
81
 * RETURN VALUES
82
82
 *   Returns 1 if MySQLUIDInSignature is turned "on" and 0 if turned "off".
83
83
 */
 
84
/*
84
85
static int _mysql_drv_get_UIDInSignature (DSPAM_CTX *CTX) {
85
86
  static int uid_in_signature = -1;
86
87
  if (uid_in_signature > -1) {
93
94
  }
94
95
  return uid_in_signature;
95
96
}
 
97
*/
96
98
 
97
99
/*
98
100
 * _mysql_drv_get_virtual_table()
105
107
 *   Returns the name of the virtual table if defined, otherwise returns
106
108
 *   "dspam_virtual_uids".
107
109
 */
 
110
/*
108
111
static char *_mysql_drv_get_virtual_table (DSPAM_CTX *CTX) {
109
112
  static char *virtual_table = "*";
110
113
  if (virtual_table[0] != '*') {
116
119
  }
117
120
  return virtual_table;
118
121
}
 
122
*/
119
123
 
120
124
/*
121
125
 * _mysql_drv_get_virtual_uid_field()
128
132
 *   Returns the name of the virtual uid field if defined, otherwise returns
129
133
 *   "uid".
130
134
 */
 
135
/*
131
136
static char *_mysql_drv_get_virtual_uid_field (DSPAM_CTX *CTX) {
132
137
  static char *virtual_uid = "*";
133
138
  if (virtual_uid[0] != '*') {
139
144
  }
140
145
  return virtual_uid;
141
146
}
 
147
*/
142
148
 
143
149
/*
144
150
 * _mysql_drv_get_virtual_username_field()
151
157
 *   Returns the name of the virtual username field if defined, otherwise returns
152
158
 *   "username".
153
159
 */
 
160
/*
154
161
static char *_mysql_drv_get_virtual_username_field (DSPAM_CTX *CTX) {
155
162
  static char *virtual_username = "*";
156
163
  if (virtual_username[0] != '*') {
162
169
  }
163
170
  return virtual_username;
164
171
}
 
172
*/
165
173
 
166
174
/*
167
175
 * _mysql_driver_get_max_packet()