Commit | Line | Data |
---|---|---|
69739ccc BJ |
1 | #include <retrofit.h> |
2 | #include <stdio.h> | |
3 | ||
4 | main() | |
5 | { | |
6 | char lbuf[BUFSIZ]; | |
7 | ||
8 | if (chdir(getenv("HOME")) < 0) | |
9 | exit(1); | |
10 | if (freopen(".mail", "r", stdin) == NULL) | |
11 | exit(0); | |
12 | while(fgets(lbuf, sizeof lbuf, stdin) != NULL) | |
13 | if (lbuf[0] == 'F' && lbuf[1] == 'r' && lbuf[2] == 'o' && lbuf[3] == 'm') | |
14 | printf("%s", lbuf); | |
15 | exit(0); | |
16 | } |