Commit a1c387de a1c387de06771ef31448977e81616e987382b64a by Alain Magloire

* messages/messages.c: Also include pop_record

	amd imap_record.
1 parent b35a39df
...@@ -62,6 +62,8 @@ main (int argc, char **argv) ...@@ -62,6 +62,8 @@ main (int argc, char **argv)
62 62
63 registrar_get_list (&bookie); 63 registrar_get_list (&bookie);
64 list_append (bookie, path_record); 64 list_append (bookie, path_record);
65 list_append (bookie, imap_record);
66 list_append (bookie, pop_record);
65 67
66 if (args.argc < 1 && messages_count (getenv("MAIL")) < 0) 68 if (args.argc < 1 && messages_count (getenv("MAIL")) < 0)
67 err = 1; 69 err = 1;
...@@ -96,12 +98,12 @@ messages_count (char *box) ...@@ -96,12 +98,12 @@ messages_count (char *box)
96 fprintf (stderr, "Couldn't count messages in %s.\n", box); 98 fprintf (stderr, "Couldn't count messages in %s.\n", box);
97 return -1; 99 return -1;
98 } 100 }
99 101
100 if (silent) 102 if (silent)
101 printf ("%d\n", count); 103 printf ("%d\n", count);
102 else 104 else
103 printf ("Number of messages in %s: %d\n", box, count); 105 printf ("Number of messages in %s: %d\n", box, count);
104 106
105 if (mailbox_close (mbox) != 0) 107 if (mailbox_close (mbox) != 0)
106 { 108 {
107 fprintf (stderr, "Couldn't close %s.\n", box); 109 fprintf (stderr, "Couldn't close %s.\n", box);
......