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

Diff of /mailutils/pop3d/list.c

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

revision 1.9 by alainm, Wed May 2 04:45:12 2001 UTC revision 1.10 by gray, Fri Jul 26 11:22:02 2002 UTC
# Line 37  pop3d_list (const char *arg) Line 37  pop3d_list (const char *arg)
37    if (strlen (arg) == 0)    if (strlen (arg) == 0)
38      {      {
39        size_t total = 0;        size_t total = 0;
40        fprintf (ofile, "+OK\r\n");        pop3d_outf ("+OK\r\n");
41        mailbox_messages_count (mbox, &total);        mailbox_messages_count (mbox, &total);
42        for (mesgno = 1; mesgno <= total; mesgno++)        for (mesgno = 1; mesgno <= total; mesgno++)
43          {          {
# Line 47  pop3d_list (const char *arg) Line 47  pop3d_list (const char *arg)
47              {              {
48                message_size (msg, &size);                message_size (msg, &size);
49                message_lines (msg, &lines);                message_lines (msg, &lines);
50                fprintf (ofile, "%d %d\r\n", mesgno, size + lines);                pop3d_outf ("%d %d\r\n", mesgno, size + lines);
51              }              }
52          }          }
53        fprintf (ofile, ".\r\n");        pop3d_outf (".\r\n");
54      }      }
55    else    else
56      {      {
# Line 62  pop3d_list (const char *arg) Line 62  pop3d_list (const char *arg)
62          return ERR_MESG_DELE;          return ERR_MESG_DELE;
63        message_size (msg, &size);        message_size (msg, &size);
64        message_lines (msg, &lines);        message_lines (msg, &lines);
65        fprintf (ofile, "+OK %d %d\r\n", mesgno, size + lines);        pop3d_outf ("+OK %d %d\r\n", mesgno, size + lines);
66      }      }
67    
68    return OK;    return OK;

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

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