public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/spamassassin-iXhash2] epel10: Initial import of iXhash2
Date: Mon, 15 Jun 2026 00:10:10 GMT	[thread overview]
Message-ID: <178148221033.1.18027795718312732112.rpms-spamassassin-iXhash2-3db40045be3c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/spamassassin-iXhash2
Branch : epel10
Commit : 3db40045be3cf67bfca702dfda79cf2ea8ba53c2
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2012-07-14T02:28:39+02:00
Stats  : +125/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/spamassassin-iXhash2/c/3db40045be3cf67bfca702dfda79cf2ea8ba53c2?branch=epel10

Log:
Initial import of iXhash2

---
diff --git a/.gitignore b/.gitignore
index e69de29..f6ff9eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/iXhash2-2.05.tar.gz

diff --git a/sources b/sources
index e69de29..bd4b768 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3acd152c17207ae2454a35c29b41a258  iXhash2-2.05.tar.gz

diff --git a/spamassassin-iXhash2-2.05-conf.patch b/spamassassin-iXhash2-2.05-conf.patch
new file mode 100644
index 0000000..37ed7e8
--- /dev/null
+++ b/spamassassin-iXhash2-2.05-conf.patch
@@ -0,0 +1,37 @@
+Patch by Robert Scheck <robert@fedoraproject.org> for iXhash2 >= 2.05 which
+sets some useful defaults based on Mail::SpamAssassin::Plugin::iXhash2.
+
+--- iXhash2-2.05/iXhash2.cf		2012-07-08 13:29:31.000000000 +0200
++++ iXhash2-2.05/iXhash2.cf.conf	2012-07-08 14:03:16.000000000 +0200
+@@ -1,20 +1,29 @@
++# iXhash computes MD5 checksums of fragments of the body of an e-mail
++# and compares them to those of known spam using DNS queries to a RBL-
++# like name server. So it works similar to the standard plugins that
++# use the Pyzor, Razor and DCC software packages.
+ 
+ # Note: loadplugin should really go into local.pre or so
+-loadplugin Mail::SpamAssassin::Plugin::iXhash2 iXhash2.pm
++loadplugin Mail::SpamAssassin::Plugin::iXhash2
+ 
+ ifplugin Mail::SpamAssassin::Plugin::iXhash2
+ 
+ ixhashdnsbl	GENERIC_IXHASH  generic.ixhash.net.
+ body		GENERIC_IXHASH  eval:check_ixhash('GENERIC_IXHASH')
++describe	GENERIC_IXHASH  http://www.ixhash.net/listinfo.html
+ tflags		GENERIC_IXHASH  net
++score		GENERIC_IXHASH  1.5
+ 
+ ixhashdnsbl	NIXSPAM_IXHASH  ix.dnsbl.manitu.net.
+ body		NIXSPAM_IXHASH  eval:check_ixhash('NIXSPAM_IXHASH')
++describe	NIXSPAM_IXHASH  http://www.ixhash.net/listinfo.html
+ tflags		NIXSPAM_IXHASH  net
++score		NIXSPAM_IXHASH  1.5
+ 
+ ixhashdnsbl	SEM_IXHASH  ixhash.spameatingmonkey.net.
+ body		SEM_IXHASH  eval:check_ixhash('SEM_IXHASH')
++describe	SEM_IXHASH  http://spameatingmonkey.com/lists.html
+ tflags		SEM_IXHASH  net
++score		SEM_IXHASH  1.5
+ 
+ endif
+-

diff --git a/spamassassin-iXhash2.eml b/spamassassin-iXhash2.eml
new file mode 100644
index 0000000..5b15311
--- /dev/null
+++ b/spamassassin-iXhash2.eml
@@ -0,0 +1,21 @@
+From: "iXhash plugin test mail" <spamtrap@ixhash.net>
+Message-ID: <mEsSaGeId@sOmEwHeRe.CoM>
+To: admin@testsite.com
+Subject: iXhash plugin test mail
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+<HEAD>
+<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
+</HEAD>
+<body>
+  <font face="Verdana"><strong>This is an e-mail designed to test the iXhash plugin's functionality.</strong><br>
+  <br>
+  If you run this mail through SpamAssassin (using 'spamassassin -D IXHASH < iXhash.eml', you should see the plugin score with the list 'generic.ixhash.net'.<br>
+  This is because the hashes this mail generates ( cbdc00eaaf002aad4448b75f47a9784f and 464d43b6999bdbdf6071b8b1d3f9a525 ) are permanently listed on that list.<br>
+  Apart from that this mail is of no use.<br>
+  <br>
+
+</body>
+</html>
+

diff --git a/spamassassin-iXhash2.spec b/spamassassin-iXhash2.spec
new file mode 100644
index 0000000..4939c97
--- /dev/null
+++ b/spamassassin-iXhash2.spec
@@ -0,0 +1,65 @@
+%define pkgname iXhash2
+
+Summary:        SpamAssassin plugin to lookup e-mail checksums in blacklists
+Name:           spamassassin-%{pkgname}
+Version:        2.05
+Release:        2%{?dist}
+License:        ASL 2.0
+Group:          Applications/Internet
+URL:            http://mailfud.org/%{pkgname}/
+Source0:        http://mailfud.org/%{pkgname}/%{pkgname}-%{version}.tar.gz
+Source1:        spamassassin-iXhash2.eml
+Patch0:         spamassassin-iXhash2-2.05-conf.patch
+Requires:       spamassassin >= 3.2
+Provides:       spamassassin-iXhash = 1.5.5-2
+Obsoletes:      spamassassin-iXhash < 1.5.5-2
+BuildRequires:  %{_bindir}/perldoc
+BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+iXhash2 is an unofficial improved version of the iXhash spam filter
+plugin for SpamAssassin, adding async DNS lookups for performance and
+removing unneeded features but fully compatible with the iXhash 1.5.5
+(http://www.ixhash.net/) implementation. It computes MD5 checksums of
+fragments of the body of an e-mail and compares them to those of known
+spam using DNS queries to a RBL-like name server. So it works similar
+to the standard plugins that use the Pyzor, Razor and DCC software
+packages from within SpamAssassin.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1 -b .conf
+cp -pf %{SOURCE1} iXhash2.eml
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D -p -m 644 %{pkgname}.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+touch -c -r %{pkgname}.cf.conf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+install -D -p -m 644 %{pkgname}.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
+perldoc %{pkgname}.pm > $RPM_BUILD_ROOT%{_mandir}/man3/Mail::SpamAssassin::Plugin::%{pkgname}.3pm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG LICENSE README iXhash2.eml
+%config(noreplace) %{_sysconfdir}/mail/spamassassin/%{pkgname}.cf
+%{perl_vendorlib}/Mail/SpamAssassin/Plugin/%{pkgname}.pm
+%{_mandir}/man3/*.3pm*
+
+%changelog
+* Thu Jul 12 2012 Robert Scheck <robert@fedoraproject.org> 2.05-2
+- Added missing perldoc requirement (#838327 #c3)
+
+* Sun Jul 08 2012 Robert Scheck <robert@fedoraproject.org> 2.05-1
+- Switched to iXhash2 2.05 (#838327)
+
+* Fri Nov 12 2010 Robert Scheck <robert@fedoraproject.org> 1.5.5-1
+- Upgrade to 1.5.5
+- Initial spec file for Fedora and Red Hat Enterprise Linux

                 reply	other threads:[~2026-06-15  0:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178148221033.1.18027795718312732112.rpms-spamassassin-iXhash2-3db40045be3c@fedoraproject.org \
    --to=robert@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox