]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei-q-remote-import.t
lei up: fix dedupe with remote externals on Maildir + IMAP
[public-inbox.git] / t / lei-q-remote-import.t
index 32c5172bdea63051a758da84773a603e1864742a..800670610f5129ab2d9f027e5243ac8b849bba68 100644 (file)
@@ -91,5 +91,11 @@ EOF
        lei_ok(qw(q -o mboxrd:/dev/stdout m:never-before-seen@example.com));
        like($lei_out, qr/seen\@example\.com>\nStatus: RO\n\nwhatever/sm,
                '--import-before imported totally unseen message');
+
+       lei_ok(qw(q --save z:0.. -o), "$ENV{HOME}/md", '--only', $url);
+       my @f = glob("$ENV{HOME}/md/*/*");
+       lei_ok('up', "$ENV{HOME}/md");
+       is_deeply(\@f, [ glob("$ENV{HOME}/md/*/*") ],
+               'lei up remote dedupe works on maildir');
 });
 done_testing;