[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

887.0. "IFMAILDRAWER & IFNOTMAILDRAWER, Inquiring minds, and all that..." by SHALOT::NICODEM (Who told you I'm paranoid???) Wed Jun 17 1992 18:09

	This question is more than just curiosity; I'm updating the materials for
the AP II course, and I've come up with a question about the IFMAILDRAWER and
IFNOTMAILDRAWER functions.

	Many ALL-IN-1 scripts check to see if the current drawer is the mail
drawer.  In every single case, they do it by executing:

	.IF OA$CURDWR EQS OA$MAIL_DRAWER

(or NES, depending on what it's trying to do).  What's the purpose of the two
new functions?  And why aren't they used in ALL-IN-1 (especially when the code
to check the drawer is new anyway)?  What's the recommended approach for an
application to use?

	F
T.RTitleUserPersonal
Name
DateLines
887.1Well, they use it in Named DataSHALOT::DAVISSupport? ... what's that?Wed Jun 17 1992 22:0436
Frank,

I obviously cannot explain the answer to the question of why
IFMAILDRAWER and IFNOTMAILDRAWER were not used in any scripts, but
they are used in named data in at least one place.  Jack had found
this when he was modifiying the EMC form for ALL-IN-1 EARS and I
remember him asking about it.  Some excerpts follow:

;;OA$_MO_SEND;; S

CHECK_DISKQUOTA\IFSTATUS\
.IF OA$CURDOC_TYPE EQS OA$DOCU_TYPE THEN GET #WPSEND_TITLE = OA$CURDOC_TITLE\
.FX IFMAILDRAWER\\MAIL SEND/METER=SEND_MEMO\
.FX IFNOTMAILDRAWER\\
        XOP "~~TEST_FOR_UNSENT~~"\\
   .
   .
   .

;;OA$_MO_ANSWER;; A

CHECK_DISKQUOTA\
IFSTATUS\
.FX IFMAILDRAWER\\MAIL ANSWER/NOSEND/METER=CREATE_REPLY\\GET OA$STATUS=1\
.IF OA$CURDWR_REMOTE EQS OA$Y
 THEN GET OA$DISPLAY = EM$_NO_ANSWER_REMOTE\\GET OA$STATUS=0\
IFSTATUS\
.FX IFNOTMAILDRAWER\\
   .
   .
   .

Just thought I'd at least let you know that the ALL-IN-1 folks did use
the function *somewhere*.  Maybe this will help a least a little.

-- Jill
887.2My usual history contributionIOSG::SHOVEDave Shove -- REO-D/3CThu Jun 18 1992 10:5315
    They aren't used everywhere because they were added very late in
    development (_long_ after the scripts were written - don't forget, we
    were working on Diamond for quite a long time - a lot of the design was
    done _before_ v2.4). By that time we were in the final phases of the
    project, and no changes were being done which weren't essential (due to
    possibility of introducing bugs).
    
    They were added specifically to improve performance of the named data
    of some critical forms, so that's (mostly) where they got used.
    
    It would probably be a good idea if we went back over the scripts and
    changed to using them - I don't know if that's planned for the next
    release.
    
    Dave.
887.3IOSG::WDAVIESThere can only be one ALL-IN-1 MailThu Jun 18 1992 11:1111
    Yes thats right (they were my miscreation :-)))
    
    And specifically they were used around the index options - and as they
    were a performance saver, they got added later, and so other developers
    didn't bother changing (or didn't know to).
                                               
    There are also 2 other functions OA$MAIL_SET_DRAWER and
    OA$MAIL_RESET_DRAWER which do a kind of push curdrawer, set mail
    drawer. and the pop curdrawer. Again this was a ND saver.
          
    Winton
887.4Topic title changedBUFFER::VICKERSRearranging the DEChairsThu Jun 18 1992 21:4811
    I have modified the title of this topic so that it is useful to others
    who may be looking for information about the functions discussed in it.

    The goal of this conference is to provide help and support while
    maintaining some fun.  Hopefully, we can all do our best to do both.

    Having cute titles is nice and adds to some fun but having meaningful
    titles adds value to those who read the conference.

    Thanks for your continued support in helping others,
    don