X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Fnet_writer-imap.t;h=f12280908b94daaef996e26a759f2e995453dd03;hb=c029c9e085ca1f1b1319e566157e04f9c972c55b;hp=aeed314499642e09d0ce7ca167e026078dfa7273;hpb=9189e65e01c529016d3000f3aa78d91e4efc4afe;p=public-inbox.git diff --git a/xt/net_writer-imap.t b/xt/net_writer-imap.t index aeed3144..f1228090 100644 --- a/xt/net_writer-imap.t +++ b/xt/net_writer-imap.t @@ -19,7 +19,8 @@ require_mods('Mail::IMAPClient'); require_ok 'PublicInbox::NetWriter'; my $host = (split(/\./, hostname))[0]; my ($base) = ($0 =~ m!\b([^/]+)\.[^\.]+\z!); -my $folder = "INBOX.$base-$host-".strftime('%Y%m%d%H%M%S', gmtime(time)). +my $SEP = $ENV{IMAP_SEPARATOR} || '.'; +my $folder = "INBOX$SEP$base-$host-".strftime('%Y%m%d%H%M%S', gmtime(time)). "-$$-".sprintf('%x', int(rand(0xffffffff))); my $nwr = PublicInbox::NetWriter->new; chop($imap_url) if substr($imap_url, -1) eq '/'; @@ -242,6 +243,7 @@ EOM lei_ok qw(q m:testmessage --no-external -o), $folder_url; lei_ok qw(up), $folder_url; + lei_ok qw(up --all=remote); }); undef $cleanup; # remove temporary folder