File MailChariot.spec of Package MailChariot
# vim: set sw=4 ts=4 et nu:
Name: MailChariot
Version: 1.2
Release: 0
Summary: Spam Classifier Helper
Source: http://launchpad.net/mailchariot/trunk/v%{version}/+download/MailChariot-%{version}-src.tar.gz
Source99: MailChariot-rpmlintrc
URL: http://maarons.alwaysdata.net/software/MailChariot/
Group: Productivity/Networking/Email/Utilities
License: MIT/X
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python-devel >= 2.5
%py_requires
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
MailChariot's mission is quite simple:
- Take your incoming mail (from /var/spool/mail for example),
- Filter your emails through a spam filter like SpamAssassin,
- Depending on the verdict put your email into ham or spam mailbox,
- If you disagree with spam filter's choice you can move the email into notham
or notspam mailbox and MailChariot will let spam filter know that it was
wrong. Mail that you put into notspam folder will be moved to ham folder
afterwards.
Notice that all of this is mail reader agnostic. Marking messages as spam only
requires moving an email to a mailbox, so it's not important if you use
Thunderbird, Mutt or whatever.
If you are on a shared host without root privileges and your admins do a bad
job of keeping your mailbox spam free, you can use MailChariot to filter the
mail yourself.
%prep
%setup -q -n "MailChariot-%{version}-src"
%build
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm="files.lst"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc LICENSE NEWS