mailsplit.c is a mail spool spliter, it opens a unix mbox format mail spool and breaks it down in seperate files for each message, the name of the file is derived from the messageid field of the particular email.