[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2112.0. "Can I access TO/CC addresses from EMHEAD?" by HOTAIR::MADDOX (Politicians say the darnedest things) Mon Jan 18 1993 19:23

    How can I access the full mail address associated with the TO & CC
    fields while in EMHEAD?  I'm developing an application which formats
    the address via an overlay form.  It collects info to put on a FAX
    header page and then builds an address which lookes like:
    
    /TO=addressee/FAX=fax_number/PHN=addressee's_phone/etc. @FAX
    
    I can put the address to OA$FIELD_NAME but the address gets truncated
    to the length of the TO field on EMHEAD.  I also need to be able to
    retreive the address in case the user accesses the overlay form again
    on a TO field for which the address as already been formated.  I need
    to parse this address and fill in the fields on the overlay form. 
    Since the user has not filed the current EMHEAD form, CAB$ATTRIBUTES
    has not yet been updated.
    
    Is there anyway to access (READ/WRITE) the address value which will
    eventually written to CAB$ATTRIBUTES?
    
    Thanks,
    
    Joe
T.RTitleUserPersonal
Name
DateLines
2112.1Use X400 form as an exampleSCOTTC::MARSHALLSpitfire Drivers Do It ToplessMon Jan 18 1993 23:345
    I don't know if it will help, but look at the way the "X400" address
    and overlay form work.  It might give you a few ideas.
    
    Scott
    
2112.2There is nothing that you can't do in ALL-IN-1, it is just knowing how . . .BRUMMY::MARTIN::BELLMartin Bell, TCC, Birmingham UKTue Jan 19 1993 08:0727
Joe,

this might help with half of your problem ...

When adding an address, as you correctly point out, loading the current
field will truncate the address. To get around this, use the "MAIL TO"
sub-function to add the address, eg.

MAIL TO "/TO=addressee/FAX=fax_number/PHN=addressee's_phone/etc. @FAX"

Which will place the full address into the mail header, even though the
displayed value is still truncated.

The only problem is that (in v2.4 at least) the newly added address will
appear AT THE TOP of the list of TOs, rather than in the field which the
use _was_ in. Thus your code may want to check the length of the address,
and if it will fit in the TO field, use GET @OA$FIELD_NAME="The address"
otherwise use the MAIL TO stuff.

As to the ability to extract (and change) existing long values, well maybe
an intergalactically famous, legendary, and brilliant Welsh person (sorry,
i went a little over the top there) may be able to cast a little more light
on the dark secrets behind the MAIL functions!

Good luck,

mb