I'm trying to set up a method of receiving e-mails and automatically saving the attachments as files. To do this, I am going to use a fetchmail, procmail, and metamail combination.
Fetchmail and procmail are already in OS X but metamail is not. I am having difficulty compiling metamail. Usually, if it doesn't compile on the first try, or I don't have step by step instructions to follow, I am lost.
Please help me get this installed. I don't know how to make it configure properly.
I am using the source on
this page
Here is what I get when I follow the instructions of just typing "make":
Code:
(cd metamail ; make CONFIGDIR=../. CFLAGS="-g -I. " CC="cc" LDLIBS="")
rm -f metamail.o
cc -c -I../. -g -I. metamail.c
metamail.c: In function `main':
metamail.c:306: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:308: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:309: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:310: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:311: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:313: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:314: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:316: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:317: warning: passing arg 2 of `signal' from incompatible pointer type
metamail.c:321: warning: passing arg 2 of `signal' from incompatible pointer type
rm -f codes.o
cc -c -I../. -g -I. codes.c
rm -f uue.o
cc -c -I../. -g -I. uue.c
rm -f shared.o
cc -c -I../. -g -I. shared.c
rm -f putenv.o
cc -c -I../. -g -I. putenv.c
rm -f metamail
cc -I../. -g -I. -o metamail metamail.o putenv.o codes.o uue.o shared.o
ld: Undefined symbols:
_gtty
_stty
make[1]: *** [metamail] Error 1
make: *** [basics] Error 2
Usually a "configure" file sets up the program before making but this one doesn't have that. What is the problem and how do I manually fix it?
[edit] Maybe progress... I've been searching for other people who have "undefined symbols" of _gtty and _stty and one solution is to use "termios" instead. However, I have no idea where to edit the code to make it use that. Where do I include it? What code should I change so it doesn't look for the tty's? Is this even on the right track?
Thanks.