From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-10-13 14:35:42 PST Xref: gmd.de comp.os.vms:32584 comp.sys.dec:10854 Newsgroups: comp.os.vms,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!agate!ames!koriel!lll-winken.llnl.gov!unixhub!slacvx.slac.stanford.edu!fairfield From: fairfield@slacvx.slac.stanford.edu Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct13.131438.1@slacvx.slac.stanford.edu> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <1993Sep23.161016.12926@vms.eurokom.ie> <296kj3INNokp@gap.caltech.edu> <1993Oct9.131708.18406@alpha.montagar.com> <1993Oct12.115529.21131@inmos.co.uk> <12OCT199317235719@erich.triumf.ca> <1993Oct13.100910.28656@dxcern.cern.ch> Date: Wed, 13 Oct 1993 21:14:38 GMT In article <1993Oct13.100910.28656@dxcern.cern.ch>, danpop@cernapo.cern.ch (Dan Pop) writes: > I've seen a lot of questions of the type: "What's the Unix equivalent of > this VMS command?" Now, I have a practical question the other way round. > > My boss has a Unix account and a VMS account. On his Unix account he has > a .forward file like this: > > boss@domain1 > boss@domain2 > "|/bin/cat >>/usr/mail/boss ; echo >>/usr/mail/boss" > > For the VMS only people, this file forwards all the incoming email to two > different addresses and also keeps a local copy, in the "newmail" folder > (VMS terminology). > > Now, he asked me how to do the same thing for his VMS account. Being > rather ignorant in VMS, my idea was to look at SET FORWARD, but > apparently this allows forwarding to only one address and no possibility > to keep a local copy. > > Is there any possibility to emulate the functionality of this .forward > file in VMS, with plain user privileges? Yes. Pick up the PD version of DELIVER, available on the DECUS tapes, file servers and ftp sites everywhere :-). If any of the CERN VAXen are running PMDF, DELIVER is included in the PMDF distribution. Another possibility is to use MX, which is a replacement for the VMS Mail interface (mail user agent?). Neither require privileges to _use_, but MX may require the system manager to INSTALL the image and/or define some logical names in the SYSTEM logical name table. I'll note here that when you use either of these packages to set up forwarding to a list of recipients, be sure to specify your boss' VMS account with a leading underscore to prevent looping: boss@domain1 boss@domain2 _boss ! Save copy on local node You can get both DELIVER and MX from Andy Harper's file server. Send e-mail to VMSSERV@BAY.CC.KCL.AC.UK with the following lines in the body of the message: SEND DELIVER.PACKAGE SEND MX.PACKAGE Both packages are also available via anonymous FTP from FTP.SPC.EDU in the [.MACRO32] subdirectory, (there is also a mirror site in Europe, but I don't have its name at hand...) or via the file server FILESERV@WKUVX1.BITNET with similar commands to those given above. For non-VMS experts: the file servers return the packages in multi-part VMS_SHARE format. Extract each of the parts from mail, concatenate them into a single file _IN_ORDER_, and strip off any mail header lines from the beginning of the concatenated file. The result is a DCL command file which you simply execute: MAIL> read 1 MAIL> extr/nohead MX.01 MAIL> read MAIL> extr/nohead MX.02 . . MAIL> extr/nohead MX.19 $ edit mx.01 ! Get rid of mail headers and save. $ append/new mx.%% mx.com $ @mx If this seems tedious, I'll just remark that there are packages which do all this for you, but the first time, ya got ta do it by hand... -Ken -- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | FAX: (415) 926-4335 ---------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...