[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

3814.0. "Mail field in SM MFC MP ADD?" by KERNEL::LOAT (Stop throwing those bloody spears!) Wed Jan 26 1994 15:18

    
    VMS 5.5 ALL-IN-1 3.0
    
    When adding a drawer to partition, what is the 'Mail' field used for?
    Accoring to the documentation (and this is where things get a bit
    confusing!) it is:
    
    "Specify whether the drawer is a default drawer. A default drawer
    contains the Electronic Messaging folders INBOX, REDA, CREATED, and
    OUTBOX."
    
    (The two terms default and mail seem to mean the same thing, according
    to the form and the documentation!)
    
    Does this mean that if I add a drawer and call it a mail/default
    drawer, it will automatically have 4 folders in it with the above
    names? 
    
    If a drawer is a mail/default drawer, what does this mean in terms of
    usage of that drawer?
    
    (The customer has got notes from a course/lecture by a certain Mr T.
    Redmond which suggest that if a drawer is set to a mail drawer it can
    be used instead of the MAIN drawer for recieving/processing mail! This
    was a while ago, and could have applied to the FT version.)
    
    Help?
    
    Steve.
    
T.RTitleUserPersonal
Name
DateLines
3814.1The way we walk part 2IOSG::MAURICEI left my heart in AlcatrazWed Jan 26 1994 15:5843
    Hi,
    
    The 'Mail' field is a Y/N field that says whether there is a .MSG
    sub-directory in the drawer directory. If the drawer is going to be
    used a mail drawer then it needs to have one of these directories.
       
    Note that putting "Y" in this field does not cause the .MSG
    sub-directory to be created. (Really this field should not be on the
    form - it should be calculated). 
    
    Note also that the act of adding a drawer to a partition is an abnormal
    operation. It gets used when the partition record is incorrect, and the
    Manager removes it (from the manage drawers menu) and re-adds it from
    the manage partition menu. Do not use this option for creating a
    drawer.
    
    Q. When is a drawer the mail/default drawer?
    
    A. A user has a list of drawers in a file called FILECAB.DAT. When the
       user does an index of drawers (EM ID) it is this file that is
       indexed. One of the fields of each record in this file is called
       INDICATOR. There should be precisely one record in the file that has
       an INDICATOR value of "1". The record with the value of "1" is the
       mail/default drawer. Normally this is the record with key value
       "MAIN", and so is known as the main drawer.
    
    Q. How can I make a different drawer my mail/default drawer.
    
    A. There is is no UI, but it's not too difficult at the API level.
       First read all outstanding unread mail and hope no new mail comes in
       while you're changing things. Suppose your mail/default drawer is
       currently called "MAIN" and you wish your existing drawer called
       "NEW" to be the mail/default drawer. This you can do in two calls:
       
       <write change filecab name="MAIN", indicator = "0"
       <write change filecab name="NEW", indicator = "1"
       
       Exit and re-enter ALL-IN-1 and check that new mail now goes into the
       INBOX of your NEW drawer.
    
    HTH
    
    Stuart
3814.2Delete MAIN drawer?KERNEL::LOATStop throwing those bloody spears!Thu Jan 27 1994 11:3828
    
    Well, these are the instructions which I 've found will work for
    setting a different drawer for your mail.
    
    1) Create a drawer, and remove it from partition, and re-add it, making
    sure that the Mail field is set to Y.
    
    2) Use the following command to change the indicator field as
    appropriate.
    
    WRITE CHANGE FILECAB NAME="name", INDICATOR="0 or 1"
    
    3) Log out and back in, and thats all.
    
    This works, but the next question which the customer asked me got me a
    bit puzzled.
    
    Now they've made MAIN a non-default drawer, can they delete it
    completely? They don't want to see the MAIN drawer in their file
    cabinet any more, and they want to delete it.
    
    Will this cause a problem with transferring users, or housekeeping
    procedures? Do any of these assume that you've got a MAIN drawer?
    
    Thanx
    
    Steve.
    
3814.3Yes but ...IOSG::MAURICEI left my heart in AlcatrazThu Jan 27 1994 12:0918
    Re .2
    
>    1) Create a drawer, and remove it from partition, and re-add it, making
>    sure that the Mail field is set to Y.
 
    I don't recommend this as it's not necessary. All you need to do is
    create a drawer.   
    
    Your other instructions are basically OK, BUT do not allow for users
    having unread mail at the time of the shift. 
    
    Yes you can then delete the drawer called "MAIN". The utilities search
    for the default drawer - they do not search for a drawer with a name of
    "MAIN".
    
    Cheers
    
    Stuart
3814.5Default is that [.MSG] gets createdIOSG::MAURICEI left my heart in AlcatrazThu Jan 27 1994 13:3914
    Re .4
    
>    I thought that a drawer had to be a mail drawer to have a [.MSG]
>    directory? If so, and a drawer doesn't have the mail flag set to Y, how
>    can this drawer be a mail drawer (have a [.MSG] directory?
    
    Yes a drawer has to have a [.MSG] directory to be a mail drawer. If you
    create a drawer from the UI you will find that one gets created anyway,
    and that the mail flag will be set to "Y". Hence there is no need to
    change the partition record.
    
    Cheers
    
    Stuart
3814.6KERNEL::LOATStop throwing those bloody spears!Thu Jan 27 1994 13:4114
    
    �I don't recommend this as it's not necessary. All you need to do is
    �create a drawer.   
    
    I thought that a drawer had to be a mail drawer to have a [.MSG]
    directory? If so, and a drawer doesn't have the mail flag set to Y, how
    can this drawer be a mail drawer (have a [.MSG] directory)?
    
    The only thing I can see would be if a drawer was automatically created
    with the Mail flag set to Y. Is this what happens?
    
    Steve.
    
    
3814.7IOSG::MAURICEI left my heart in AlcatrazThu Jan 27 1994 15:4310
    Re .6
    
    > The only thing I can see would be if a drawer was automatically created
    > with the Mail flag set to Y. Is this what happens?
    
    Yes.
    
    Cheers
    
    Stuart