/[mailutils]/mailutils/pop3d/top.c
ViewVC logotype

Diff of /mailutils/pop3d/top.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by alainm, Tue Apr 24 05:27:14 2001 UTC revision 1.11 by gray, Fri Jul 26 11:22:02 2002 UTC
# Line 58  pop3d_top (const char *arg) Line 58  pop3d_top (const char *arg)
58    if (attribute_is_deleted (attr))    if (attribute_is_deleted (attr))
59      return ERR_MESG_DELE;      return ERR_MESG_DELE;
60    
61    fprintf (ofile, "+OK\r\n");    pop3d_outf ("+OK\r\n");
62    
63    /* Header.  */    /* Header.  */
64    message_get_header (msg, &hdr);    message_get_header (msg, &hdr);
# Line 74  pop3d_top (const char *arg) Line 74  pop3d_top (const char *arg)
74        if (buf[n - 1] == '\n')        if (buf[n - 1] == '\n')
75          {          {
76            buf[n - 1] = '\0';            buf[n - 1] = '\0';
77            fprintf (ofile, "%s\r\n", buf);            pop3d_outf ("%s\r\n", buf);
78          }          }
79        else        else
80          fprintf (ofile, "%s", buf);          pop3d_outf ("%s", buf);
81        off += n;        off += n;
82      }      }
83    
# Line 102  pop3d_top (const char *arg) Line 102  pop3d_top (const char *arg)
102                continue;                continue;
103              }              }
104            if (buf[0] == '.')            if (buf[0] == '.')
105              fprintf (ofile, ".%s\r\n", buf);              pop3d_outf (".%s\r\n", buf);
106            else            else
107              fprintf (ofile, "%s\r\n", buf);              pop3d_outf ("%s\r\n", buf);
108            lines--;            lines--;
109            off += n;            off += n;
110          }          }
111      }      }
112    
113    free (buf);    free (buf);
114    fprintf (ofile, ".\r\n");    pop3d_outf (".\r\n");
115    
116    return OK;    return OK;
117  }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26