[comp.mail.elm] Help needed with filter

D.I.Wood@newcastle.ac.uk (Iain Wood) (02/07/90)

We are experiencing problems using filter. Any attempt to pass
messages through filter resulted in corrupted mailbox/folders. The
problem was that the messages were being saved without the initial
From line ( the one without the : after the From)
This was bodged by executing a script that echoed "From somwhere" then
cat'd the message. Messy but sucessful.
However.... During routine testing, it became apparant that some
messages were just not getting through.
I would mail something to myself and wait for it to arrive.
Approximately one in three of these messages would disappear without
trace. filter -s would report that it had been processed, but it just
never appeared in my mailbox.
I suspect this might be a side effect of the kludge I applied, but
would rather get rid of the kludge than patch it further. Any ideas?

( Here are my .filter-rules.
-----------------------------------------------------------------------
# rule 1
if (subject = "InterleafMailFTP") then
execute "/user/ndiw/.filterfudge/uudecodeto /user/ndiw/desktop/Mail.drw "

# default rule
always execute "/user/ndiw/.filterfudge/save /usr/spool/mail/ndiw"
-----------------------------------------------------------------------
and here is the .filterfudge/save script
----------------------------------------------------------------------
cat > /tmp/insert.$$
while test -f /tmp/filter.fudge
do
        sleep 2
done
touch /tmp/filter.fudge
( echo "From Ojas-to-Bindu" `date`; cat /tmp/insert.$$ ; echo "" ) >>$1
rm /tmp/insert.$$ /tmp/filter.fudge
----------------------------------------------------------------------
)
Thanks in advance
			Iain

--------------------------------------------------------------
      Iain Wood          | E-mail  D.I.Wood@uk.ac.newcastle
  Newcastle University   | phone   091 222 8237
--------------------------------------------------------------