Re: Need mail sorting script to filter this mail group

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Thu, 23 Feb 95 17:15:56 -0800


Riding the Email Flood: Mail Sorting for Info-Performer Readers
---------------------------------------------------------------
(ftp://sgigate.sgi.com/pub/Performer/selected-topics/mailsort)

Compiled by jimh++at++sgi.com with help from aschaffe++at++sgi.com, cct++at++sgi.com
and Mark_Ferneau++at++ssw.ssd.sterling.com. Last updated 23-Feb-95.

ZMail:
------------
ZMail has filters that use header information to sort incoming mail
into the appropriate folders. The stripped down zmail (internal to
sgi) lacks the gui interface to develop what zmail calls mail
"filters", however, you can manully add filters to you .zmailrc.

Filters look for a string in {to,from,cc,subject,body,etc} and specify
a file folder to place that mail into.

If you want to add filters, add something like this to your .zmailrc:

  filter pinfo 'save "/usr/people/<user>/Mail/perf-info"' -t -i info-performer

You can get fancier if you have the GUI interface.

Rand MH 6.7:
------------
The old reliable Rand Mail Handler uses mail directories with a
separate numbered file for each message, like most news systems.
MH can be run from the unix shell commands, via X windows interface
(xmh) or GNU emacs (mh-e.el). MH is available by anonymous ftp
from a number of sites including

    ftp://ftp.ics.uci.edu/mh/mh-6.8.tar.Z
    ftp://ftp.uu.net/networking/mail/mh/mh-6.8.tar.Z
    ftp://krynn.efd.lth.se/pub/mail/mh-6.8.tar.Z

MH has the ability to sort incoming mail into folders automatically as
it arrives. Mail that does not match a sort key remains in
/var/mail/<user> until read. See mhook(1) for more details

The only caveat on SGI systems is that /usr/var/mail must be writable
by the slocal command. This can be done either with permissions on
/usr/var/mail or setuid/gid on slocal. Consult your local security
expert before doing this.

~/.forward file:

  "| /usr/local/mh/lib/slocal -user <user>"

~/.maildelivery file:

   To info-performer qpipe ? "/usr/local/mh/lib/rcvstore +inbox/infoperf"
   Resent-To info-performer qpipe ? "/usr/local/mh/lib/rcvstore +inbox/infoperf"
   Apparently-To info-performer qpipe ? "/usr/local/mh/lib/rcvstore +inbox/infoperf"
   Cc info-performer qpipe ? "/usr/local/mh/lib/rcvstore +inbox/infoperf"

Procmail
--------
Can be used to create mail-servers, mailing lists, sort your incoming mail
into separate folders/files (real convenient when subscribing to one or
more mailing lists or for prioritising your mail), preprocess your mail,
start any programs upon mail arrival (e.g. to generate different chimes on
your workstation for different types of mail) or selectively forward
certain incoming mail automatically to someone.

Procmail can be used:
        - and installed by an unprivileged user (for himself only).
        - as a drop in replacement for the local delivery agent /bin/mail
          (with biff/comsat support).
        - as a general mailfilter for whole groups of messages (e.g. when
          called from within sendmail.cf rules).

The accompanying formail program enables you to generate autoreplies,
split up digests/mailboxes into the original messages, do some very simple
header-munging/extraction, or force mail into mail-format (with leading
>From line).

Also included is a comprehensive mailinglist/archive management system.

A recent version can be picked up at various comp.sources.misc archives.
The latest version can be obtained directly from the ftp-archive at:

        ftp.informatik.rwth-aachen.de (137.226.112.172)

        as zipped tar file: pub/unix/procmail.tar.zip <152KB
        as compressed tar file: pub/unix/procmail.tar.Z <216KB
        in compressed shar format: pub/unix/procmail.??.Z 11 parts

# # #


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:00 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.