[927] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Bug fix for popper

daemon@ATHENA.MIT.EDU (John Brezak)
Wed Nov 2 11:20:54 1994

To: krb5-bugs@MIT.EDU
Date: Wed, 02 Nov 1994 11:20:42 -0500
From: John Brezak <brezak@apollo.hp.com>


Here's the fix. It only updates the last_msg flag if executing a
RETR command, so that people doing a TOP won't be affected.

*** pop_send.c~ Tue Nov  1 09:01:47 1994
---- pop_send.c  Tue Nov  1 09:53:50 1994
***************
*** 87,92 ****
---- 87,97 ----
      (void)fputs(".\r\n",p->output);
      (void)fflush(p->output);
  
+     /*  If retreiving, update the last-message-accessed number 
+         if it is lower than the retreived message */
+     if ((mp->retr_flag == TRUE) && (p->last_msg < msg_num))
+         p->last_msg = msg_num;
+ 
      return(POP_SUCCESS);
  }



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Brezak                    UUCP:     uunet!apollo.hp!brezak
 Hewlett Packard/Apollo         Internet: brezak@ch.hp.com
 300 Apollo Drive               Phone:    (508) 436-4915
 Chelmsford, Massachusetts      Fax:      (508) 436-5140



home help back first fref pref prev next nref lref last post