[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

4256.0. " MAILCOUNT alwasy gives 30 new mail on ALLaccount" by STKHLM::LUNDSTEDT () Tue Jun 14 1994 08:36


	Hello,

	I and my customer get a funny result when doing:

	$RUN OA$LIB:MAILCOUNT from ALLIN1 account (only).

	this gives us : 
	
	You have 30 new ALL-IN-1 messages for user MANAGER

	and the number of new mail is always 30 regardless how many there
        are (unless there are none).
	We are both running SWEDISH ALL-IN-1 v 3.0 with the MUPA.
	Linking the MAILCOUNT.OBJ does not change anything.
	Running this from any other account, priviliged or not, gives us
	a correct mailcount. 

	The ALLIN1 does have more than one user profile to the same VMS 
	username. I don't know if this has anything to do with it. 
	I would be nice to know if this a Swedish "thing" or if it happens
	to anyone else.

	Regards,


	Anna Lundstedt, TSC Stockholm
                                     
T.RTitleUserPersonal
Name
DateLines
4256.1IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeTue Jun 14 1994 09:5814
    It's a very simple program. It refers to PENDING.DAT and PROFILE.DAT,
    both via the OA$DATA logical. It might be worth checking those.
    
    It works like this: It uses the first PROFILE record that has the
    VMSUSR field the same as the calling user (that it gets from $GETJPI)
    and uses the ALL-IN-1 accountname to reference PENDING. Then it's
    supposed to (from reading the code) go onto any other records in
    PROFILE with the same VMS account, and display their counts too.
    
    You might like to look in PROFILE and see what accounts there are with
    the same VMS account as the MANAGER, and look what records there are in
    PENDING.
    
    Graham
4256.2Still 30 new mail STKHLM::LUNDSTEDTTue Jun 21 1994 10:5429
    
    
    Hello again,
    
    I'm not sure that's the problem.
    
    I just created a new user profile to my own account so I now have two 
    profiles to my single VMS account. One LUNDSTEDT.ANNA and one
    PROFIL.TEST.
    If I send one single mail to each of the two profiles and do Run on 
    OA$LIB:MAILCOUNT I get a message saying that I have 30 new mail.
    
    Nya meddelanden adresserade till LUNDSTEDT.ANNA                 : 30
    Nya meddelanden adresserade till PROFIL.TEST                    : 30
    
    I now read the mail for one user and ran OA$LIB:MAILCOUNT again and 
    got:
    
    Nya meddelanden adresserade till PROFIL.TEST                    : 30
    
    If I have 9 new mail when looking from ALL-IN-1, I still get the same
    message saying that I 30.
    
    Any ideas??
    
    Regards,
    
    Anna 
    
4256.3Message file problem?IOSG::MAURICESix Programmers in search of an analystTue Jun 21 1994 12:2518
    Here's a wild guess. Have a look in oa$build:oamess.msg for messages
    SINGLE_NEWMESSU and PLURAL_NEWMESSU. In English they are:
    
SINGLE_NEWMESSU <You have !UL new ALL-IN-1 message for user !AD>/FAO_COUNT=3
PLURAL_NEWMESSU <You have !UL new ALL-IN-1 messages for user !AD>/FAO_COUNT=3

    (The FAO count looks one too many to me!)
    
    Could you find out what they are in Swedish. It looks as if the problem
    could be that in English the order is count followed by name, and
    that's what the program assumes, whereas in Swedish the order is name
    followed by count.
    
    Could it be in Swedish that 30 is hardcoded in the message?
    
    Cheers
    
    Stuart
4256.4!AD is weirdIOSG::MARSHALLA glitch in realityTue Jun 21 1994 13:5817
Stuart,

You've inadvertently solved it, I think!

>> The FAO count looks one too many to me!

No, this is correct. !AD directives require two parameters, a string address
and a string length count.

I wonder if in the Swedish translation the FAO substitution goes wrong, so that
the string length is used for the unread mail count?  The string will be an
ALL-IN-1 username, probably space-filled to a length of... 30 characters.

Whether this is a problem with the way the FAO stuff is done in the base code,
or with the Swedish translation, I couldn't say though.

Scott