I'm not sure how we'll distinguish JMAP vs read-only HTTPS,
yet; but we'll focus on currently-supported stuff, first.
}
}
} elsif ($input_path =~ m!\Ahttps?://!i) {
+ # TODO: how would we detect r/w JMAP?
+ push @{$sync->{no}}, $input if $sync;
prepare_http_input($self, $lei, $input_path) or return;
} elsif ($input_path =~ s/\A([a-z0-9]+)://is) {
my $ifmt = lc $1;
$res = json_utf8->decode($lei_out);
is($res->[0]->{'m'}, '20180720072141.GA15957@example',
'imported search result') or diag explain($res);
+
+ ok(!lei(qw(import --mail-sync), "$url/x\@example.com/raw"),
+ '--mail-sync fails on HTTP');
+ diag $lei_err;
+
});
done_testing;