Originally Posted by till
It looks as if the formail.pl has been saved / uploaded with windows linebreaks. Please save the file again with unix linebreaks.
As a cheap and dirty quick fix, especially if all you have to convert is a single file, zip the file (with zip, not gzip or bzip) then unzip it with the "-a" flag.
zip 1.zip formail.pl
unzip -a 1.zip