| As always, the only way to be sure is to try it!
But I think it should work. When you finish the address-gathering stage, you
have to make sure there's an address in the TO field which will trigger
FAX.COM being called when you Send. The Send itself should then be OK, as
ALL-IN-1 doesn't know (or care, as long as it returns Success) what happens in
FAX.COM (compare with SPECIAL.COM - it doesn't HAVE to call VMSmail).
You may have to mirror the rest of the Send procedure, though. Is there a
current document to be copied to the OA$SHARE area and refiled to OUTBOX?
There might be a problem if that doesn't happen.
grahame
|
| re .0
1. Create a profile entry called "FAX"; make its MAIDES field be "FAX".
2. When you enter "FAX" as an addressee on EMHEAD, ALL-IN-1 finds the profile
record, then as it has an unknown MAIDES value, will call a .CMU file of that
name - ie FAX.CMU. This file should pop up the form, and do the processing
as you describe. Note in particular how X400.CMU uses and sets the
#EMDADDRESS and #EMDADDRESSINFO symbols. This is in the doc set somewhere
if it's not obvious from the code. Briefly, if you consider an ALL-IN-1
address looks like:
Full name ( Address )
then your .CMU is passed "Address" as a parameter, and "Full name" is in
#EMDADDRESSINFO. You have to return the final "address" in #EMDADDRESS, and
may modify #EMDADDRESSINFO if you wish. For your FAX case, you should set
#EMDADDRESS to "FAX" if the user completes the form correctly and you create
the special file, or leave it blank - ie explicitly set it to "" - if the
user EXITs, or you don't want to accept the address, or you can't create the
file, etc.
3. When ALL-IN-1 sends the mail, it will do all the file-moving to shared areas,
etc. Your .COM will get called when ALL-IN-1 tries to deliver to the user
FAX and finds it has an unkown MAIDES. I think your .COM file gets passed
the bodypart file name as a parameter. Note this could be ia .WPL file,
which you'll have to convert to text, although I think ALL-IN-1 might
also do this for you, giving you a file called C.TXT, you'll have to check.
4. Your FAX.COM file can do whatever it likes to send the FAX, you should
compare with SPECIAL.COM to see what symbols that uses and how it sets return
status, etc.
5. Good luck
Scott
|
| The customer has decided that they prefer a "quick and dirty" solution, since
the application already exists and is easily invoked from DCL.
The application basically runs an executable image which displays an FMS form
which allows the user to enter his/her names and FAX numbers. The executable
then spawns (lib$spawn) a command procedure which invokes EDT, allowing the
user to enter the text for the FAX. The command procedure then builds a single
file with the header and text info and places it in a predetermined directory.
All they want to do is be able to invoke this application from within ALL-IN-1
and have the command procedure invoke WPS-PLUS instead of EDT.
I don't see any problem in getting the application invoked from ALL-IN-1, but I
do see a slight problem in getting WPS-PLUS to be invoked.
I would appreciate any/all ideas.
Thanks,
Cb.
|