--- bsfilter-1.0.15.orig/bsfilter/bsfilter +++ bsfilter-1.0.15/bsfilter/bsfilter @@ -1,4 +1,4 @@ -#! /usr/bin/env ruby +#! /usr/bin/ruby1.8 ## -*-Ruby-*- $Id: bsfilter,v 1.82 2006/09/24 09:41:34 nabeken Exp $ ## Copyright (C) 2003, 2004, 2005, 2006 NABEYA Kenichi ## --- bsfilter-1.0.15.orig/debian/compat +++ bsfilter-1.0.15/debian/compat @@ -0,0 +1 @@ +4 --- bsfilter-1.0.15.orig/debian/dirs +++ bsfilter-1.0.15/debian/dirs @@ -0,0 +1 @@ +usr/bin --- bsfilter-1.0.15.orig/debian/rules +++ bsfilter-1.0.15/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + /usr/bin/docbook-to-man debian/manpage.sgml > bsfilter.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + -rm -f bsfilter.1 + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/bsfilter. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/bsfilter + install -d $(CURDIR)/debian/bsfilter/usr/bin + install -m0755 bsfilter/bsfilter $(CURDIR)/debian/bsfilter/usr/bin + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + install -d $(CURDIR)/debian/bsfilter/usr/share/doc/bsfilter + (cd htdocs && tar cf - .) | \ + (cd $(CURDIR)/debian/bsfilter/usr/share/doc/bsfilter && \ + tar xf -) + dh_installexamples + install -d $(CURDIR)/debian/bsfilter/usr/share/doc/bsfilter/examples + tar cf - mda mua | \ + (cd $(CURDIR)/debian/bsfilter/usr/share/doc/bsfilter/examples && \ + tar xf -) +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman bsfilter.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- bsfilter-1.0.15.orig/debian/control +++ bsfilter-1.0.15/debian/control @@ -0,0 +1,20 @@ +Source: bsfilter +Section: mail +Priority: optional +Maintainer: akira yamada +Build-Depends-Indep: docbook-to-man +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.0 + +Package: bsfilter +Architecture: all +Depends: ruby1.8 +Recommends: libgdbm-ruby1.8 | libqdbm-ruby1.8 | libdb4.2-ruby1.8 | libdb4.3-ruby1.8 +Suggests: libkakasi-ruby1.8 +Description: Bayesian spam filter + Bsfilter is a spam filter which can distinguish spam mail from other mails. + It can read mails by three way: + * reads from normal file or stdin. + * retrieves and stores from IMAP server. + * reads from POP server and passes to POP client. (POP proxy) + Bsfilter gives nice support of Japanese. --- bsfilter-1.0.15.orig/debian/manpage.sgml +++ bsfilter-1.0.15/debian/manpage.sgml @@ -0,0 +1,639 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + akira"> + yamada"> + + Dec 14, 2003"> + + 1"> + akira@debian.org"> + + BSFILTER"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + bayesian spam filter + + + + &dhpackage; + + + < MAIL + + + &dhpackage; + + + MAIL ... + + + + DESCRIPTION + + &dhpackage; filters out spam + mails. + + If commands are specified, bsfilter is in maintenance mode, + otherwise it is in filtering mode. + + If bsfilter reads spam from stdin in filtering mode, exit + status is 0. It is 1 in case of a clean mail. + + + COMMANDS + + + + , + + add mails into the clean token database. + + + + , + + add mails into the spam token database. + + + + , + + subtract mails from the clean token database. + + + + , + + subtract mails from the spam token database. + + + + , + + update the probability table from clean and spam token + databases. + + + + + + export the clean token database. + + + + + + export the spam token database. + + + + + + import the clean token database. + + + + + + import the spam token database. + + + + + + export the probability database (for debugging purpose). + + + + + + OPTIONS + + + + + + specify the name of the bsfilter's home + directory. + + If this option is not used, a directory specified with + the environment variable "BSFILTERHOME" is used. + + If the variable "BSFILTERHOME" is not defined, + ".bsfilter" directory under your home is used. + + If the variable "HOME" is not defined, a directory + which bsfilter is located at is used. + + + + + + specify the name of the bsfilter's configuration file + "bsfilter.conf" in bsfilter's home directory is used by + default. + + + + + + check and/or study the first number of lines default + is 500. 0 means all. + + + + + + specify the name of database type "sdbm" by default. + + + + + + + specify algorithm of a tokenizer for Japanese language + "bigram" by default. + + + + + + print filename of clean mail. + + + + + + print filename of spam. + + + + + + access IMAP server. + + + + + + specify hostname of IMAP server. + + + + + + specify port number of IMAP server. default is + 143. + + + + + + specify authorization method. default is "auto". + "cram-md5" use "AUTHENTICATE CRAM-MD5" command. + "login" use "AUTHENTICATE LOGIN" command. + "loginc" use "LOGIN" command. + "auto" try "cram-md5", "login" and "loginc" in this order. + + + + + + specify user name of IMAP server. + + + + + + specify password of imap-user. + + + + + + specify destination folder for clean + mails. "inbox.clean" for example. + + + + + + specify destination folder for spams. "inbox.spam" for + example. + + + + + + filter or study mails without SEEN flag. + + + + + + filter or study mails without "X-Spam-Flag" + header. + + + + + + reset SEEN flag when bsfilter moves or modifies + mails. + + + + + + work as POP proxy. + + + + + + specify filename for logging process ID of bsfilter + "bsfilter.pid" in bsfilter's home directory is used by + default this function is valid when "--pop" is + specified. + + + + + + sit in tasktray this is valid with "--pop" on + VisualuRuby. + + + + + + specify hostname of POP server. + + + + + + specify port number of POP server. default is + 110. + + + + + + specify address of interface which bsfilter listens at + default is 0.0.0.0 and all interfaces are active. + + + + + + specify port number which bsfilter listens at. default + is 10110. + + + + + + optional. specify username of POP server. + + bsfilter checks match between value of this options + and a name which MUA sends. + + in case of mismatch, bsfilter closes sockets. + + + + + + specify rules of pop proxy. + + alternative way of pop-server, pop-port, + pop-proxy-port and pop-user option. + + format of "set" is + "pop-server:pop-port:[proxy-interface]:proxy-port[:pop-user]". + + If proxy-interface is specified and isn't 0.0.0.0 , + other interfaces are not used. + + "--pop-proxy-set 192.168.1.1:110::10110" is equivalent + with "--pop-server 192.168.1.1 --pop-port 110 + --pop-proxy-port 10110". + + + + + + When mail is longer than the specified number, the + mail is not filtered. When 0 is specified, all mails are + tested and filtered. unit is byte. default is + 50000. + + + + + + use POP over SSL with --pop option and use IMAP over SSL + with --imap option. + + + + + + specify a filename of a certificate of a trusted CA or a + name of a directory of certificates. + + + + + + + specify filtering method. "rf" by default. "g" means + Paul Graham method, "r" means Gary Robinson method, and + "rf" means Robinson-Fisher method. + + + + + + specify spam-cutoff value. 0.9 by default for Paul + Graham method. 0.582 by default for Gary Robinson method. + 0.95 by default for Robinson-Fisher method. + + + + , + + recognize mails, add them into clean or spam token database + and update the probability table. + + + + , + + disable degeneration during probability table + lookup. + + + + + + disable utf-8 support. + + + + + + refer specified headers of mails. + + + + , + + ignore headers of mails. + (it is same as --refer-header "".) + + + + , + + ignore body of mails, except URL or mail address. + + + + + + ignore plain text part if html part is included in the mail. + + + + + + ignore text after last "A" tag. + + + + + + specify characters which are allowable in a token + "*'!" by default. + + + + + + show summary of execution. + + + + + + show tokens which are newly added into the token + database. + + + + + + use "unix from" to divide mbox format file. + + + + + + reduce token database when the number of stored mails + is larger than this one 10000 by default. + + + + + + reduce token database as if this number of mails are + stored 8000 by default. + + + + + + write a mail to stdout. this options is invalid when + "--imap" or "--pop" is specified. + + + + + + insert "X-Spam-Revision: bsfilter release..." into a mail. + + + + + + insert "X-Spam-Flag: Yes" or "X-Spam-Flag: No" into a + mail. + + + + + + insert "X-Spam-Probability: number" into a mail. + + + + + + insert "X-specified_string-..." headers, instead of "Spam". + (it is valid with --insert-flag and/or --insert-probability + option.) + + + + + + insert "[SPAM] " at the beginning of Subject header. + + + + + + insert specified string, instead of "[SPAM] ". (it is valid + with --mark-spam-subject option.) + + + + + + show numbers of tokens and mails in databases and quit. + + + + , + + show help message. + + + + , + + quiet mode. + + + + , + + verbose mode. + + + + , + + debug mode. + + + + + + EXAMPLES + % bsfilter -s ~/Mail/spam/* ## add spam +% bsfilter -u -c ~/Mail/job/* ~/Mail/private/* ## add clean mails and update probability table +% bsfilter ~/Mail/inbox/1 ## show spam probability + + ## recipe of procmail +:0 HB +* ? bsfilter -a +spam/. + + ## recipe of procmail +:0 fw +| bsfilter -a --pipe --insert-flag --insert-probability + + + SEE ALSO + http://bsfilter.org/, + http://sourceforge.jp/projects/bsfilter/ + http://exerb.sourceforge.jp/, + http://www.osk.3web.ne.jp/~nyasu/software/vrproject.html, + http://www.ruby-lang.org/ + + + AUTHOR + + The original manual is in the bsfilter command it self which + is written by NABEYA Kenichi (upstream author). This manual page + was transrated from the manual by &dhusername; <&dhemail;> + for the &debian; system (but may be used by others). Permission + is granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- bsfilter-1.0.15.orig/debian/changelog +++ bsfilter-1.0.15/debian/changelog @@ -0,0 +1,69 @@ +bsfilter (1:1.0.15-2) unstable; urgency=low + + * remove libdb{2,3}-ruby1.8 from Recommends. (closes: #439544) + + -- akira yamada Mon, 27 Aug 2007 13:02:05 +0900 + +bsfilter (1:1.0.15-1) unstable; urgency=low + + * New upstream release (closes: #390176) + + -- akira yamada Thu, 26 Apr 2007 10:13:23 +0900 + +bsfilter (1:1.0.14-1) unstable; urgency=low + + * New upstream release + + -- akira yamada Tue, 15 Aug 2006 17:32:34 +0900 + +bsfilter (1:1.0.13-1) unstable; urgency=low + + * New upstream release. + + -- akira yamada Sun, 23 Apr 2006 18:40:46 +0900 + +bsfilter (1:1.0.9-1) unstable; urgency=low + + * new upstream version. (closes: #318638) + * depends on "ruby1.8" instead of "ruby". + + -- akira yamada Sat, 30 Jul 2005 14:49:30 +0900 + +bsfilter (1:1.0.4-1) unstable; urgency=low + + * new upstream version. + + -- akira yamada Sat, 14 Aug 2004 18:55:06 +0900 + +bsfilter (1:1.0.2-1) unstable; urgency=low + + * new upstream version. (closes: #248411) + * updated debian/copyright. + + -- akira yamada Wed, 12 May 2004 21:18:48 +0900 + +bsfilter (1:1.0.1-1) unstable; urgency=low + + * new upstream version. + + -- akira yamada Tue, 30 Mar 2004 09:27:20 +0900 + +bsfilter (1:1.0.0-1) unstable; urgency=low + + * new upstream version. (versioning scheme of the upstream source is + chancged.) + + -- akira yamada Mon, 1 Mar 2004 12:41:11 +0900 + +bsfilter (1.38-1) unstable; urgency=low + + * new upstream version. + + -- akira yamada Sat, 27 Dec 2003 16:59:39 +0900 + +bsfilter (1.37-1) unstable; urgency=low + + * Initial Release. (closes: #209092) + + -- akira yamada Mon, 15 Dec 2003 12:20:53 +0900 + --- bsfilter-1.0.15.orig/debian/copyright +++ bsfilter-1.0.15/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by akira yamada on +Mon, 15 Dec 2003 12:20:53 +0900. + +It was downloaded from + +Upstream Author: NABEYA Kenichi + +Copyright: + +## Copyright (C) 2003, 2004, 2005, 2006 NABEYA Kenichi +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- bsfilter-1.0.15.orig/debian/watch +++ bsfilter-1.0.15/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://sourceforge.jp/projects/bsfilter/files/ http://prdownloads.sourceforge.jp/bsfilter/10876/bsfilter-(.*)\.tgz