Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(92) |
Oct
(277) |
Nov
(500) |
Dec
(346) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(437) |
Feb
(277) |
Mar
(215) |
Apr
(220) |
May
(225) |
Jun
(119) |
Jul
(184) |
Aug
(306) |
Sep
(340) |
Oct
(231) |
Nov
(176) |
Dec
(232) |
2004 |
Jan
(202) |
Feb
(189) |
Mar
(111) |
Apr
(43) |
May
(99) |
Jun
(164) |
Jul
(71) |
Aug
(82) |
Sep
(61) |
Oct
(135) |
Nov
(208) |
Dec
(174) |
2005 |
Jan
(241) |
Feb
(99) |
Mar
(236) |
Apr
(112) |
May
(175) |
Jun
(178) |
Jul
(18) |
Aug
(31) |
Sep
(37) |
Oct
(60) |
Nov
(41) |
Dec
(69) |
2006 |
Jan
(34) |
Feb
(14) |
Mar
(16) |
Apr
(6) |
May
(20) |
Jun
(15) |
Jul
(64) |
Aug
(25) |
Sep
|
Oct
(2) |
Nov
(25) |
Dec
(13) |
2007 |
Jan
(36) |
Feb
(15) |
Mar
(3) |
Apr
(2) |
May
|
Jun
|
Jul
(25) |
Aug
(2) |
Sep
|
Oct
|
Nov
(12) |
Dec
(4) |
2008 |
Jan
(2) |
Feb
(12) |
Mar
(4) |
Apr
(14) |
May
(8) |
Jun
(4) |
Jul
(4) |
Aug
(5) |
Sep
|
Oct
(11) |
Nov
(1) |
Dec
|
2009 |
Jan
(15) |
Feb
(50) |
Mar
|
Apr
(2) |
May
(16) |
Jun
|
Jul
(13) |
Aug
(16) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
(1) |
Feb
(7) |
Mar
(20) |
Apr
(5) |
May
|
Jun
|
Jul
(31) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(1) |
Dec
(4) |
2011 |
Jan
(1) |
Feb
(3) |
Mar
(1) |
Apr
(1) |
May
(8) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
(6) |
Feb
|
Mar
|
Apr
(9) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(12) |
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(14) |
Dec
(1) |
2014 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
(10) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
|
Dec
|
2016 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(2) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
(7) |
3
(2) |
4
(28) |
5
(1) |
6
(7) |
7
(6) |
8
(3) |
9
(5) |
10
(4) |
11
(17) |
12
(1) |
13
(5) |
14
(2) |
15
(11) |
16
|
17
(3) |
18
(1) |
19
(16) |
20
(5) |
21
(10) |
22
(13) |
23
(12) |
24
(6) |
25
(17) |
26
(23) |
27
(9) |
28
(17) |
29
(18) |
30
(17) |
31
(11) |
|
|
From: <relson@us...> - 2002-10-27 21:42:33
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv9808 Modified Files: bogoutil.c Log Message: Expanded the "-w path" option for displaying words from a word list. Words are now read from stdin or they can be specified on the command line. If the path is the name of a wordlist, the words will be looked up in that wordlist. If the path is a directory, the words will be looked up in path/spamlist.db and path/goodlist.db. Index: bogoutil.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/bogoutil.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** bogoutil.c 27 Oct 2002 00:29:47 -0000 1.16 --- bogoutil.c 27 Oct 2002 21:42:28 -0000 1.17 *************** *** 17,20 **** --- 17,22 ---- #include <ctype.h> #include <db.h> + #include <errno.h> + #include <sys/stat.h> #include "version.h" *************** *** 153,182 **** } ! int display_words(char *db_file) { - dbh_t *dbh; - char buf[BUFSIZE]; char *p; int rv = 0; size_t len; ! memset(buf, '\0', BUFSIZE); ! ! if ((dbh = db_open(db_file, db_file, DB_READ)) == NULL) { ! rv = 2; ! } ! else { ! db_lock_reader(dbh); ! for (;;) { ! if (fgets(buf, BUFSIZE, stdin) == NULL) { ! if (ferror(stdin)) { perror(PROGNAME); rv = 2; - } - break; } len = strlen(buf); p = &buf[len - 1]; ! if (*(p--) != '\n') { fprintf(stderr, --- 155,184 ---- } ! dbh_t *db_open_and_lock_file( const char *db_file, const char *name, dbmode_t mode) ! { ! dbh_t *dbh = db_open(db_file, db_file, DB_READ); ! if (dbh != NULL) ! db_lock_reader(dbh); ! return dbh; ! } ! ! int get_token(char *buf, size_t bufsize, FILE *fp) { char *p; int rv = 0; size_t len; ! if (fgets(buf, bufsize, fp) == NULL) { ! if (ferror(fp)) { perror(PROGNAME); rv = 2; } + else + rv = 1; + } + else { len = strlen(buf); p = &buf[len - 1]; ! if (*(p--) != '\n') { fprintf(stderr, *************** *** 185,200 **** buf); rv = 1; - break; } *(p + 1) = '\0'; ! printf("%s %ld\n", buf, db_getvalue(dbh, buf)); ! } ! db_lock_release(dbh); } return rv; } double compute_robx( dbh_t *dbh_spam, dbh_t *dbh_good ) { --- 187,287 ---- buf); rv = 1; } *(p + 1) = '\0'; + } + return rv; + } ! int words_from_list(char *db_file, int argc, char **argv) ! { ! dbh_t *dbh; ! int rv = 0; ! ! dbh = db_open_and_lock_file(db_file, db_file, DB_READ); ! if ( dbh == NULL ) ! return 2; ! ! if ( argc == 0) ! { ! char buf[BUFSIZE]; ! while (get_token(buf, BUFSIZE, stdin) == 0) { ! printf("%s %ld\n", buf, db_getvalue(dbh, buf)); ! } ! } ! else ! { ! while (argc-- > 0) { ! char *token = *++argv; ! printf("%s %ld\n", token, db_getvalue(dbh, token)); ! } } + db_close(dbh); + return rv; } + int words_from_path(char *directory, int argc, char **argv) + { + dbh_t *dbh_good; + dbh_t *dbh_spam; + char filepath[PATH_LEN]; + + build_path(filepath, PATH_LEN, directory, GOODFILE); + if ((dbh_good = db_open_and_lock_file(filepath, GOODFILE, DB_READ)) == NULL) + return 2; + + build_path(filepath, PATH_LEN, directory, SPAMFILE); + if ((dbh_spam = db_open_and_lock_file(filepath, SPAMFILE, DB_READ)) == NULL) + return 2; + + printf("%-20s %6s %6s\n", "", "spam", "good"); + if ( argc == 0) + { + char buf[BUFSIZE]; + while (get_token(buf, BUFSIZE, stdin) == 0) { + printf("%-20s %6ld %6ld\n", buf, db_getvalue(dbh_spam, buf), db_getvalue(dbh_good, buf)); + } + } + else + { + while (argc-- > 0) { + char *token = *argv++; + printf("%-20s %6ld %6ld\n", token, db_getvalue(dbh_spam, token), db_getvalue(dbh_good, token)); + } + } + + db_close(dbh_good); + db_close(dbh_spam); + + return 0; + } + + int display_words(char *path, int argc, char **argv) + { + struct stat sb; + int rc = stat(path, &sb); + + if (rc >= 0) + { + if ( S_ISDIR(sb.st_mode)) + words_from_path(path, argc, argv); + else + words_from_list(path, argc, argv); + } + else + { + if (errno==ENOENT) { + fprintf(stderr, "No such directory.\n"); + return 0; + } + else { + perror("Error accessing directory"); + return -1; + } + } + return 0; + } + double compute_robx( dbh_t *dbh_spam, dbh_t *dbh_good ) { *************** *** 419,423 **** /* Extra or missing parameters */ ! if (argc != optind) { usage(); exit(1); --- 506,510 ---- /* Extra or missing parameters */ ! if (flag != WORD && argc != optind) { usage(); exit(1); *************** *** 430,434 **** return load_file(db_file); case WORD: ! return display_words(db_file); case ROBX: return compute_robinson_x(db_file); --- 517,523 ---- return load_file(db_file); case WORD: ! argc -= optind; ! argv += optind; ! return display_words(db_file, argc, argv); case ROBX: return compute_robinson_x(db_file); |
From: <relson@us...> - 2002-10-27 20:26:41
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv4608 Modified Files: Tag: bogofilter-0_7_6 NEWS Log Message: Added statement identifying the Graham algorithm as the default behavior. Fixed several typos. Index: NEWS =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/NEWS,v retrieving revision 1.8.2.3 retrieving revision 1.8.2.4 diff -C2 -d -r1.8.2.3 -r1.8.2.4 *** NEWS 27 Oct 2002 18:00:40 -0000 1.8.2.3 --- NEWS 27 Oct 2002 20:26:37 -0000 1.8.2.4 *************** *** 14,22 **** * Bogofilter supports a new algorithm to calculate the "spamicity", the "Robinson" algorithm. It is enabled with the ! new "-r" switch. The old behaviour is called the "Graham" ! algorithm and can be enforced with the new "-g" switch. * Bogofilter now has an "-R FILE" option (that implies -r) to print an R data frame to FILE. ! * Bogofilter and bogoutil now have an -x CLASSES option to turn on debugging. * Bogoupgrade.pl has been renamed to bogoupgrade. --- 14,23 ---- * Bogofilter supports a new algorithm to calculate the "spamicity", the "Robinson" algorithm. It is enabled with the ! new "-r" switch. The old behavior is called the "Graham" ! algorithm and can be enforced with the new "-g" switch. The ! default behavior is to use the "Graham" algorithm. * Bogofilter now has an "-R FILE" option (that implies -r) to print an R data frame to FILE. ! * Bogofilter and bogoutil now have a "-x CLASSES" option to turn on debugging. * Bogoupgrade.pl has been renamed to bogoupgrade. |
From: <relson@us...> - 2002-10-27 18:00:43
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv5613 Modified Files: Tag: bogofilter-0_7_6 NEWS Log Message: Correct date line. Index: NEWS =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/NEWS,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** NEWS 27 Oct 2002 17:41:44 -0000 1.8.2.2 --- NEWS 27 Oct 2002 18:00:40 -0000 1.8.2.3 *************** *** 3,7 **** bogofilter news ! 0.7.6 2002-10-26 * Added README.hp-ux for those using HP-UX. * Added support for additional architectures - ia64, arm, --- 3,7 ---- bogofilter news ! 0.7.6 2002-10-27 * Added README.hp-ux for those using HP-UX. * Added support for additional architectures - ia64, arm, |
From: <allyn@us...> - 2002-10-27 17:52:16
|
Update of /cvsroot/bogofilter/bogofilter/contrib In directory usw-pr-cvs1:/tmp/cvs-serv879 Added Files: README.unbase64 unbase64 Log Message: quick hack preprocessor for decoding of text attachments. --- NEW FILE: README.unbase64 --- "unbase64" is a quick-and-dirty preprocessor for bogofilter that decodes text attachments using base64 or quoted-printable transfer encoding. A good deal of the spam I receive is now encoded in one of these ways, which makes spam detection more difficult. I found bogofilter was less-capable at classifying messages encoded in base64, since it was relying solely on the headers. IMPORTANT: The unbase64 script does not understand mime syntax very well and is not intended to transform the message in syntactically correct ways. Thus, it is only useful as a dead-end "nobody but bogofilter will be looking at the output so it doesn't need to be correct" filter. It is NOT suitable for using with the -p (passthrough) option of bogofilter that passes the message through while adding the X-Bogosity header. See below for example .procmailrc rules for using unbase64. To repeat: THIS IS NOT TO BE USED WITH -p OPTION!! Functionality: unbase64 does the following things: 1. Decodes text attachments with base64 transfer encoding. MIME headers are not updated. 2. Decodes text attachments with quoted-printable transfer encoding. MIME headers are not updated. 3. Removes nulls (\0) and carriage return characters (\r) from the input. 4. Non-text base64 attachments have the base64 data entirely removed. (Bogofilter would just throw it away anyway). EXAMPLE: These rules can be used with procmail and placed in your .procmailrc file. # classify as spam or not with bogofilter :0HB * ? unbase64 | bogofilter { SPAM=yes } :0f * SPAM ?? yes | /usr/bin/formail -A"X-Spam-Status: Yes" :0f * !SPAM ?? yes | /usr/bin/formail -A"X-Spam-Status: No" --- NEW FILE: unbase64 --- #!/usr/bin/perl # # unbase64 # # allyn fratkin <allyn@...> # # DO NOT USE AS A FILTER!! # USE ONLY AS INPUT TO BOGOFILTER WITHOUT -p OPTION! # # decodes base64 and quoted-printable text attachments # deletes binary base64 attachments # other minor preprocessing for bogofilter # # decoding routines were "lifted" from dmmh script found on internet # dmmh author is Per Hedeland <per@...> # $inbase64 = 0; $inqp = 0; $base64approaching = 0; $qpapproaching = 0; $textattachment = 0; while (<>) { s/\r$//; # bogofilter can't deal with \r correctly if (/^$/) { $inqp = $qpapproaching; $inbase64 = $base64approaching; } if (/^--[^>]/ || /^From /) { $inbase64 = 0; $inqp = 0; $base64approaching = 0; $qpapproaching = 0; $textattachment = 0; } if ($textattachment) { if ($inbase64) { print db64($_); next; } if ($inqp) { print dqp($_); next; } } next if ($inbase64); if (/^Content-Type.*text\//i) { $textattachment++; } if (/^Content-Transfer-Encoding.*base64/i) { $base64approaching++; } if (/^Content-Transfer-Encoding.*quoted-printable/i) { $qpapproaching++; } $_ =~ s/\0//g; # bogofilter can't deal with \0 correctly print; } print "\n"; sub dqp { my $res = shift; $res =~ s/=\n//ms; # = at end of line continues on next line #$res =~ s/_/=20/g; # code hex 20 may be encoded as '_' $res =~ s/=([\da-fA-F]{2})/pack("C", hex($1))/ge; $res =~ s/\0//g; # bogofilter can't deal with \0 correctly $res; } sub db64 { local($^W) = 0; # unpack("u",...) gives bogus warning in 5.001m my $str = shift; my $res = ""; $str =~ tr|A-Za-z0-9+/||cd; # remove non-base64 chars (padding) $str =~ tr|A-Za-z0-9+/| -_|; # convert to uuencoded format while ($str =~ /(.{1,60})/gs) { my $len = chr(32 + length($1)*3/4); # compute length byte $res .= unpack("u", $len . $1 ); # uudecode } $res =~ s/\0//g; # bogofilter can't deal with \0 correctly $res; } |
From: <relson@us...> - 2002-10-27 17:41:50
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv28021 Modified Files: Tag: bogofilter-0_7_6 configure.in NEWS Log Message: Updated NEWS file and changed version to 0.7.6.rc2. Index: configure.in =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/configure.in,v retrieving revision 1.17.2.4 retrieving revision 1.17.2.5 diff -C2 -d -r1.17.2.4 -r1.17.2.5 *** configure.in 26 Oct 2002 19:58:31 -0000 1.17.2.4 --- configure.in 27 Oct 2002 17:41:43 -0000 1.17.2.5 *************** *** 1,5 **** # $Id$ AC_INIT(bogofilter.c) ! AM_INIT_AUTOMAKE(bogofilter, 0.7.6.rc1) AM_CONFIG_HEADER(config.h:config.in) AC_PROG_CC --- 1,5 ---- # $Id$ AC_INIT(bogofilter.c) ! AM_INIT_AUTOMAKE(bogofilter, 0.7.6.rc2) AM_CONFIG_HEADER(config.h:config.in) AC_PROG_CC Index: NEWS =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/NEWS,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -C2 -d -r1.8.2.1 -r1.8.2.2 *** NEWS 25 Oct 2002 23:37:55 -0000 1.8.2.1 --- NEWS 27 Oct 2002 17:41:44 -0000 1.8.2.2 *************** *** 3,7 **** bogofilter news ! 0.7.6 2002-10-25T23:05:00Z * Bogofilter -p mode now preserves CR and NUL characters. * Bogofilter -p mode now detects if the computer runs out of --- 3,10 ---- bogofilter news ! 0.7.6 2002-10-26 ! * Added README.hp-ux for those using HP-UX. ! * Added support for additional architectures - ia64, arm, ! powerpc, and s390. * Bogofilter -p mode now preserves CR and NUL characters. * Bogofilter -p mode now detects if the computer runs out of |
From: <relson@us...> - 2002-10-27 17:40:41
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv27788 Modified Files: Makefile.am Added Files: README.hp-ux Log Message: Added info on building bogofilter for HP-UX. Index: Makefile.am =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/Makefile.am,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** Makefile.am 25 Oct 2002 03:15:16 -0000 1.39 --- Makefile.am 27 Oct 2002 17:40:38 -0000 1.40 *************** *** 34,38 **** bogofilter.xml bogoutil.xml bogoupgrade.xml \ bogofilter.spec bogofilter.spec.in \ ! UPGRADE bogoupgrade bogo.R \ doc/integrating-with-qmail contrib/bogofilter-qfe \ version.sh --- 34,38 ---- bogofilter.xml bogoutil.xml bogoupgrade.xml \ bogofilter.spec bogofilter.spec.in \ ! README.hp-ux UPGRADE bogoupgrade bogo.R \ doc/integrating-with-qmail contrib/bogofilter-qfe \ version.sh |
From: <relson@us...> - 2002-10-27 17:39:17
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv27296 Modified Files: Tag: bogofilter-0_7_6 Makefile.am Added Files: Tag: bogofilter-0_7_6 README.hp-ux Log Message: Added info on building bogofilter for HP-UX. --- NEW FILE: README.hp-ux --- Compiling Bogofilter on HP-UX ============================= Bogofilter has been tested on HP-UX 11.00 and 11i. There are three prerequisites for compiling Bogofilter on HP-UX. 1. gcc 2. flex 3. Berkeley DB gcc and flex (and other open-source software) are available from HP, at http://h21007.www2.hp.com/dev/technologies/topic/1,2608,10602,00.html Also available from the HP-UX Porting and Archive Centre, at http://hpux.connect.org.uk/ (and mirrors around the world). Berkeley DB may be obtained from Sleepycat Software, at http://www.sleepycat.com/ Also available from HP as part of the HP release of the Gnome Desktop, at http://www.hp.com/workstations/support/software/hpux/gnome/ The Gnome Desktop and Gnome Developer bundles are required. After the prerequistes have been met, make certain that gcc and flex are available through your PATH environment variable. Be sure to run the `configure' script with the `--with-db=/path/to/berkeley-db-dir' option so that `configure' can find your Berkeley DB installation. For example, users of the HP Gnome Desktop could use `configure --with-db=/opt/gnome'. Read the INSTALL file in this directory for more information and additional options for the `configure' script. Index: Makefile.am =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/Makefile.am,v retrieving revision 1.39 retrieving revision 1.39.2.1 diff -C2 -d -r1.39 -r1.39.2.1 *** Makefile.am 25 Oct 2002 03:15:16 -0000 1.39 --- Makefile.am 27 Oct 2002 17:39:13 -0000 1.39.2.1 *************** *** 34,38 **** bogofilter.xml bogoutil.xml bogoupgrade.xml \ bogofilter.spec bogofilter.spec.in \ ! UPGRADE bogoupgrade bogo.R \ doc/integrating-with-qmail contrib/bogofilter-qfe \ version.sh --- 34,38 ---- bogofilter.xml bogoutil.xml bogoupgrade.xml \ bogofilter.spec bogofilter.spec.in \ ! README.hp-ux UPGRADE bogoupgrade bogo.R \ doc/integrating-with-qmail contrib/bogofilter-qfe \ version.sh |
From: <relson@us...> - 2002-10-27 00:31:43
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv25220 Modified Files: Tag: bogofilter-0_7_6 main.c bogoutil.c Log Message: For arm/powerpc/s390 compatibility, return value of getopt() is now saved in an int variable (rather than one of type char). Index: main.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/main.c,v retrieving revision 1.52.2.2 retrieving revision 1.52.2.3 diff -C2 -d -r1.52.2.2 -r1.52.2.3 *** main.c 26 Oct 2002 20:14:32 -0000 1.52.2.2 --- main.c 27 Oct 2002 00:31:40 -0000 1.52.2.3 *************** *** 126,137 **** int process_args(int argc, char **argv) { ! int ch; ! int exitcode; ! int optind_save; optind_save=1; ! while ((ch = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(ch) { case 'd': --- 126,137 ---- int process_args(int argc, char **argv) { ! int option; ! int exitcode; ! int optind_save; optind_save=1; ! while ((option = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(option) { case 'd': Index: bogoutil.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/bogoutil.c,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** bogoutil.c 24 Oct 2002 12:52:46 -0000 1.15 --- bogoutil.c 27 Oct 2002 00:31:40 -0000 1.15.2.1 *************** *** 359,369 **** typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; char *db_file = NULL; - char ch; cmd_t flag = NONE; ! while ((ch = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (ch) { case 'd': flag = DUMP; --- 359,369 ---- typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; ! int option; char *db_file = NULL; cmd_t flag = NONE; ! while ((option = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (option) { case 'd': flag = DUMP; |
From: <relson@us...> - 2002-10-27 00:29:56
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv22359 Modified Files: main.c bogoutil.c Log Message: For arm/powerpc/s390 compatibility, return value of getopt() is now saved in an int variable (rather than one of type char). Index: main.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/main.c,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** main.c 26 Oct 2002 20:13:49 -0000 1.55 --- main.c 27 Oct 2002 00:29:47 -0000 1.56 *************** *** 126,137 **** int process_args(int argc, char **argv) { ! int ch; ! int exitcode; ! int optind_save; optind_save=1; ! while ((ch = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(ch) { case 'd': --- 126,137 ---- int process_args(int argc, char **argv) { ! int option; ! int exitcode; ! int optind_save; optind_save=1; ! while ((option = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(option) { case 'd': Index: bogoutil.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/bogoutil.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** bogoutil.c 24 Oct 2002 12:52:46 -0000 1.15 --- bogoutil.c 27 Oct 2002 00:29:47 -0000 1.16 *************** *** 359,369 **** typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; char *db_file = NULL; - char ch; cmd_t flag = NONE; ! while ((ch = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (ch) { case 'd': flag = DUMP; --- 359,369 ---- typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; ! int option; char *db_file = NULL; cmd_t flag = NONE; ! while ((option = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (option) { case 'd': flag = DUMP; |