]> Sergey Matveev's repositories - public-inbox.git/commit
view: do not offer links to 0-byte multipart attachments
authorEric Wong <e@yhbt.net>
Mon, 25 May 2020 08:21:37 +0000 (08:21 +0000)
committerEric Wong <e@yhbt.net>
Tue, 26 May 2020 10:54:36 +0000 (10:54 +0000)
commit8604ccc806997eadf78e2b6352b4daa0287b8bb0
tree828ed68f90a46d697886f24c7bbd4656cbf08e78
parentd6763f26cd82cae90ced264cfa59d0163ee5180f
view: do not offer links to 0-byte multipart attachments

Offering links to download 0-byte files is useless.  We could
waste memory by preserving $eml->{bdy} during iteration, but
offering attachments of type "multipart" is not very useful,
as users are usually interested in decoded attachments or
the entire raw message.

Fixes: e60231148eb604a3 ("descend into message/(rfc822|news|global) parts")
lib/PublicInbox/View.pm
t/psgi_attach.t