]> Sergey Matveev's repositories - public-inbox.git/blobdiff - scripts/report-spam
nntp: use substr to check for trailing CRLF
[public-inbox.git] / scripts / report-spam
index 0015ef0ba22fca00a2fc9bb3a12a3c20146a89e4..325f57183d2a14bb1365f45af1c949c246c79e22 100755 (executable)
@@ -32,14 +32,14 @@ PI_USER=pi
 
 case $1 in
 *[/.]spam/cur/*) # non-new messages in spam get trained
-       $DO_SENDMAIL $PI_USER+pispam < $1
-       exec $DO_SENDMAIL $USER+trainspam < $1
+       $DO_SENDMAIL $PI_USER+pispam <$1
+       exec $DO_SENDMAIL $USER+trainspam <$1
        ;;
 *:2,*S*) # otherwise, seen messages only
        case $1 in
        *:2,*T*) exit 0 ;; # ignore trashed messages
        esac
-       $DO_SENDMAIL $PI_USER+piham < $1
-       exec $DO_SENDMAIL $USER+trainham < $1
+       $DO_SENDMAIL $PI_USER+piham <$1
+       exec $DO_SENDMAIL $USER+trainham <$1
        ;;
 esac