Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!sdd.hp.com!usc!julius.cs.uiuc.edu!apple!agate!ucbvax!ibm.com!MAG From: MAG@ibm.com Newsgroups: comp.soft-sys.andrew Subject: Re: CUI update command, and messages questions. Message-ID: Date: 8 Oct 90 18:12:41 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 67 Excerpts from atk.ams: 27-Sep-90 Re: CUI update command, and.. Nathaniel Borenstein@thu (1817+0) > Excerpts from internet.info-andrew: 26-Sep-90 Re: CUI update command, >> and.. MAG@ibm.com (2024) Here is the problem. If I look at the folders >> via messages, it thinks all the messages are unread (e.g. folderx (Mail; >> 20 new of 20)), but all the messages have the check symbol next to them. >> I don't want the user to have to traverse these old messages in order >> to bring the folder header up to date (Mail;0 new of 20). Therefore, I >> thought I could use the following command "cui update folderx ; skip 99; >> next; quit" to bring the folder into sync. Is this right, or is there >> an easier method to translate MH to AMS? > > if your script knows the number of messages in the folder (which it can > find out pretty easily with something like NUMMSGS=`ls | wc`) you can > probably do what you want with an ugly CUI command line like this one: > cui set term 0 \; headers foldername \; set seenlast $NUMMSGS \; quit > The trick here is that if you start out with "headers foldername", it > will print all the captions out in order, and the last one will be > numbered $NUMMSGS. "set seenlast" can then do what you want. Good > luck! -- Nathaniel > Well, I've tried the "seenlast" with no luck. There is even more weird behavior; if the user reads all the messages and clicks on the folder header, it displays "(Mail; 0 new of 5)", which is fine. But if he clicks one more time on the folder header, it displays "(Mail; 2 new of 5)". I have no idea what's going on. Has anyone else encountered the same problems I am having?. Could it be that my AMS is setup with the following options in /AndrewSetup : ThisDomainAliases: watson.ibm.com, watson # # AMS options for no AFS or AMSD # AMS_OnAIX:yes AMS_NonAMSDelivery:yes AMS_DefaultToAFSCellMail:no AMS_WSRunsQueuemail:no AMS_ThisDomainAuthFromWS:yes AMS_NonViceHost:yes DefaultMSPath:$MAIL AMS_MailBoxPrefix:/usr/mail MessagesAutoBugAddress:mag@prefect.watson.ibm.com # # For white pages to work under AFS but no AMSD ThisDomainWPDirectory:/afs/test.ibm.com/service/wp # # short file names for AIX on RT AMS_UseShortFileNames:yes # # Validate hostname validation AMS_ValidateDestHosts:no I don't know what else to try. Can someone explain how AMS sets flags (read,unread, deleted) to messages and folders. Can I set them using CUI? Could there be a bug with the "reconstruct" command?. Can someone can tell me which sources files are used? Thanks Marlon IBM T.J. Watson Research mag@ibm.com (914)784-7334 > >