[394] in RedHat Linux List
Patch and revised spec file for elm
daemon@ATHENA.MIT.EDU (David Fox)
Tue Oct 22 12:12:53 1996
To: redhat-list@redhat.com
From: fox@graphics.cs.nyu.edu (David Fox)
Date: 22 Oct 1996 11:20:00 -0400
Reply-To: fox@cs.nyu.edu
Resent-From: redhat-list@redhat.com
Below is a patch to elm and a new spec file for redhat-4.0. I would
have built this myself and uploaded it to Incoming, except I don't
have a redhat-4.0 machine that I could test it on right now that
receives mail.
The changes are to create a filter sub-package and to patch the filter
program so that it does case insensitive comparisons of mail headers,
as specified in some RFC somewhere. In any case, a mailer that
generates lower case "cc:" headers has appeared lately and filter is
now dropping mailing list messages into my personal mailbox.
elm-header-case.patch:
=======================
--- elm-2.4.25/hdrs/filter.h~ Tue Aug 3 15:28:44 1993
+++ elm-2.4.25/hdrs/filter.h Wed Oct 2 11:47:59 1996
@@ -82,7 +82,7 @@
/** define a few handy macros for later use... **/
-#define the_same(a,b) (strncmp(a,b,strlen(b)) == 0)
+#define the_same(a,b) (strncasecmp(a,b,strlen(b)) == 0)
#define relationname(x) \
(x == 1?"<=":x==2?"<":x==3?">=":x==4?">":x==5?"!=":x==6?"=":"~")
=======================
elm-2.4.25.spec:
=======================
Summary: ELM mail user agent
Name: elm
Version: 2.4.25
Release: 6
Copyright: distributable
Group: Applications/Mail
Packager: David Fox, fox@cs.nyu.edu
Source: ftp://dsinc.myxa.com/pub/elm/elm2.4.tar.Z
Patch0: ftp://dsinc.myxa.com/pub/elm/elm2.4.p24a.Z
Patch1: ftp://dsinc.myxa.com/pub/elm/elm2.4.p24b.Z
Patch2: ftp://dsinc.myxa.com/pub/elm/elm2.4.p24c.Z
Patch3: ftp://dsinc.myxa.com/pub/elm/elm2.4.p25
Patch10: elm-2.4.24c-security.patch
Patch11: elm-2.4.24c-config-i386.patch
Patch12: elm-2.4.24c-config-axp.patch
Patch13: elm-2.4.24c-security2.patch
Patch14: elm-header-case.patch
%description
ELM is one of the most popular terminal mode mail handling programs.
It is powerful, easy to use, and easy to find help on. It has all the
mail handling features you would expect, including MIME support (via
metamail). Release 6 of this package fixes a bug where message header
matching in the filter program was case sensitive.
%package filter
Summary: Incoming mail filter
Group: Applications/Mail
Description: Put "|filter -o $HOME/.elm/filtererrors" in ~/.forward,
%prep
%setup -c
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
# Red Hat patches
%patch10 -p0
%ifarch i386 sparc
%patch11 -p1
%endif
%patch13 -p1
%ifarch axp
%patch12 -p1
%endif
%patch14 -p1
%build
mkdir -p bin
make
strip bin/answer bin/elm bin/elmalias bin/fastmail bin/filter bin/frm bin/newalias bin/newmail bin/prlong bin/readmsg
%install
make install
%files
/usr/bin/elm
/usr/bin/answer
/usr/bin/checkalias
/usr/bin/elmalias
/usr/bin/fastmail
/usr/bin/frm
/usr/bin/listalias
/usr/bin/messages
/usr/bin/newalias
/usr/bin/newmail
/usr/bin/printmail
/usr/bin/readmsg
/usr/lib/prlong
/usr/bin/wnewmail
/usr/bin/nfrm
/usr/lib/elm-help.0
/usr/lib/elm-help.1
/usr/lib/elm-help.2
/usr/lib/elm-help.3
/usr/lib/elmrc-info
/usr/man/man1/answer.1
/usr/man/man1/checkalias.1
/usr/man/man1/elm.1
/usr/man/man1/elmalias.1
/usr/man/man1/fastmail.1
/usr/man/man1/frm.1
/usr/man/man1/listalias.1
/usr/man/man1/messages.1
/usr/man/man1/newalias.1
/usr/man/man1/newmail.1
/usr/man/man1/printmail.1
/usr/man/man1/readmsg.1
/usr/man/man1/wnewmail.1
%files filter
/usr/bin/filter
/usr/man/man1/filter.1
=======================
--
David Fox http://found.cs.nyu.edu/fox xoF divaD
NYU Media Research Lab fox@cs.nyu.edu baL hcraeseR aideM UYN
--
PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-HOWTO
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null