[Exim] bsmtp, abnormal termination, return value

Página Inicial
Delete this message
Reply to this message
Autor: Tamas TEVESZ
Data:  
Para: exim-users
Assunto: [Exim] bsmtp, abnormal termination, return value
hi,

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.

i tried to confirm this with:

$ exim -bs
220 ESMTP Exim 3.32 #1 Thu, 13 Dec 2001 00:00:36 +0100
1
500 Unrecognized command
2
500 Unrecognized command
3
500 Unrecognized command
4
500 Unrecognized command
5
500 Unrecognized command
6
500 Too many unrecognized commands
$ echo $?
0
$

(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 ?

thanks a lot,

--
[-]