Aller au contenu principal

4. Exemples

Voici un exemple (volontairement court) pour clarifier la syntaxe :

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

Note : certains des noms d'hôte sont réels, mais les noms d'utilisateur sont tous fictifs.

Vous obtiendriez la réponse suivante :

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

Pour effectuer réellement la distribution et obtenir un accusé de réception, vous devriez modifier les deux premières lignes comme suit :

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

Et vous obtiendriez la réponse suivante :

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

Enfin, en retirant le mot-clé « Ack=mail », vous effectueriez une distribution « silencieuse » sans aucun accusé de réception, adaptée au mode production.