That said, there is no one answer to this question. Internet mail is built upon the TCP/IP protocols, which are not directly supported by OpenVMS - support requires the installation of a package that understands TCP/IP and specifically one that provides the Simple Mail Transport Protocol (SMTP).
A number of implementations of TCP/IP are available for OpenVMS - from Compaq, from third parties, and even a free "support it yourself" form. The MAIL program that comes with OpenVMS does not directly support the mail protocol used on the Internet (though it does recognize SMTP addresses in V6.2 and later), but various programs have been written that use MAIL's "foreign protocol" facility to provide such support - these tools are called transports. To send mail through a transport, place the transport specifier at the front, and (typically) quote the address.
For example, IN%"hoffman@bogushost.compaq.com" - you must include the quotation marks - indicates that IN transport will be used to send the mail to the address hoffman@bogushost.compaq.com. Common names for the transport are IN%, MX%, and SMTP%. (MX is a widely used, free, mail handler; see question SOFT1. SMTP% is used by Compaq's TCP/IP Services product.) Other systems may use some other name. If none of these prefixes work, please ask your system manager for assistance.
[leichter@lrw.com] [Stephen Hoffman]See also MAIL2
As of OpenVMS V6.2, this is not necessary - if the address has an @ in it (not in a quoted string), MAIL will look to see if the logical name MAIL$INTERNET_TRANSPORT is defined. If it is, it will use the translation as the transport protocol, otherwise it will use SMTP (as is used by UCX). For example, if you wanted IN% added, you'd define MAIL$INTERNET_TRANSPORT as "IN".
The basic MAIL utility which is shipped with VMS does not have an intrinsic mechanism for adding signature files. If you're using an enhanced mail handling package (e.g PMDF), however, it may have provisions for adding signature files to all messages it handles - check the documentation for details. In addition, it's common practice to use an editor to handle addition of quotation marks (e.g. ">") and signature files to mail messages and news postings. There are several implementations of this for different editors available on the net; for one example, see the MAIL_EDIT package available at:
ftp://narnia.memst.edu/mail_edit_v1-4.zip [bailey@genetics.upenn.edu]Define the logical MAIL$EDIT to a COM-file, which looks something like the following:
$ IF P1 .NES. "" $ THEN $ COPY 'P1',[signaturefile] 'P2' $ ELSE $ COPY [signaturefile] 'P2' $ ENDIF $ DEFINE/NOLOG SYS$INPUT SYS$COMMAND $ [editorname] 'P2' $ EXITWhere [signaturefile] is the name of the signature-file (including directory and disk) and [editorname] is EDIT/EDT or EDIT/TPU (or your favorite editor).
[Arne Vajhøj]
[Jerry Leichter]
You can forward your mail to an Internet address, but you have to be careful because of the way MAIL handles special characters, such as quotation marks. First, determine the address you would use to send mail to the place you want to forward to - say, IN%"fred@fred-host.xxx.com". Take that string and double all the quotation marks, producing IN%""fred@fred-host.xxx.com"". Finally, wrap quotation marks around the outside and use the the result with SET FORWARD:
MAIL> SET FORWARD "IN%""fred@fred-host.xxx.com"""If you do SHOW FORWARD, you should now see:
Your mail is being forwarded to IN%"fred@fred-host.xxx.com". [Jerry Leichter]Note that the MAIL$INTERNET_TRANSPORT feature doesn't yet work with SET FORWARD in that you'll still have to use the syntax above with the quotation marks.
Many of the TCP/IP mail packages support forwarding to mailing lists, as does the free MX mail handling system and the DELIVER mail "extender". See the documentation of your TCP/IP package and question SOFT1.
[Jerry Leichter]
EXTRACT/APPEND/ALL/MAIL mymail.maiMove MYMAIL.MAI to the other system, then do this (in MAIL):
SET FILE mymail.mai COPY/ALL foldername MAIL.MAIThis will place a copy of all of your messages in the given folder. If you wanted to maintain the separate folders, do separate EXTRACT commands (above) specifying different .MAI files, then repeat the SET FILE, COPY for each one.
If you are moving to a non-OpenVMS system, the EXTRACT command above can be used to create a file which you can then copy - how you import it into your mailer is an exercise left to the reader.
Not directly with the OpenVMS MAIL facility, but there are several other options:
http://www.innosoft.com/
http://www.agh.cc.kcl.ac.uk/files/vms/pine-vms/
ftp://ftp2.kcl.ac.uk/pub/vms/pine-vms/
To read a MIME mail message, open it in MAIL, extract it to a file, then use MUNPACK to break out and decode the attachments.
[David Mathog]
| Next | Back |