about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-25 10:11:03 +0000
committerEric Wong <e@80x24.org>2021-02-26 02:35:48 +0000
commit9d1d7c2b505454fba331666a951e0f7997500b3c (patch)
tree5fc6553bbe8ccd0400311b14cee01a0253f0c1f3 /xt
parentf0731b9b653640afd8078aed994814b3049f230a (diff)
downloadpublic-inbox-9d1d7c2b505454fba331666a951e0f7997500b3c.tar.gz
eml ("message/rfc822" MIME type) is supported by "lei import",
so it probably makes sense to support via convert, at least
for tests.  And IMAP support is supported in "lei q -o $MFOLDER",
so this only required renaming {nrd} => {net} and initializing
outputs before augment preparation (creating the IMAP folder)
Diffstat (limited to 'xt')
-rw-r--r--xt/net_writer-imap.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/xt/net_writer-imap.t b/xt/net_writer-imap.t
index 64f822cf..da435926 100644
--- a/xt/net_writer-imap.t
+++ b/xt/net_writer-imap.t
@@ -138,6 +138,10 @@ test_lei(sub {
         $nwr->imap_each($folder_uri, $imap_slurp_all, my $empty = []);
         is(scalar(@$empty), 0, 'no results w/o augment');
 
+        lei_ok qw(convert -F eml t/msg_iter-order.eml -o), $$folder_uri;
+        $nwr->imap_each($folder_uri, $imap_slurp_all, $empty = []);
+        is_deeply($empty, [ [ [], eml_load('t/msg_iter-order.eml') ] ],
+                'converted to IMAP destination');
 });
 
 undef $cleanup; # remove temporary folder