Commit 6cfd1a84 6cfd1a84c70e6737fb628220ca766d3fe7e08aa3 by Sean 'Shaleh' Perry

added a TODO file

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