From: worley@world.std.com (Dale R Worley)
Subject: Re: Looking for FTP-by-mail server source/scripts
Organization: The World
Date: Tue, 15 Sep 1992 22:21:28 GMT

In article <1992Sep11.172649.20916@progress.com>, tucker@bedford.progress.COM (Kyle Tucker) writes:
> I am looking for scripts or source code that can be alias piped that users
> can mail to using keywords (get, cd, etc.) to use both internally and out to
> the Internet. I could hack for weeks, by why when it's out there? 

NetGuide has information on the following mail processing programs:
----------------------------------------------------------------------
File: organization, Node: Deliver, Up: Mailers

Deliver -- Flexible E-Mail delivery.

Deliver allows any user to write a shell script that processes all incoming
mail messages for that user.  The system administrator may also install
scripts that process all messages.
 
The output of a script is a list of mail addresses, files and programs that
should receive the message.  It has access to each message as it is
processed, so the action can be content dependent.  The script may also
generate automatic replies, like the "vacation" program, or pass along a
modified version of the original message.
 
Deliver can be used to construct mail-based services (e.g. automatic
mailing list maintenance).  It can also be used to filter mail
automatically in prearranged ways (e.g. encryption and decryption, tossing
junk mail, or vacation notices).
 
Although deliver works best when installed set-user-id root, it can perform
many of its functions even when installed in the private bin directory of a
regular user.

Deliver runs under SCO UNIX 3.2, SCO Xenix/286 and Xenix/386 2.x and 3.x,
AIX 3.1, SunOS 3.x and 4.x, generic UNIX System V, 4.3 BSD, V7 (!) and
Coherent (!!).

* Menu:

* Distribution: (FTP:ftp.uu.net:/usenet/comp.sources.reviewed/volume01/deliver/*)*

*Index: deliver
----------------------------------------------------------------------
File: organization, Node: Mailagent, Up: Mailers

Mailagent -- Mail processing program.

This is a mailagent program, and it will take care of all your incoming
mail by applying a set of rules and trying to figure out what to do with
it. A message can be saved in a folder, left in the main mailbox, posted to
a newsgroup, forwarded to other people, split if it is a digest, etc... You
may even delete all those mails you do not wish to see, ever.

Filtering rules are specified using lex-style rules, i.e. they have a set
of patterns in the left handside (lhs) and a set of actions within {}
braces on the right handside (rhs). Pattern on the lhs are applied in
sequence until one match occurs, at which time the rhs is executed.
Normally the first match stops the processing, but that may be changed.

As in lex, the filtering automaton supports the notion of modes, each rule
belonging to a set of modes and being applied only when the current working
mode matches one of the modes associated with the rule.

If you do not install any filtering rules, then some default hardwired
rules apply. Those simply leave all the messages in your mailbox, but
process mails whose Subject line is Command (@SH hooks). You may override
this default behaviour by writing your own set of rules, and maybe disable
this processing entirely.

Mailagent is available for anonymous FTP from ftp.eff.org in
/pub/net-tools/perl-mailagent.tar.Z.

*Index: Mailagent
----------------------------------------------------------------------
File: organization, Node: Procmail, Up: Mailers

Procmail -- mail processing program.

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.

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).

* Menu:

* Readme: (FTP:ftp.informatik.rwth-aachen.de:/pub/unix/procmail.README)*

Procmail is available for anonymous FTP from ftp.informatik.rwth-aachen.de
in /pub/unix/procmail.tar.Z.

*Index: procmail
*Index: formail
----------------------------------------------------------------------
File: organization, Node: Squirrel, Up: Mailers

Squirrel Mail Server

The Squirrel Mail Server is a mail response program. You can send
email to it, and it will try to react sensible to your message.

Main purpose of the mail server is to obtain files from an archive,
but other functions can be added easily.

When a mail is sent to the appropriate designation, generally a mail
alias, it is piped into program "listener". This program effectivily
changes user to the mail server user, and passes control to the perl
script "process".  This program reads the input, extracts the return
address to be used from the mail headers, and parses the commands in
the message body.  See "HELP.txt" for a detailed description of the
commands.  "process" tries to locate the requested files in the
archive libraries, using default extensions to filenames as described
below.  Requests are then put in the mail server queue.

A separate daemon process ("dorequest", usually invoked by cron) can
be used to process the queue. This program encodes the file, splits it
into parts, and passes each part to the mail program for delivery.

The mail server can search for versions of a program with various
extensions (e.g., .shar, .Z, .zip) in multiple directories to find the
files to satisfy a request.

Version 3 is a complete rework of Version 1 (a.k.a. Multihouse-1),
that has been in production on a number of sites ever since its
release in 1988.  Both the popular csdserv (by Dave Shaver) and the
UTRECHT mail server (by Piet van Oostrum) have been dereived from
Multihouse-1.

Available from:
	FTP:ftp.eu.net:/mail/mserv-3.0.tar.Z

*Index: squirrel mail server
----------------------------------------------------------------------
Dale
--
Dale Worley	  NetGuide Customer Service	  customer@netguide.com
-- 
--
Dale Worley	  NetGuide Customer Service	  customer@netguide.com
Newsgroups: comp.archives.admin,comp.misc,comp.sources.wanted,alt.sources.wanted