diff options
author | Eric Wong <e@yhbt.net> | 2020-04-25 05:52:23 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-26 07:03:15 +0000 |
commit | aa454143b1f26ffdf5f32f17c2032473d70eceae (patch) | |
tree | 5dec11537d4ee9e3ed2c0ecfb86112251024116d /t/search.t | |
parent | e39585ee2bdcbeaab7b6bd33b3568021042d0879 (diff) | |
download | public-inbox-aa454143b1f26ffdf5f32f17c2032473d70eceae.tar.gz |
mime_from_path is designed to fail gracefully in busy Maildirs whereas mime_load was made for loading files from a work tree.
Diffstat (limited to 't/search.t')
-rw-r--r-- | t/search.t | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -286,9 +286,7 @@ EOF }); $ibx->with_umask(sub { - my $eml = 't/utf8.eml'; - my $mime = PublicInbox::InboxWritable::mime_from_path($eml) or - die "open $eml: $!"; + my $mime = mime_load 't/utf8.eml'; my $doc_id = $rw->add_message($mime); ok($doc_id > 0, 'message indexed doc_id with UTF-8'); my $msg = $rw->query('m:testmessage@example.com', {limit => 1})->[0]; |