メインコンテンツまでスキップ

4. 例

構文を明確にするための(意図的に短い)例を以下に示す。

   ----- cut here -----
//Test JOB
Distribute mail Ack=mail Debug=yes
//To DD *
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
[email protected] BSMTP
/*
//Data DD *,EOF
Date: Tue, 19 Jan 1993 10:57:29 -0500
From: Robert H. Smith <[email protected]>
Subject: Re: Problem with V5.41
To: [email protected]

I agree with Jack, V5.41 is not a stable release. I had to fall back
to V5.40 within 5 minutes of installation...

Bob Smith
----- cut here -----

注:一部のホスト名は実在のものだが、ユーザ名はすべて架空である。

次のような応答が返ってくる。

   --------------------------------------------------------------------
Job "Test" started on 20 Feb 1993 01:09:40

> Distribute mail ack=mail debug=yes
Debug trace information:

ABC.COM goes to SEARN (213) - single recipient
ALPHA.CC.BUFFALO.EDU goes to UBVM (027) - single recipient
LIBRARY.RICE.EDU goes to RICEVM1 (022) - single recipient
TAMVM1 goes to TAIVM1 (247) - single recipient
WS-4.XYZ.EDU goes to SEARN (213) - single recipient

Path information:

TAIVM1 : UGA RICEVM1 TAIVM1
UBVM : UGA UBVM
RICEVM1 : UGA RICEVM1

(Debug) Mail forwarded to LISTSERV@UGA for 3 recipients.
(Debug) Mail posted via BSMTP to [email protected].
(Debug) Mail posted via BSMTP to [email protected].

Job "Test" ended on 20 Feb 1993 01:09:40

Summary of resource utilization
-------------------------------
CPU time: 0.086 sec Device I/O: 6
Overhead CPU: 0.045 sec Paging I/O: 5
CPU model: 9221 DASD model: 3380
--------------------------------------------------------------------

実際に配信を行い確認を受け取るには、最初の 2 行を次のように変更する。

   ----- cut here -----
//Test JOB Echo=NO
Distribute mail Ack=mail
--------------------

そうすると次のような応答が返ってくる。

   --------------------------------------------------------------------
Mail forwarded to LISTSERV@UGA for 3 recipients.
Mail posted via BSMTP to [email protected].
Mail posted via BSMTP to [email protected].
--------------------------------------------------------------------

最後に、「Ack=mail」キーワードを取り除けば、本番モードに適した、確認のない「サイレント」な配信が行われる。