Further info: It looks like when bogofilter actually finds a spam, it proceeds without errors. It only errors when the mail being processed is non-spam. Does this mean that the -e option is not working properly?