]> Sergey Matveev's repositories - public-inbox.git/commit
eml: each_part: single part $idx is 1
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:10 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit686951722e2709b548384b19ad300f5c2642d368
treeb999ae03e2f8bde33e813aea21056fd6db8bebe5
parentca68e519d588b1fd97d9d4a9c43bbb07534624c2
eml: each_part: single part $idx is 1

Instead of counts starting at 0, we start the single-part
message at 1 like we do with subparts of a multipart message.
This will make it easier to map offsets for "BODY[$SECTION]"
when using IMAP FETCH, since $SECTION must contain non-zero
numbers according to RFC 3501.

This doesn't make any difference for WWW URLs, since single part
messages cannot have downloadable attachments.
lib/PublicInbox/Eml.pm
lib/PublicInbox/MsgIter.pm
t/eml.t