debian/0000755000000000000000000000000011733511065007170 5ustar debian/ifile.procmail-0.2/0000755000000000000000000000000011733305542012363 5ustar debian/ifile.procmail-0.2/bin/0000755000000000000000000000000011733305542013133 5ustar debian/ifile.procmail-0.2/bin/ifile.test.message0000644000000000000000000000044011733305542016545 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok if [ "$#" != "0" -o "x$1" == "x--help" ] ; then echo "Usage: $0 " echo "Prints theoretical category of message.\ Message expected on stdin." exit 1 fi ifile -v 0 -h -q | head -1 | cut -f 1 -d " " debian/ifile.procmail-0.2/bin/ifile.learn.mailbox0000644000000000000000000000112011733305542016672 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok function DEBUG { echo "$@" ; } #function DEBUG { } if [ "$#" -lt "2" -o "x$1" == "x--help" ] ; then echo "Usage: $0 category mailbox [mailbox2 ...] " echo "Learns statistics about mailboxes and store it in category" exit 1 fi CAT="$1" if ! expr "x${CAT}" : "x[-a-zA-Z0-9_@#]*$" >/dev/null ; then echo "ERR: Illegal characters in category name." >&2 exit 1 fi shift 1 for MBOX in "$@" ; do DEBUG "learning mailbox $MBOX into category $CAT" formail -s ifile -h -i "$CAT" <"$MBOX" >/dev/null 2>&1 done debian/ifile.procmail-0.2/bin/ifile.relearn.message0000644000000000000000000000130111733305542017213 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok function DEBUG { echo "$@" ; } #function DEBUG { } if [ "$#" -lt "2" -o "x$1" == "x--help" ] ; then echo "Usage: $0 oldcategory newcategory" echo "Relearns statistics about message and store it in newcategory" echo "Message expected on stdin" exit 1 fi OLDCAT="$1" NEWCAT="$2" if ! expr "x${OLDCAT}" : "x[-a-zA-Z0-9_@#]*$" >/dev/null ; then echo "ERR: Illegal characters in category name." >&2 exit 1 fi if ! expr "x${NEWCAT}" : "x[-a-zA-Z0-9_@#]*$" >/dev/null ; then echo "ERR: Illegal characters in category name." >&2 exit 1 fi # for ifile <1.0.3 substitute "-u" with "-i" ifile -h -d "$OLDCAT" -u "$NEWCAT" debian/ifile.procmail-0.2/bin/ifile.test.mailbox0000644000000000000000000000165111733305542016561 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok function DEBUG { echo "$@" ; } #function DEBUG { } if [ "$#" -lt "2" -o "x$1" == "x--help" ] ; then echo "Usage: $0 category mailbox " echo "Prints theoretical succes of ifile on mailbox." exit 1 fi FTMP=${TMPDIR:-/tmp} FMSG=`mktemp $FTMP/ifile.tmp.XXXXXX` [ -z "$FMSG" ] && echo "ERR: cannot create tmp file!" >&2 && exit 1 trap "rm -f $FMSG" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 CAT="$1" shift 1 for MBOX in "$@" ; do #DEBUG "Testing mailbox $MBOX with category $CAT" formail -s ifile.test.message <"$MBOX" >"$FMSG" SUCCESS=$(grep "^${CAT}$" <"$FMSG"|wc -l)/$(wc -l <"$FMSG") SUCCESS=$(echo $SUCCESS|sed 's/\ //g') echo "${MBOX} (${CAT})" : "$SUCCESS" " ("$(echo "100 * $SUCCESS"|bc)"%)" #DEBUG "In detail:" for CATS in $(sort -u <"$FMSG") ; do DEBUG "$CATS:" $(grep "$CATS" <"$FMSG"|wc -l) done done rm -f "$FMSG" debian/ifile.procmail-0.2/bin/ifile.reset0000644000000000000000000000007511733305542015271 0ustar #!/bin/bash cp ~/.idata ~/.idata.backup 2>/dev/null ifile -r debian/ifile.procmail-0.2/bin/ifile.learn.message0000644000000000000000000000073411733305542016675 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok function DEBUG { echo "$@" ; } #function DEBUG { } if [ "$#" -lt "1" -o "x$1" == "x--help" ] ; then echo "Usage: $0 category" echo "Learns statistics about message and store it in category" echo "Message expected on stdin" exit 1 fi CAT="$1" if ! expr "x${CAT}" : "x[-a-zA-Z0-9_@#]*$" >/dev/null ; then echo "ERR: Illegal characters in category name." >&2 exit 1 fi ifile -h -i "$CAT" debian/ifile.procmail-0.2/bin/ifile.inject.header0000644000000000000000000000104611733305542016651 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok if [ "$#" != "0" -o "x$1" == "x--help" ] ; then echo "Usage: $0 " echo "Injects ifile's hint header into mail. " \ "Message expected on stdin, result goes to stdout." exit 1 fi FTMP=${TMPDIR:-/tmp} FMSG=`mktemp $FTMP/ifile.tmp.XXXXXX` [ -z "$FMSG" ] && echo "ERR: cannot create tmp file!" >&2 && exit 1 trap "rm -f $FMSG" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 HINT=$(tee "$FMSG" | ifile.test.message) formail -i "X-Ifile-Hint: $HINT" <"$FMSG" rm -f "$FMSG" debian/ifile.procmail-0.2/bin/ifile.unlearn.message0000644000000000000000000000065311733305542017240 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok if [ "$#" -lt "1" -o "x$1" == "x--help" ] ; then echo "Usage: $0 category" echo "Undo learn statistics about message from category." echo "Message expected on stdin" exit 1 fi OLDCAT="$1" if ! expr "x${OLDCAT}" : "x[-a-zA-Z0-9_@#]*$" >/dev/null ; then echo "ERR: Illegal characters in category name." >&2 exit 1 fi ifile -h -d "$OLDCAT" debian/ifile.procmail-0.2/bin/ifile.test-learn.message0000644000000000000000000000051211733305542017644 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok # same as ifile.test.message but s/-q/-Q/ if [ "$#" != "0" -o "x$1" == "x--help" ] ; then echo "Usage: $0 " echo "Prints theoretical category of message.\ Message expected on stdin." exit 1 fi ifile -v 0 -h -Q | head -1 | cut -f 1 -d " " debian/ifile.procmail-0.2/bin/ifile.inject-learn.header0000644000000000000000000000115011733305542017744 0ustar #!/bin/bash # Public domain (C) 2001 Martin Macok # same as ifile.inject.header except for s/test/test-learn/ if [ "$#" != "0" -o "x$1" == "x--help" ] ; then echo "Usage: $0 " echo "Injects ifile's hint header into mail. " \ "Message expected on stdin, result goes to stdout." exit 1 fi FTMP=${TMPDIR:-/tmp} FMSG=`mktemp $FTMP/ifile.tmp.XXXXXX` [ -z "$FMSG" ] && echo "ERR: cannot create tmp file!" >&2 && exit 1 trap "rm -f $FMSG" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 HINT=$(tee "$FMSG" | ifile.test-learn.message) formail -i "X-Ifile-Hint: $HINT" <"$FMSG" rm -f "$FMSG" debian/ifile.procmail-0.2/README0000644000000000000000000000702311733305542013245 0ustar ifile.procmail ============== This package contains shell scripts that allows ifile to be used in standard unix e-mail environment - i.e. with procmail and standard unix mailboxes (mbox). Q: What is ifile? How does it work? A: Visit http://www.nongnu.org/ifile/ and read it. Shortly: You can use it for e-mail filtering (automatic sorting emails to right folders). I use it for SPAM filtering. It counts word statistics in your e-mails in different folders and uses it for sorting new emails into them. Requires: --------- bash, procmail, formail, mktemp. And of course ifile itself - this version works with ifile 1.0.3 (older has different command line switches). Installation: ------------- Get ifile from http://www.ai.mit.edu/%7Ejrennie/ifile/ and install it. Copy all executable scripts in bin/ subfolder into some directory where could be used system wide. Example: # cp bin/* /usr/local/bin/ Setup: ------ Log in as a user which receives the e-mails. Run ifile.reset to reset the configuration (~/.idata file). Say you have your mbox folder in directory ~/mail/. Say you wan't to just recognize "good" messages and "spam" messages. So you've got some folders with "good" emails and one folder with "spam" messages. So you need to learn ifile how to recognize between them - simply tell it where "good" emails are and where "spam" emails are: $ ifile.learn.mailbox good /var/spool/mail/your_mbox ~/mail/mbox $ ifile.learn.mailbox good ~/mail/alerts ~/mail/bugtraq ~/mail/love $ ifile.learn.mailbox spam ~/mail/spam More messages (larger mboxes) you learn - more accurate filtering you get. You can test it with: $ ifile.test.mailbox good ~/mail/mbox $ ifile.test.mailbox spam ~/mail/spam If you're not satisfied with results - learn more/less/different mailboxes or simply don't use this system. Sometimes it helps to not learn some specific mailboxes or to learn more mailboxes... It just depends on sort of emails you get. If you're satisfied with the results you can setup mail delivery to use it. We need your local mail server (delivery) to be proceeded through procmail. This is default on most Linux systems but it couldn't be on yours. Consult your administrator, or check it by yourself. (If you're sure it is not proceeded through procmail you can use "|/path/to/procmail" in ~/.forward or "|preline /path/to/procmail" in ~/.qmail file) So you want to configure procmail to use ifile. Edit the file ~/.procmailrc to look something like sample.procmailrc file. For further information see man procmail, man procmailrc, man procmailex. Be carefull, having bad ~/.procmailrc file can make your e-mails lost! Now you're done - e-mails should be sorted with the help of ifile. Usage: ------ Sometimes you want to tell ifile that it made a "mistake" and sorted e-mail into bad folder. You can do it by hand and filter the message through ifile.relearn.message script. Say you received spam message but ifile didn't recognize it and sorted it as a good message. So you can do $ ifile.relearn.message good spam "|ifile.relearn.message good spam\ns=spam\n\n\t" "Relearn a spam and store it to spam folder" ' folder-hook spam 'macro pager "|ifile.relearn.message spam good\ns=mbox\n\n\t" "Relearn good message and store it to mbox folder" ' So when I hit F8 ifile relearns it and move it into the right folder. License: -------- Public domain. Enjoy! Martin Maèok http://Xtrmntr.org/ORBman/ debian/ifile.procmail-0.2/sample.procmailrc0000644000000000000000000000130011733305542015713 0ustar HOME=/home/martin # your home directory # make sure PATH contains dir to ifile* scripts! PATH=/bin:/usr/bin:/usr/local/bin:$HOME/bin MAILDIR=/home/martin/mail # the directory you have your mboxes in # DEFAULT=/var/mail/martin # completely optional LOGFILE=$MAILDIR/.from # recommended log # some static filtering without ifile usage, for example: :0: * ^List-Id:.*bugtraq.list-id.securityfocus.com bugtraq # here is where ifile injects a header in the message # if you don't want to learn from new messages, use ifile.inject.header :0 fBw : | ifile.inject-learn.header # and now we can sort the mails with the help of ifile hint :0: * ^X-Ifile-Hint:\ spam spam # etc... debian/ifile.procmail-0.2/Changelog0000644000000000000000000000043211733305542014174 0ustar Mon, 10 Sep 2005 20:43 +0200 - Changed ksh to bash. (jps@debian.org) Fri, 8 Mar 2002 09:57:06 +0100 - add serialization (locking) to procmail rule - write access to ~/.idata - various small shell scripts clean ups - package 0.2 Mon, 31 Dec 2001 12:20:40 +0000 - package 0.1 debian/source/0000755000000000000000000000000011733305542010471 5ustar debian/source/format0000644000000000000000000000001411733305542011677 0ustar 3.0 (quilt) debian/metamail/0000755000000000000000000000000011733305542010762 5ustar debian/metamail/README0000644000000000000000000000245211733305542011645 0ustar README for metamail integration with ifile. TERMS ----- These scripts were written by Jens Peter Secher in 2002. I hereby grant everyone an unconditional, irrevocable royalty-free, non-exclusive, world-wide license to any copyright on the work I may have in any jurisdiction; this license includes the right to prepare, distribute and sublicense modified and/or derived works without my prior specific permission. CONTENTS -------- README This file. mailcap File that tells metamail what to do with attachments. USE --- Metamail is used for decoding multi-part emails (MIME). The provided file "mailcap" can be used to override the normal behaviour of metamail such that all output is text. To use the "mailcap" file, pipe each message through the command KEYHEADS='*' MAILCAPS=mailcap metamail -d 2>&1 (assuming korn-like shell), which will output all headers and printable parts of the email on stdout. Unprintable parts are output as a string encodedinlined where is the MIME type, for example, "imagejpg". Metamail can thus be used as a preprocessor for ifile, for instance by the following script. #!/bin/sh KEYHEADS='*' MAILCAPS=/usr/share/doc/ifile/examples/metamail/mailcap metamail -d 2>&1 | \ ifile -v0 -q | \ head -1 | \ cut -f 1 -d " " END OF README. debian/metamail/mail-inject0000644000000000000000000000065011733305542013102 0ustar #!/bin/sh if [ -z "$1" -o "$1" = "--help" -o "$1" = "-h" ]; then PROGRAM=`basename $0` fmt <&1 exit 0 debian/metamail/mail-move-class0000644000000000000000000000073611733305542013704 0ustar #!/bin/sh if [ -z "$1" -o "$1" = "--help" -o "$1" = "-h" -o -z "$2" ]; then PROGRAM=`basename $0` fmt <" image/*; echo encodedinlined%t | tr -d -c '[:alpha:]' application/*; echo encodedinlined%t | tr -d -c '[:alpha:]' audio/*; echo encodedinlined%t | tr -d -c '[:alpha:]' debian/ifile.lintian-overrides0000644000000000000000000000032111733305542013635 0ustar # package.lintian-overrides # This is not a spelling error, but code: # stem.c: {411, "ment", LAMBDA, 3, -1, 1, NULL}, ifile binary: spelling-error-in-binary usr/bin/ifile ment meant # End o file debian/changelog0000644000000000000000000001671211733305542011052 0ustar ifile (1.3.9-6) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. - Add LGPL and list correct files under GPL. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Fri, 23 Mar 2012 07:22:02 -0400 ifile (1.3.9-5) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9, dpkg-dev 1.16.1. * debian/patches - (20): Update to DEP3. * debian/rules - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Sun, 12 Feb 2012 11:10:20 -0500 ifile (1.3.9-4) unstable; urgency=low * debian/control - (Standards-Version): Update to 3.9.2. - (Description): Make first line more compact (lintian). * debian/copyright - (Copyright): Add missing headers. - (Format): Update URL. * debian/debian-autotools.mk - Delete; no longer needed. * debian/ifile.lintian-overrides - Correct match line. * debian/rules - Remove include and clean up config.* files (FTBFS; Closes: #643164). -- Jari Aalto Wed, 28 Sep 2011 12:20:24 +0300 ifile (1.3.9-3) unstable; urgency=low * debian/copyright - Update to DEP5. * debian/patches - (30): New. Correct call to memset(). Patch thanks to Silvio Cesare (Closes: #609376). -- Jari Aalto Sat, 09 Apr 2011 17:04:49 +0300 ifile (1.3.9-2) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): Update to debhelper 8. - (Standards-Version): Update to 3.9.1. * debian/debian-lintian.mk - Delete. Obsoleted by new debhelper. * debian/rules - Simplify more for dh(1). -- Jari Aalto Thu, 04 Nov 2010 00:35:54 +0200 ifile (1.3.9-1) unstable; urgency=low * New maintainer (Closes: #546380). - Move to packaging format "3.0 (quilt)". * debian/control - (Build-Depends): Update to debhelper 7.1, remove quilt. - (Depends): add ${misc:Depends}. - (Standards-Version): updated to 3.8.4. - (Vcs-*): new fields. * debian/copyright - Update layout. - Update upstream email address. * debian/debian-autotools.mk - New file. * debian-lintian.mk - New file. * debian/examples - Read files under examples.d/ directory. * debian/rules - Update to dh(1). * debian/source/format - New file. * debian/ifile.lintian-overrides - New file. * debian/watch - Update to version 3. -- Jari Aalto Tue, 09 Mar 2010 23:55:32 +0200 ifile (1.3.8-2) unstable; urgency=low * Eliminate bashism (Closes: #530107). * Convert changelog to UTF-8 and fix spelling. * Fix undefined macros in manpage. * Added a Vcs-Hg control filed to indicate the location of the public repository. * Added homepage field. * Use quilt instead of dpatch for patches, and describe how to use quilt in Debian.source (thanks to Russ Allbery). * Bumped the Standards-Version to 3.8.1 and debhelper compatibility to level 7. -- Jens Peter Secher Sun, 24 May 2009 21:29:56 +0200 ifile (1.3.8-1) unstable; urgency=low * New upstream version and location. * Move all changes to dpatch. * Bumped Standards-Version to 3.7.1 and debhelper compatibility to level 5. -- Jens Peter Secher Mon, 22 May 2006 22:08:19 +0200 ifile (1.3.5-2) unstable; urgency=low * Changed #!/bin/ksh into #!/bin/bash on request from togo@of.net. (Closes: bug#332192). -- Jens Peter Secher Mon, 10 Oct 2005 20:51:45 +0200 ifile (1.3.5-1) unstable; urgency=low * New upstream release which incorporates my man page changes. * Bump Standards-Version to 3.6.2. -- Jens Peter Secher Wed, 28 Sep 2005 11:22:15 +0200 ifile (1.3.4-3) unstable; urgency=low * Escaped hyphens in manpage where necessary to distinguish hard from soft hyphens. -- Jens Peter Secher Sun, 5 Jun 2005 17:52:37 +0200 ifile (1.3.4-2) unstable; urgency=low * Added a section with examples to the man page as suggested by Jari Aalto. (closes: bug#268332) * Modified the description of the threshold option as suggested by Jari Aalto. (closes: bug#274467) -- Jens Peter Secher Fri, 19 Nov 2004 23:30:24 +0100 ifile (1.3.4-1) unstable; urgency=low * New upstream release. (closes: bug#258066) * Fixed debian/wath file. -- Jens Peter Secher Tue, 17 Aug 2004 20:41:06 +0200 ifile (1.3.3-2) unstable; urgency=low * [debian/rules] get-orig-source is a phony target. * Minor fixes in README files, including new URI. (closes: bug#207152) -- Jens Peter Secher Sat, 27 Dec 2003 18:21:26 +0100 ifile (1.3.3-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Mon, 15 Sep 2003 23:28:35 +0200 ifile (1.3.2-2) unstable; urgency=low * Changed maintainer field. * Bumped Standards Version to 3.6.1. -- Jens Peter Secher Mon, 15 Sep 2003 23:09:30 +0200 ifile (1.3.2-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Sat, 26 Jul 2003 00:18:57 +0200 ifile (1.3.0-2) unstable; urgency=low * Bumped Standards Version. * Compiled against the libc in Testing. -- Jens Peter Secher Sat, 15 Feb 2003 22:20:07 +0100 ifile (1.3.0-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Sat, 15 Feb 2003 12:35:52 +0100 ifile (1.2.1-2) unstable; urgency=low * Change the wording of the public domain copyrights. -- Jens Peter Secher Wed, 25 Dec 2002 19:58:45 +0100 ifile (1.2.1-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Mon, 25 Nov 2002 20:09:29 +0100 ifile (1.2.0-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Tue, 5 Nov 2002 23:00:27 +0100 ifile (1.1.4-1) unstable; urgency=low * New upstream release. * Remove script for interfacing Gnus with ifile, since they will be found in a package made by Ramakrishnan Muthukrishnan . -- Jens Peter Secher Wed, 2 Oct 2002 14:38:25 +0200 ifile (1.1.3-1) unstable; urgency=low * New upstream release * Added symbolic links to config.{sub,guess}, as described in autotools-dev, which is now depended upon. -- Jens Peter Secher Sat, 14 Sep 2002 15:21:33 +0200 ifile (1.0.10-2) unstable; urgency=low * examples/metamail: Use tr instead of sed in mailcap, and inserted some useful scripts. -- Jens Peter Secher Mon, 9 Sep 2002 20:10:29 +0200 ifile (1.0.10-1) unstable; urgency=low * New upstream release -- Jens Peter Secher Sun, 1 Sep 2002 07:00:42 +0200 ifile (1.0.7-1) unstable; urgency=low * New upstream release * Included scripts for Gnus. -- Jens Peter Secher Wed, 28 Aug 2002 20:41:19 +0200 ifile (1.0.6-1) unstable; urgency=low * Initial Release. * Compile against libc's argp.h instead of the one bundled with the source code. * Made a man page. * Included scripts for procmail use. -- Jens Peter Secher Mon, 26 Aug 2002 22:21:53 +0200 debian/copyright0000644000000000000000000000660111733305542011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 X-Format: http://dep.debian.net/deps/dep5 Upstream-Name: ifile Upstream-Contact: Jason Rennie Source: http://freshmeat.net/projects/ifile X-Upstream-Source: http://people.csail.mit.edu/jrennie/ifile Files: * Copyright: 1996-2002 Jason Rennie License: LGPL-2+ Files: database.c error.c hash_table.c ifile.c include/ifile.h include/hash_table.h include/extendable_array.h lex-define.c opts.c primes.c stem.c test.sh util.c Copyright: 1996-2002 Jason Rennie License: GPL-2+ Files: ifile.1 Copyright: 1996-2002 Jason Rennie License: Other ifile manpage section on examples: . Taken from http://www.nongnu.org/ifile/tutorial.html with permission from the Jason D. M. Rennie: "Yes, feel free to modify and redistribute that tutorial as you see fit for the Debian ifile package." as expressed in the log for bug#268332. Files: debian/* Copyright: 2010-2012 Jari Aalto 2002-2009 Jens Peter Secher License: GPL-2+ Files: debian/ifile.procmail-0.2/* Copyright: 2001 Martin Maèok X-Comment: [From original debian/copyright, before converting to DEP 5] . All scripts written by Martin Maèok . Martin Maèok disclaims all copyright in these scripts and places them in the public domain. Originally from http://Xtrmntr.org/ORBman/ but URL no longer responds 2009-11-28. License: Public-Domain [From debian/ifile.procmail-0.2/README] License: -------- Public domain. Files: debian/metamail/* Copyright: 2002-2009 Jens Peter Secher License: All scripts written by Jens Peter Secher , who disclaims all copyright in these scripts and places them in the public domain. License: GPL-2+ This package 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 package 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. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 Library General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, see . . On Debian systems, the complete text of the GNU Library General Public License can be found in "/usr/share/common-licenses/LGPL-2". debian/compat0000644000000000000000000000000211733305542010367 0ustar 9 debian/control0000644000000000000000000000173211733305542010577 0ustar Source: ifile Section: mail Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), bash (>= 3), autotools-dev Homepage: http://people.csail.mit.edu/jrennie/ifile X-Old-Vcs-Hg: http://hg.debian.org/hg/collab-maint/ifile/ifile Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/ifile.git.up.git Vcs-Git: git://git.debian.org/git/collab-maint/ifile.git.up.git Package: ifile Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: spam filter capable of learning A text filter that uses machine learning to classify texts into groups. ifile works great as a spam filter. The text is classified by a simple statistical method called Naive Bayes, which basically considers each text an unordered collection of words and classifies by matching the distribution with the most closely matching group distribution. Alternatives to ifile are annoyance-filter, bogofilter, spamoracle, and spamprobe. debian/README.Debian0000644000000000000000000000057511733305542011241 0ustar ifile for Debian ---------------- There are some scripts to make various mail user agents use ifile. See diectories: examples/matamail/ Public domain scripts by Jens Peter Secher . examples/ifile.procmail-0.2/ Public domain scripts by Martin Maèok . -- Jari Aalto Sat, 28 Nov 2009 10:37:47 +0000 debian/rules0000755000000000000000000000175611733305542010262 0ustar #!/usr/bin/make -f PACKAGE = ifile export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -Iinclude export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # The only place where to inject additional flags export CC := $(CC) $(CPPFLAGS) $(LDFLAGS) override_dh_auto_clean: # Override because Makefile has no target 'distclean'. See next target. rm -f config.* override_dh_clean: # Standard clean would cause to run 'configure' again (autotools) # Manual cleaning. rm -rf debian/$(PACKAGE) rm -f \ Makefile \ argp/Makefile \ config.status \ config.log \ argp/config.status \ argp/config.log \ *.o \ *.a \ debian/*.log \ debian/*.substvars \ debian/files \ argp/*.o \ ifile override_dh_auto_configure: cp -vf /usr/share/misc/config.sub . cp -vf /usr/share/misc/config.guess . dh_testdir dh_auto_configure override_dh_auto_test: # Nothing to do. Would cause to run 'configure' %: dh $@ # End of file debian/watch0000644000000000000000000000011011733305542010212 0ustar version=3 http://people.csail.mit.edu/jrennie/ifile/ifile-(.*)\.tar\.gz debian/ifile.examples0000644000000000000000000000005211733305542012016 0ustar debian/metamail debian/ifile.procmail-0.2 debian/patches/0000755000000000000000000000000011733305542010620 5ustar debian/patches/20-use-debian-argp.patch0000644000000000000000000000315611733305542015030 0ustar From: Jens Peter Secher Subject: Use system-wide argument parser instead of upstream version diff -urNad ifile-1.3.8~/Makefile.in ifile-1.3.8/Makefile.in --- ifile-1.3.8~/Makefile.in 2006-05-22 18:49:21.000000000 +0200 +++ ifile-1.3.8/Makefile.in 2006-05-23 23:19:08.000000000 +0200 @@ -120,7 +120,7 @@ INSTALL # Pattern rule -ALL_CPPFLAGS = $(CPPFLAGS) $(INCLUDEFLAGS) -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/argp $(DEFS) +ALL_CPPFLAGS = $(CPPFLAGS) $(INCLUDEFLAGS) -I$(srcdir) $(DEFS) ALL_CFLAGS = $(CFLAGS) %.o: %.c $(LIB_H_FILES) Makefile @@ -141,9 +141,9 @@ argp/libargp.a: cd argp ; $(MAKE) libargp.a -ALL_LIBS = $(LIBS) -L. -lifile -L./argp -largp -lm +ALL_LIBS = $(LIBS) -L. -lifile -lm -$(MAIN_EXECUTABLES): %: libifile.a argp/libargp.a %.o +$(MAIN_EXECUTABLES): %: libifile.a %.o $(CC) $(CFLAGS) $@.o -o $@ $(LDFLAGS) $(ALL_LIBS) # ifile.h has macros that indicate ifile's version number; these @@ -194,7 +194,7 @@ rm -f *.o libifile.a $(MAIN_EXECUTABLES) cd argp ; $(MAKE) clean maintainer-clean: clean - rm -f config.cache config.log config.status Makefile configure + rm -f config.cache config.log config.status Makefile cd argp ; $(MAKE) maintainer-clean # Making a distribution .tar.gz file diff -urNad ifile-1.3.8~/include/ifile.h ifile-1.3.8/include/ifile.h --- ifile-1.3.8~/include/ifile.h 2006-05-22 18:49:21.000000000 +0200 +++ ifile-1.3.8/include/ifile.h 2006-05-23 23:19:23.000000000 +0200 @@ -30,7 +30,7 @@ #include #include #include -#include "argp/argp.h" +#include #include "extendable_array.h" #include "hash_table.h" debian/patches/05-Makefile.in.patch0000644000000000000000000000147711733305542014216 0ustar From 276ddcc5bf0a2e97e50850e5b15da3c7d50bd3d4 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sat, 6 Mar 2010 20:02:07 +0200 Subject: [PATCH] Makefile.in: Comment out incorrect bindir, mandir Signed-off-by: Jari Aalto --- Makefile.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index fb5ce78..de8e835 100644 --- a/Makefile.in +++ b/Makefile.in @@ -54,8 +54,8 @@ bindir = @bindir@ mandir = @mandir@ # Installation locations -if [ ! $bindir ] ; then bindir = $(exec_prefix)/bin; fi -if [ ! $mandir ] ; then mandir = $(prefix)/man; fi +#if [ ! $bindir ] ; then bindir = $(exec_prefix)/bin; fi +#if [ ! $mandir ] ; then mandir = $(prefix)/man; fi #### This is just a test---feel free to delete ### printdirs: -- 1.7.0 debian/patches/series0000644000000000000000000000007611733305542012040 0ustar 05-Makefile.in.patch 20-use-debian-argp.patch 30-memset.patch debian/patches/30-memset.patch0000644000000000000000000000151711733305542013357 0ustar From 6a9900c05220e720548499a8a7b44b3a45ec182c Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sat, 9 Apr 2011 17:02:56 +0300 Subject: [PATCH] primes.c: Correct call to memset() Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- primes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/primes.c b/primes.c index 8a98ec4..89c7013 100644 --- a/primes.c +++ b/primes.c @@ -80,7 +80,7 @@ _ifile_nextprime (unsigned n) assert (sieve); - memset (sieve, (end - start) * sizeof (*sieve), 0); + memset (sieve, 0, (end - start) * sizeof (*sieve)); /* Make the sieve indexed by prime number, rather than distance-from-start-to-the-prime-number. When we're done, -- 1.7.4.1