|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 1343 (0x53f) Types: TextFile Names: »send.sh«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z« └─⟦bcd2bc73f⟧ └─⟦this⟧ »samples/arcnet/send.sh«
: /bin/sh # @(#)send.sh 1.1 6/16/88 11:44:56 # # Send mail to a remote host that is visible under the /net filesystem # and that is not secure. # # Each site listed under the /net filesystem should have a message # directory /usr/spool/smail/forpro/<remote-site> and a status # directory /usr/spool/smail/forpro/<remote-site>/done, where there # must be a <remote-site> and <remote-site>/done directory for each # site that can talk to that host, thus, for a network consisting of # the machines herman, frank and joe, the site herman must have the # directories frank, joe, frank/done and joe/done. # # To transmit a message, first the message itself (which should be in # batched SMTP format) is copied to the directory # /net/<remote-site>/usr/spool/smail/forpro/<local-site>, then a file # is created in the <local-site>/done directory to signal that the # copy is completed. For both of these files, the basename is the # message id with the initial letter removed. # # On invocation, argument one is expected to be the host that we are # sending to and set -e HOSTNAME="$1" MSGID="`echo "$2" | sed 's/.//'`" HOST_MAIL_DIR="/net/$HOSTNAME/usr/spool/smail/forpro/`cat /etc/sitename`" # write the mail message cat > "$HOST_MAIL_DIR/$MSGID" # signal that we have finished writing the message touch "$HOST_MAIL_DIR/done/$MSGID" exit 0