Seeing no one send the best answer ...
My interpretation of RFC is right for you. I would say that Gmail does the wrong thing here, from the book. However, Gmail is indeed de facto valid by definition. Gmail is too popular for other software to not accept it, but it does everything that opens the door for more software to violate the specification in the same way until it becomes standard practice.
Unfortunately, this means that there is currently no exact specification that is true. Fortunately, this question now appears in Google results.
The original email in the question has disappeared, here is another example. This is only part of the encoded image of a multi-page message. Pay attention to the Content-ID header.
--089e0153807e5a346d04f1ae7c38 Content-Type: image/gif; name="blank.gif" Content-Transfer-Encoding: base64 Content-ID: <ii_14403b4fa16783bf> X-Attachment-Id: ii_14403b4fa16783bf R0lGODlhAQABAIAAAP
Peeja source share