| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 4313.1 | MAIL functions | GIDDAY::JOYCE | Digital CSC Sydney | Tue Jul 05 1994 09:37 | 24 | 
|  |     
    re .-1
    
    There are buckets full of examples in ALL-IN-1 already.  Try...
    
    	$ search oa$do:*.scp "MAIL SEND"
    	$ search oa$lib:*.scp "MAIL SEND"
    
    But as an example...
    
    
    	MAIL CREATE/OPEN/NOSEND/NOEDIT		! This creates an empty message 
    	MAIL TO "FRED NERK"			! add some addressees
    	MAIL CC "RICHARD CRANIUM"		!
    	MAIL SUBJECT "A test"			! and a subject/title
    	MAIL CLOSE_MESSAGE			! close the message
    	COPY "MY_FILE.TXT" OA$CURMES_FILE  	! add the text
    	MAIL SEND				! and send it...
    
    This is from memory (out IOS machine has carked it right now) but
    I think it's close enough.  All the MAIL xyz functions are documented
    in APR2.
    
    Andy
 | 
| 4313.2 | Scott, where are you? | IOSG::PYE | Graham - ALL-IN-1 Sorcerer's Apprentice | Tue Jul 05 1994 09:39 | 13 | 
|  |     Re .1
    
    I think .0 was referring to the mode where you can include the
    adressees and titel etc., actually *in* the body of the text file.
    
    Hilde,
    
    I don't think this is documented (other than in the code :-) ), so
    until Scott arrives to write a major essay on the required format, I
    suggest you search earlier in this conference, since I recall this has
    been discussed before.
    
    Graham
 | 
| 4313.3 |  | IOSG::MAURICE | End of the road for the Emerald City | Tue Jul 05 1994 16:20 | 9 | 
|  |     Hi,
    
    The note Graham may have had in mind is 2287 which gives an example of
    use. BTW the problem described in 2287, one of interaction with mail
    forward, is now fixed in V3.1.
    
    Cheers
    
    Stuart
 | 
| 4313.4 | MAIL SEND <VMS-file> | IOSG::MARSHALL | A glitch in reality | Tue Jul 05 1994 16:20 | 26 | 
|  | It would appear that it works like this:
You create a text file with lines of the form:
TO: addressee
TO: addressee
CC: addressee
CC: addressee
FROM: you
SUBJECT: text of subject
[blank line]
body of message...
Notes:
- there must be at least one TO addressee, it complains if there are only CCs.
- you can leave out FROM; even if you set it, it gets overrideen and set to
    your username anyway, so you may as well leave it out
- it doesn't appear to be possible to set other filecab attributes on the
    message (eg I tried setting RR, SENSITIVITY, etc to no effect)
- there must be a blank line after the subject; or put another way, the line
    after the subject gets dropped, whether it's blank or not.
Note this was found out by trial and error, so I don't guarantee that it's a
definitive statement.
Scott
 | 
| 4313.5 | You youngsters don't remember this, but . . . | SHRMSG::HOWARD | Yes it is | Tue Jul 05 1994 20:03 | 12 | 
|  |     This is one of those leftovers from V1, which is probably only there
    for backward compatibility.  If you can locate a V1 APR, it probably
    has the details.  I will try to remember to bring mine in and post the
    details.  As I recall, this was the only way to do it.  The message and
    header were together.  Since V1 did not have sensitivity (!) or RR
    there was no way to set them.  I think that the only rule is that it
    doesn't look for attributes after the subject.  
    
    Don't expect that if this is broken, somebody is going to rush out and
    fix it.  I tried to use if once and found that it was very slow.  
    
    Ben
 | 
| 4313.6 | Just call me Trivia King... | IOSG::PYE | Graham - ALL-IN-1 Sorcerer's Apprentice | Wed Jul 06 1994 08:55 | 2 | 
|  |     The blank line after the subject is probably expected to be the
    WPS-PLUS ruler...
 | 
| 4313.7 | V1 !! | BACHUS::WILLEMSH |  | Wed Jul 06 1994 13:48 | 13 | 
|  | Thanks all for your reply's.
I did some test too with the MAIL SEND.
Unfortunatelly we don't have any manuals left of ALL-IN-1 V1. so Ben, if you
please would be so kind if you still have the manual somewhere to post me the
details.
Thanks heaps
Hilde Willems
 | 
| 4313.8 | Some help | SHRMSG::HOWARD | Yes it is | Wed Jul 06 1994 21:19 | 56 | 
|  |     Well, I have the manual (AA-N324A-TE) here now, but it isn't that much 
    help.  It just shows:
    
    Date:	13-AUG-1982 09:45
    From:	David T. Pearson (PEARSON)
    To:		John M. Claussen (CLAUSSEN)
    To:		Martin E. Smith, Jr. (SMITH)
    
    Subject:	Change to User Profile
    
    text of message . . . .
    
    [end]
    
    	The MAIL TO and MAIL SUBJECT funtions just put this text into the file. 
        I am pretty sure that common wisdom said that the SUBJECT had to be
        last, which makes sense.  The manual does say that the name in
        parentheses or brackets to the some "()" was used if it was there,
        or the full line after the To: was used as an address.  There is
        nothing about the position of the parentheses mentioned.  So,
    
    "The full addressee name is not required.  It is added for
    clarification only.  You can also enter the addressee line as:
    
    To:		(REDBONE)
    or
    To:		REDBONE
    
    *Mail Delivery Mechanism*
    
    When the Mail Facility sends a message, it scans the message buffer for
    valid addressees.  Lines that begin with TO: or CC: qualify as
    addressee lines.  Mail delivery for each addressee is determined in the
    following way:
    
    o  If the name is found enclosed in (), that name is used.  If not, the
       whole line is assumed to be the addressee. [I wonder if this is
       still true - BH]
    
    o	If the resulting addressee is preceded by an underscore (_), the
        mail destination is assumed to be SPECIAL.
    
    o	The addresse is looked up in the User Profile.  The mail
        destination field is then examined to determine the type of
        delivery.
    
    [basically what you would expect from here -BH]"
    
    I guess if you send a FAX number, I could pick out a few
    choice pages to send you, but this is most of it.
    
    In V1, you could have WPS-PLUS messages, but you could not create,
    edit, read, send, receive, or print them. ;-)  Actually, though, Graham
    may be right that you have to have a blank line at the beginning.
    
    Ben
 | 
| 4313.9 | Thanks Ben | BACHUS::WILLEMSH |  | Fri Jul 08 1994 10:10 | 15 | 
|  | 
Thank you very much for your help Ben.
The FAX number of our office is
32-2-729.86.50
Regards
Hilde Willems
 |