summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2004-12-09 23:04:15 +0000
committerAndrej Kacian <ticho@gentoo.org>2004-12-09 23:04:15 +0000
commit307e2334cb310d08729c8bcbb039a2b7d41fb2b2 (patch)
treeeeab24ec7dc108270f2251d27cf3ab68698a52dc /mail-filter
parentVersion bump. My first commit. WOO HOO!!! (diff)
downloadhistorical-307e2334cb310d08729c8bcbb039a2b7d41fb2b2.tar.gz
historical-307e2334cb310d08729c8bcbb039a2b7d41fb2b2.tar.bz2
historical-307e2334cb310d08729c8bcbb039a2b7d41fb2b2.zip
Version bump. Closes #73113.
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/mailfilter/ChangeLog9
-rw-r--r--mail-filter/mailfilter/files/digest-mailfilter-0.7.11
-rw-r--r--mail-filter/mailfilter/files/rcfile.example1110
-rw-r--r--mail-filter/mailfilter/files/rcfile.example2116
-rw-r--r--mail-filter/mailfilter/mailfilter-0.7.1.ebuild25
5 files changed, 154 insertions, 107 deletions
diff --git a/mail-filter/mailfilter/ChangeLog b/mail-filter/mailfilter/ChangeLog
index 9cda0569ff1a..99597cb752e2 100644
--- a/mail-filter/mailfilter/ChangeLog
+++ b/mail-filter/mailfilter/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for mail-filter/mailfilter
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/mailfilter/ChangeLog,v 1.11 2004/10/04 09:28:10 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/mailfilter/ChangeLog,v 1.12 2004/12/09 23:04:15 ticho Exp $
+
+*mailfilter-0.7.1 (09 Dec 2004)
+
+ 09 Dec 2004; Andrej Kacian <ticho@gentoo.org> files/rcfile.example1,
+ files/rcfile.example2, +mailfilter-0.7.1.ebuild:
+ Version bump. Closes #73113, reported by Holger Hoffstatte
+ <holger@wizards.de>.
04 Oct 2004; Andrej Kacian <ticho@gentoo.org> mailfilter-0.4.0.ebuild,
mailfilter-0.6.1.ebuild, mailfilter-0.6.2.ebuild, mailfilter-0.6.ebuild:
diff --git a/mail-filter/mailfilter/files/digest-mailfilter-0.7.1 b/mail-filter/mailfilter/files/digest-mailfilter-0.7.1
new file mode 100644
index 000000000000..7dde3327eb45
--- /dev/null
+++ b/mail-filter/mailfilter/files/digest-mailfilter-0.7.1
@@ -0,0 +1 @@
+MD5 be6d603081086c8780601cb0c8e19f67 mailfilter-0.7.1.tar.gz 506799
diff --git a/mail-filter/mailfilter/files/rcfile.example1 b/mail-filter/mailfilter/files/rcfile.example1
index 900fd4750bfa..85d3a519cf02 100644
--- a/mail-filter/mailfilter/files/rcfile.example1
+++ b/mail-filter/mailfilter/files/rcfile.example1
@@ -6,38 +6,49 @@
# -----------------------------------------------------------
# Logile path (be sure you have write permission in this
# directory; you MUST specify a logfile)
-
-LOGFILE=/home/tux/logs/.mailfilter.log
-
-
+
+LOGFILE = "$HOME/logs/mailfilter.log"
+
+
# -----------------------------------------------------------
# Level of verbosity
+#
+# 0 Silent, show nothing at all
+# 1 Only show errors
+# 2 Only show "Deleted..." messages and errors
+# 3 Default; Show "Deleted..." messages, errors
+# and "Examining..." messages
+# 4 Like (3), except this also shows the current
+# account's username
+# 5 Like (4), except this also shows which filter
+# matched which string of an e-mail header
+# 6 Debugging mode; prints almost everything
+
+VERBOSE = 3
+
-VERBOSE=3
-
-
# -----------------------------------------------------------
-# POP3 server list (do not change the order of the fields!)
-# Note: Port 110 is usually the port POP3 servers use.
-# Currently only POP3 is supported.
-
-SERVER=pop.server.com
-USER=username
-PASS=password
-PROTOCOL=pop3
-PORT=110
-
-SERVER=pop.secondserver.com
-USER=anotherusername
-PASS=anotherusername
-PROTOCOL=pop3
-PORT=110
-
-
+# Server list (Do not change the order of the fields!!)
+# Note: Port 110 is usually the port APOP and POP3 servers use,
+# port 995 is required if (say) POP3/SSL is specified.
+
+SERVER = "pop.server.com"
+USER = "username"
+PASS = "password"
+PROTOCOL = "pop3"
+PORT = 110
+
+SERVER = "pop.secondserver.com"
+USER = "anotherusername"
+PASS = "anotherusername"
+PROTOCOL = "pop3/ssl"
+PORT = 995
+
+
# -----------------------------------------------------------
# Do you want case sensitive e-mail filters? { yes | no }
-
-REG_CASE=no
+
+REG_CASE = "no"
# -----------------------------------------------------------
@@ -45,73 +56,72 @@ REG_CASE=no
#
# (The default is 'basic', don't change unless you know what you
# are doing. Extended REs are more complex to set up.)
-
-REG_TYPE=basic
+
+REG_TYPE = "basic"
# -----------------------------------------------------------
# Maximum e-mail size in bytes that should not be exceeded.
-
-MAXSIZE_DENY=1000000
+
+MAXSIZE_DENY = 1000000
# -----------------------------------------------------------
# Set maximum line length of any field in the message header
-# (default is 998 characters per line; 0 to disable option)
-MAXLENGTH=998
+MAXLENGTH = 998
# ----------------------------------------------------------
# Filter rules for detecting spam (each rule must be placed
-# in a seperate line)
+# in a separate line)
# These filters detect certain unpleasant e-mail subjects:
-DENY=^Subject:.*Get penis enlargement
-DENY=^Subject:.*WIN MONEY
+DENY = "^Subject:.*Get penis enlargement"
+DENY = "^Subject:.*WIN MONEY"
# This one filters mail from a certain person:
-DENY=^From:.*spammer@any_spam_organisation.com
+DENY = "^From:.*spammer@any_spam_organisation\.com"
# This one filters mail from everyone at a certain organisation:
-DENY=^From:.*@any_provider_that_spams.org
+DENY = "^From:.*@any_provider_that_spams\.org"
# We don't want any of those 'LEGAL' messages either
# while stuff with 'legal' in the subject still interests us:
-DENY_CASE=^Subject:.*LEGAL
+DENY_CASE = "^Subject:.*LEGAL"
-# -----------------------------------------------------------
+# -----------------------------------------------------------
# Normalises the subject strings before parsing, e.g.
# ',L.E-G,A.L; ,C.A-B`L`E, +.B-O`X` ;D`E`S,C;R,A.MB;L,E.R-]'
# becomes 'LEGAL CABLE BOX DESCRAMBLER' which can be filtered.
-#
+#
# If NORMAL is switched on, Mailfilter tries to apply filters
# to both the normalised and the original subject.
-NORMAL=yes
+NORMAL = "yes"
# -----------------------------------------------------------
# The maximum e-mail size in bytes that messages from friends
# should not exceed. Set this to 0 if all your friends (ALLOW)
# can send messages as long as they want.
-
-MAXSIZE_ALLOW=0
-
-
+
+MAXSIZE_ALLOW = 0
+
+
# ----------------------------------------------------------
# Set list of friends that always pass, if they do not
# exceed the message length of MAXSIZE_ALLOW
-
+
# This rule allows all mail from a friend who was unlucky enough
# to have signed up with a spam organisation. With DENY we
# block everyone else from that domain though! See above!
-ALLOW=^From:.*a_friend_with_account@any_provider_that_spams.org
-
+ALLOW = "^From:.*a_friend_with_account@any_provider_that_spams.org"
+
# Of course we allow e-mail from anyone who has something to say about
# mailfilter:
-ALLOW=^Subject:.*mailfilter
+ALLOW = "^Subject:.*mailfilter"
# We also let our girlfriend send any e-mail she wants:
-ALLOW=^From:.*my_girlfriend@any_provider.com
+ALLOW = "^From:.*my_girlfriend@any_provider\.com"
diff --git a/mail-filter/mailfilter/files/rcfile.example2 b/mail-filter/mailfilter/files/rcfile.example2
index 9439ca38d589..ee995674bfc9 100644
--- a/mail-filter/mailfilter/files/rcfile.example2
+++ b/mail-filter/mailfilter/files/rcfile.example2
@@ -1,7 +1,8 @@
# -----------------------------------------------------------
-# Example configuration based upon the INSTALL document, but
-# showing some advanced features such as 'Negative Filters',
-# extended Regular Expressions, etc.
+# Example rcfile from the INSTALL document
+# Example configuration based upon the INSTALL document, but
+# showing some advanced features such as 'Negative Filters',
+# extended Regular Expressions, etc.
# -----------------------------------------------------------
@@ -9,37 +10,48 @@
# Logile path (be sure you have write permission in this
# directory; you MUST specify a logfile)
-LOGFILE=/home/tux/logs/.mailfilter.log
+LOGFILE = "$HOME/logs/mailfilter.log"
# -----------------------------------------------------------
# Level of verbosity
+#
+# 0 Silent, show nothing at all
+# 1 Only show errors
+# 2 Only show "Deleted..." messages and errors
+# 3 Default; Show "Deleted..." messages, errors
+# and "Examining..." messages
+# 4 Like (3), except this also shows the current
+# account's username
+# 5 Like (4), except this also shows which filter
+# matched which string of an e-mail header
+# 6 Debugging mode; prints almost everything
-VERBOSE=4
+VERBOSE = 4
# -----------------------------------------------------------
-# POP3 server list (do not change the order of the fields!)
-# Note: Port 110 is usually the port POP3 servers use.
-# Currently only POP3 is supported.
+# Server list (Do not change the order of the fields!!)
+# Note: Port 110 is usually the port APOP and POP3 servers use,
+# port 995 is required if (say) POP3/SSL is specified.
-SERVER=pop.server.com
-USER=username
-PASS=password
-PROTOCOL=pop3
-PORT=110
+SERVER = "pop.server.com"
+USER = "username"
+PASS = "password"
+PROTOCOL = "pop3"
+PORT = 110
-SERVER=pop.secondserver.com
-USER=anotherusername
-PASS=anotherusername
-PROTOCOL=pop3
-PORT=110
+SERVER = "pop.secondserver.com"
+USER = "anotherusername"
+PASS = "anotherusername"
+PROTOCOL = "pop3/ssl"
+PORT = 995
# -----------------------------------------------------------
# Do you want case sensitive e-mail filters? { yes | no }
-
-REG_CASE=no
+
+REG_CASE = "no"
# -----------------------------------------------------------
@@ -48,58 +60,52 @@ REG_CASE=no
# (The default is 'basic', don't change unless you know what you
# are doing. Extended REs are more complex to set up.)
-# We want some additional smartness in our rules. That's why only
-# extended Regular Expressions work for this sample set-up.
-REG_TYPE=extended
+# We want some additional smartness in our rules. That's why only
+# extended Regular Expressions work for this sample set-up.
+REG_TYPE = "extended"
# -----------------------------------------------------------
# Maximum e-mail size in bytes that should not be exceeded.
-# Accept only 250 KBytes message size. Friends can send more though.
-# (See MAXSIZE_ALLOW for further information.)
-MAXSIZE_DENY=250000
+# Accept only 250 KBytes message size. Friends can send more though.
+# (See MAXSIZE_ALLOW for further information.)
+MAXSIZE_DENY = 250000
# -----------------------------------------------------------
# Set maximum line length of any field in the message header
-# (default is 998 characters per line; 0 to disable option)
-MAXLENGTH=998
-
+MAXLENGTH = 998
-# ----------------------------------------------------------
-# Filter rules for detecting spam (each rule must be placed
-# in a seperate line)
-# This one filters mail from a certain person.
-# (We need the back slash before the '.com' since we are using
-# extended Regular Expressions.)
-DENY=^From:.*spammer@any_spam_organisation\.com
+# This one filters mail from a certain person.
+# (We need the back slash before the '.com' since we are using
+# extended Regular Expressions.)
+DENY=^From:.*spammer@any_spam_organisation\.com
# This one filters mail from everyone at a certain organisation:
-DENY=^From:.*@any_provider_that_spams\.org
+DENY = "^From:.*@any_provider_that_spams\.org"
# We don't want any of those 'LEGAL' messages either
# while stuff with 'legal' in the subject still interests us:
-DENY_CASE=^Subject:.*LEGAL
+DENY_CASE = "^Subject:.*LEGAL"
-# This one demonstrates the use of 'Negative Filters' and the
-# logical OR '|' in Regular Expressions.
-# (Again, the example works only with extended Regular Expressions.)
-# Kill everything not directly addressed to own account:
+# This one demonstrates the use of 'Negative Filters' and the
+# logical OR '|' in Regular Expressions.
+# (Again, the example works only with extended Regular Expressions.)
+# Kill everything not directly addressed to own account:
DENY<>(^To|^Cc):(.*username@server\.com|.*anotherusername@secondserver\.com)
-
-# -----------------------------------------------------------
+# -----------------------------------------------------------
# Normalises the subject strings before parsing, e.g.
# ',L.E-G,A.L; ,C.A-B`L`E, +.B-O`X` ;D`E`S,C;R,A.MB;L,E.R-]'
# becomes 'LEGAL CABLE BOX DESCRAMBLER' which can be filtered.
-#
+#
# If NORMAL is switched on, Mailfilter tries to apply filters
# to both the normalised and the original subject.
-NORMAL=yes
+NORMAL = "yes"
# -----------------------------------------------------------
@@ -107,23 +113,21 @@ NORMAL=yes
# should not exceed. Set this to 0 if all your friends (ALLOW)
# can send messages as long as they want.
-# Accept only up to 0.5 MBytes message size from those listed
-# in the ALLOW rules
-MAXSIZE_ALLOW=500000
-
-
+MAXSIZE_ALLOW = 0
+
+
# ----------------------------------------------------------
# Set list of friends that always pass, if they do not
# exceed the message length of MAXSIZE_ALLOW
-
+
# This rule allows all mail from a friend who was unlucky enough
# to have signed up with a spam organisation. With DENY we
# block everyone else from that domain though! See above!
-ALLOW=^From:.*a_friend_with_account@any_provider_that_spams\.org
-
+ALLOW = "^From:.*a_friend_with_account@any_provider_that_spams\.org"
+
# Of course we allow e-mail from anyone who has something to say about
# mailfilter:
-ALLOW=^Subject:.*mailfilter
+ALLOW = "^Subject:.*mailfilter"
# We also let our girlfriend send any e-mail she wants:
-ALLOW=^From:.*my_girlfriend@any_provider\.com
+ALLOW = "^From:.*my_girlfriend@any_provider\.com"
diff --git a/mail-filter/mailfilter/mailfilter-0.7.1.ebuild b/mail-filter/mailfilter/mailfilter-0.7.1.ebuild
new file mode 100644
index 000000000000..24f3b347dc3c
--- /dev/null
+++ b/mail-filter/mailfilter/mailfilter-0.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/mailfilter/mailfilter-0.7.1.ebuild,v 1.1 2004/12/09 23:04:15 ticho Exp $
+
+DESCRIPTION="Mailfilter is a utility to get rid of unwanted spam mails"
+HOMEPAGE="http://mailfilter.sourceforge.net/index.html"
+SRC_URI="mirror://sourceforge/mailfilter/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~ppc"
+IUSE="nls"
+
+DEPEND="virtual/libc"
+RDEPEND="nls? ( sys-devel/gettext )"
+
+src_compile() {
+ econf `use_enable nls` || die
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc INSTALL doc/FAQ ${FILESDIR}/rcfile.example1 ${FILESDIR}/rcfile.example2 \
+ README THANKS ChangeLog AUTHORS NEWS TODO
+}