I am trying to process an email with a bash script, this is what my
.forward file looks like:

# Exim filter
if $header_subject contains "Alarm Detail Report" then
        unseen save "email.htm"
        unseen pipe "/bin/bash /home/spectrumalarm/received.sh"
endif

Now in the exim log these commands always happen in the reverse order
so the bash script does not have a chance to parse the saved file
(pipe then save email.htm).

Is there another way I can do this so this happens in the right order?

-- 
Donovan Niesen