i've got myself in a situation where i have a whole bunch of messages
to be stuffed in exim, naturally in bsmtp format. i have an error in
the file somewhere, so i broke it up into files containing one and
only one message, and i am trying to feed exim with these, and -
distinguish between "good" and "bad" ones based on exim's return value
(sglike that):
for i in *; do exim -bs <$i && mv $i good/ ; done
all my bones tell me that when this finishes, i should have the "bad"
messages (ie. malformed smtp instructions) left alone, and good ones
be moved to the "good" directory. however, this is not what happens.
(this happens on 3.33 as well, in case anyone would point to that :)
this is pretty obviously not what i would like to happen. is this
intentional or am i screwing something up ? quick skim at spec.txt
doesn't reveal anything relevant (that is, i looked for "return value"
and "exit status", to no avail).
could please anyone enlighten a poor soul ? :) also, am i asking for
nonsense if i would like to get "proper" (that is, non-zero) exit
status from exim in this case ?