Commit 6cfd1a84 6cfd1a84c70e6737fb628220ca766d3fe7e08aa3 by Sean 'Shaleh' Perry

added a TODO file

cleaned up from.c a little
1 parent 6f2e533e
1 Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 7 Oct 1999 22:33:24 -0700
2
3 * removed spurious code in from.c
4 * added TODO file
5
1 1999-10-07 Jeff Bailey <jbailey@cr499794-a.crdva1.bc.wave.home.com> 6 1999-10-07 Jeff Bailey <jbailey@cr499794-a.crdva1.bc.wave.home.com>
2 7
3 * Makefile.am: Compile libsrc/ first. 8 * Makefile.am: Compile libsrc/ first.
......
1 - autogen.sh (libtool) complains about libmailbox.la in noinst
2
3 - libmailbox has a nasty bug -- if the mailbox is empty, the library has no idea
4 what to do
5
6 - crypt is linked even if pam was detected, it should be one or the other
7
8 - test daemon code
9
10 - test network code
11
12 - add imap server code
13
14 - add more features
15
16 - optimize everything
17
18 - test everything
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
7 #include <mailbox.h> 7 #include <mailbox.h>
8 #include <paths.h> 8 #include <paths.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h>
10 11
11 int main(int argc, char *argv[]) { 12 int main(int argc, char *argv[]) {
12 mailbox *mail; 13 mailbox *mail;
13 unsigned int i; 14 unsigned int i;
14 char *header, *from, *date; 15 char *from, *date;
15 char *user; 16 char *user;
16 char mailpath[256]; 17 char mailpath[256];
17 18
...@@ -28,11 +29,6 @@ int main(int argc, char *argv[]) { ...@@ -28,11 +29,6 @@ int main(int argc, char *argv[]) {
28 exit(-1); 29 exit(-1);
29 } 30 }
30 for(i = 0; i < mail->messages; ++i) { 31 for(i = 0; i < mail->messages; ++i) {
31 header = mbox_get_header(mail, i);
32 if( header == NULL ) {
33 perror("mbox_get_header: ");
34 exit(-1);
35 }
36 from = mbox_header_line(mail, i, "From"); 32 from = mbox_header_line(mail, i, "From");
37 if (from == NULL) 33 if (from == NULL)
38 { 34 {
...@@ -46,7 +42,6 @@ int main(int argc, char *argv[]) { ...@@ -46,7 +42,6 @@ int main(int argc, char *argv[]) {
46 exit(-1); 42 exit(-1);
47 } 43 }
48 printf("%s %s\n", from, date); 44 printf("%s %s\n", from, date);
49 free(header);
50 free(from); 45 free(from);
51 free(date); 46 free(date);
52 } 47 }
......