|
|
1.1 ! root 1: #include <stdio.h> ! 2: #include <sys/types.h> ! 3: #include <dir.h> ! 4: #include "defs.h" ! 5: #include "scanmail.h" ! 6: ! 7: /* global */ ! 8: struct scanmail sm; ! 9: ! 10: extern char *smnext(); ! 11: ! 12: main() ! 13: { ! 14: char *p; ! 15: ! 16: sminit (&sm, NULL, getlogin()); ! 17: while (1) { ! 18: if(p=smnext(&sm)) ! 19: fprintf (stderr, "mail from %s\n", p); ! 20: sleep (5); ! 21: } ! 22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.