diff options
author | Eric Wong <e@yhbt.net> | 2020-05-10 06:21:05 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-05-10 06:56:44 +0000 |
commit | 8b44e99ec009508d7e050ee44d34a1cf0f111dd5 (patch) | |
tree | ac28b75f04e2b7e11af9c4764d43f9b0a10dd845 /t | |
parent | 1dde99e0badebfaf509cee4f15bbfa284996c8fc (diff) | |
download | public-inbox-8b44e99ec009508d7e050ee44d34a1cf0f111dd5.tar.gz |
They're still part of our internal API at this point, but reusing the same names as those used by postfix makes sense for now to reduce cognitive overheads of learning new things. There's no "mime_parts_limit", but the name is consistent with "mime_nesting_limit".
Diffstat (limited to 't')
-rw-r--r-- | t/eml.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -282,7 +282,7 @@ if ('maxparts is a feature unique to us') { my @orig; $eml->each_part(sub { push @orig, $_[0]->[0] }); - local $PublicInbox::Eml::MAXPARTS = scalar(@orig); + local $PublicInbox::Eml::mime_parts_limit = scalar(@orig); my $i = 0; $eml->each_part(sub { my $cur = $_[0]->[0]; @@ -290,7 +290,7 @@ if ('maxparts is a feature unique to us') { is($cur->body_raw, $prv->body_raw, "part #$i matches"); }); is($i, scalar(@orig), 'maxparts honored'); - $PublicInbox::Eml::MAXPARTS--; + $PublicInbox::Eml::mime_parts_limit--; my @ltd; $eml->each_part(sub { push @ltd, $_[0]->[0] }); for ($i = 0; $i <= $#ltd; $i++) { |