/* -*-C-*-
*******************************************************************************
*
* File:         Toc.m
* RCS:          /usr/local/sources/CVS/EnhanceMail/Toc.m,v 1.2 1997/04/20 14:52:30 tom Exp
* Description:  
* Author:       Carl Edman
* Created:      Fri Oct 13 11:48:05 1995
* Modified:     Sun Apr  7 12:30:54 1996 (Carl Edman) cedman@capitalist.princeton.edu
* Language:     C
* Package:      N/A
* Status:       Experimental (Do Not Distribute)
*
* (C) Copyright 1995, but otherwise this file is perfect freeware.
*
*******************************************************************************
*/

#import "EnhanceMail.h"
#import "Toc.h"

@implementation EnhanceToc

+ finishLoading:(struct mach_header *)header
{
   [self poseAs:[self superclass]];
   return self;
}

- (char)setState:(char)newstate forMsg:(int)msgno flush:(BOOL)flush
{
   char oldstate;
   
   if (newstate=='f') newstate='+';
   oldstate=[super setState:newstate forMsg:msgno flush:flush];
   if ((oldstate=='+') && (newstate=='>'))
      [super setState:'+' forMsg:msgno flush:flush];
   return oldstate;
}

@end // EnhanceToc
