procmail
[Top] [All Lists]

Re: BUG in Clenson pop daemon

1999-09-25 14:12:24

It appears that the Clemson pop daemon has been orphaned, as all the
clemson addresses in the README file bounce.  If anyone here knows of
a replacement list or just the address of someone taking care of this
software, please forward to them the attached patch.

(My original patch left out a semicolon.  Whoops...)


*** mailbox.c.original  Sat Sep 25 15:26:25 1999
--- mailbox.c   Sat Sep 25 15:28:20 1999
***************
*** 141,159 ****
  parse_down_mbox(mbox_fp)
  FILE *mbox_fp;
  {
!   char inline[256],is_ln_st=TRUE;
    long cur_pos, last_pos;
    struct mail_ent *me_pre, *me_ptr=NULL;
  
    cur_pos=last_pos=0;
    while(fgets(inline,sizeof(inline),mbox_fp) != NULL)
    {
!     if(!is_ln_st) continue;  /* did we read a partial last time ? */
      /* see if we really read an entire line or not */
      if(index(inline,'\n') == NULL)
        is_ln_st = FALSE;
      else
        is_ln_st = TRUE;
      if(strncmp(inline,"From ",5) == NULL)
      {
        me_pre=me_ptr;
--- 141,160 ----
  parse_down_mbox(mbox_fp)
  FILE *mbox_fp;
  {
!   char inline[256],is_ln_st=TRUE,was_ln_st;
    long cur_pos, last_pos;
    struct mail_ent *me_pre, *me_ptr=NULL;
  
    cur_pos=last_pos=0;
    while(fgets(inline,sizeof(inline),mbox_fp) != NULL)
    {
!     was_ln_st=is_ln_st;
      /* see if we really read an entire line or not */
      if(index(inline,'\n') == NULL)
        is_ln_st = FALSE;
      else
        is_ln_st = TRUE;
+     if(!was_ln_st) continue;  /* did we read a partial last time ? */
      if(strncmp(inline,"From ",5) == NULL)
      {
        me_pre=me_ptr;


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>