Commit eaeae738 eaeae738652c703078b622d1637fe6ed1251cec3 by Sam Roberts

No longer relevant to the current APIs.

1 parent 581bf631
#include "mailbox.h"
#include <paths.h>
int
main (int argc, char *argv[])
{
mailbox *mbox;
char *user;
char *body;
char mailpath[256];
int i;
user = getenv ("USER");
snprintf (mailpath, 256, "%s/%s", _PATH_MAILDIR, user);
mbox = mbox_open (mailpath);
for (i = 0; i < mbox->messages; ++i)
{
body = mbox_get_body (mbox, i);
printf ("%s\n", body);
}
mbox_close (mbox);
}