Thanks to Greg Poist from IBM, Palo Alto! The problem with leavembox.c was that "#include <unistd.h>" was needed. Now, does anyone know how to resolve the problem that elm wants to use /usr/spool/mail/userid and AIX puts the mail in $HOME/.newmail? Thanks, Lance-Moxley at uiuc.edu