This is the file that the .procmailrc calls !/usr/bin/env bash cat mbx_file > "x`date +%F%k%M%N`" It seems to kind of work in that a file will be output (sometimes) but it only contains the text of the last email of the batch just downloaded.