about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-19 02:13:52 +0000
committerEric Wong <e@80x24.org>2016-06-19 02:23:50 +0000
commit763928565699beea87006156c565d0f808f9becc (patch)
tree70738081cbf15af724d3c38bafa26e67921f19cc /t
parent0c17b6e39fe98a0da0b0deaa4fd014343362a33f (diff)
downloadpublic-inbox-763928565699beea87006156c565d0f808f9becc.tar.gz
Only mark seen messages as spam, otherwise it could be
too aggressive and cause problems or over training.
We wouldn't want a wayward FIFO ruining our day, either :)
Diffstat (limited to 't')
-rw-r--r--t/watch_maildir.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/watch_maildir.t b/t/watch_maildir.t
index 8a2c934a..e8c97406 100644
--- a/t/watch_maildir.t
+++ b/t/watch_maildir.t
@@ -25,6 +25,7 @@ Date: Sat, 18 Jun 2016 00:00:00 +0000
 something
 EOF
 PublicInbox::Emergency->new($maildir)->prepare(\$msg);
+ok(POSIX::mkfifo("$maildir/cur/fifo", 0777));
 my $sem = PublicInbox::Emergency->new($spamdir); # create dirs
 
 my $config = PublicInbox::Config->new({
@@ -47,7 +48,7 @@ my $write_spam = sub {
         my @new = glob("$spamdir/new/*");
         is(scalar @new, 1);
         my @p = split(m!/+!, $new[0]);
-        ok(link($new[0], "$spamdir/cur/".$p[-1]));
+        ok(link($new[0], "$spamdir/cur/".$p[-1].":2,S"));
         is(unlink($new[0]), 1);
 };
 $write_spam->();