home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!glasgow!unix.brighton.ac.uk!kej
- From: kej@unix.brighton.ac.uk (-* Terminal Rat *-)
- Newsgroups: comp.os.vms
- Subject: Re: Undocumented MAIL qualifier
- Message-ID: <1992Aug19.120646.9659@unix.brighton.ac.uk>
- Date: 19 Aug 92 12:06:46 GMT
- References: <1992Aug17.182226.29126@henson.cc.wwu.edu>
- Organization: Brighton Polytechnic, UK
- Lines: 40
-
- n8846069@henson.cc.wwu.edu (Barry) writes:
- > There is an undocumented MAIL qualifier I have seen
- > people use to extract an image file from a message.
- > EXTRACT/FOREIGN is the usage they used.
- >
- > How extactly does this work? And how did they create
- > the special message to begin with?
- >
- > -BarryB
-
- The /foreign qualifier is undocumented as you noted. As far
- as I can tell if you MAIL or SEND a file from the DCL command
- line or within MAIL itself specifying /FOREIGN then it will
- treat the file as an image or binary file. If you know a little
- about mail you will already know that "large" mail messages are
- not actually stored within the recipients MAIL.MAI file but
- are actually given a unique filename outside of the MAIL.MAI file
- and then a pointer within MAIL is set to that filename.
-
- I assume that this prevents large overheads occuring while extending
- the size of the MAIL file. Well anyway the /FOREIGN command just
- appears to force this to occur because the file being sent is
- assumed to be unreadable anyway. It sets a flag within the MAIL.MAI
- file for that particular message which MAIL interprets and signals
- with the special message you mention.
-
- The upstart of all this means that you can basically use MAIL to
- send "any" type of file (Although I wouldn't recommend it) to a
- user and when they EXTRACT it to a new file it will (hopefully)
- be intact and usable ! I sometimes send test files to myself from
- other usernames and find that it works fine.
-
- One question I'd like to know about it though is will it work over
- a network ? As we only have access to JANET from our VMS system I
- can test it for that but as for other nets ???????????
-
- Keith Jones
-
- [ kej@uk.ac.brighton.vms ]
- [ kej@uk.ac.brighton.unix ]
-