In case of an error the script terminates processing of the letter, deletes it and sends log with error message via the web-mail server to you. There aren't limits of file size, of quantity of files in one e-mail letter, of quantity of letters from a user. The script processes files one line at a time and doesn't store whole file in memory, so it doesn't eat up HyperMart server's memory. I tried to optimize the script for speed. Commands All mail2ftp commands are case insensitive.
Filenames usually are case sensitive.
EOF string is case sensitive. Blanks before a command aren't allowed, i.e. each command must begin in the first column of a line. The very first line of body of the email letter sent to POP3 account must contain the MAIL2FTP command. You must set up your mail client to send plain text only. Empty lines between commands and after last command are ignored.