]> Sergey Matveev's repositories - public-inbox.git/commitdiff
scripts/dc-dlvr: ensure temporary files are removed
authorEric Wong <e@80x24.org>
Wed, 6 Jul 2016 01:52:07 +0000 (01:52 +0000)
committerEric Wong <e@80x24.org>
Wed, 6 Jul 2016 07:12:45 +0000 (07:12 +0000)
Oops :x

scripts/dc-dlvr

index 5ebca3fedc23ea1c0eacbe111c64cc8e7ef3cb2e..a38760f590693fd7ae4af7a09e5fed42c7bbbbe1 100755 (executable)
@@ -25,7 +25,8 @@ cat >$CDMSG
 $CLAMDSCAN --quiet - <$CDMSG
 if test $? -eq 1
 then
-       exec $DELIVER -m INBOX.spam <$CDMSG
+       $DELIVER -m INBOX.spam <$CDMSG
+       exec rm -f $rm_list
 fi
 
 # pre-filter, for infrequently read lists which do their own spam filtering: