Multipart/alternative (with Lightning): Out of 3 alternative parts, TB does not display nor offer as attachment any of (1) text/plain or (2) text/html, but only (3) text/calendar (mail with invite from google calendar)

RESOLVED DUPLICATE of bug 505024

Status

Thunderbird
General
RESOLVED DUPLICATE of bug 505024
6 years ago
2 years ago

People

(Reporter: Gaetano Giunta, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug, {testcase})

12 Branch
x86_64
Windows 7
testcase
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
Created attachment 629143 [details]
the email in question

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120420145725

Steps to reproduce:

[filing under general, though it might be Lightning-related]

receive an email. Email was sent using the "send msg to guests" button in goggle calendar's event page


Actual results:

TB only showed the event info, not the plaintext part of the mail (the "message" in the google calendar form)

.ics file was correctly shown as atachment as well, and could be saved

The funny thing is: the popup-notification window when mail was received showed instead the plaintext message


Expected results:

tb should have displayed the plaintext part of the mail above the event invite

Comment 1

6 years ago
(In reply to Gaetano Giunta from comment #0)
checked your attachment and the text part appears for me (which shows the following):

Hello,
I am so sorry, but someone had scheduled a meeting exactly at the same time  
as ours. Lets try gotowebinar:  
https://www3.gotomeeting.com/register/128585726
Thanks for your patience.
Melissa
Attachment #629143 - Attachment mime type: application/octet-stream → message/rfc822
Gaetano did you try in Thunderbird's safe-mode ?

Hashem do you have lightning installed ?
Keywords: testcase
(In reply to Gaetano Giunta from comment #0)
> TB only showed the event info, not the plaintext part of the mail (the
> "message" in the google calendar form)

Where can we see "ATTACHMENT part of text/calender" in the mail?

Mail structure.
  Content-Type: multipart/mixed; boundary=0016e6d976262e053a04c1649135
  --0016e6d976262e053a04c1649135
  Content-Type: multipart/alternative; boundary=0016e6d976262e053304c1649133
    --0016e6d976262e053304c1649133
    Content-Type: text/plain;
    --0016e6d976262e053304c1649133
    Content-Type: text/html;
    --0016e6d976262e053304c1649133
    Content-Type: text/calendar;
    --0016e6d976262e053304c1649133--
  --0016e6d976262e053a04c1649135
  Content-Type: application/ics; name="invite.ics"
  --0016e6d976262e053a04c1649135--

Because multipart/alternative and Tb has capability to show text/plain or text/html as message body, Tb chooses one of text/plain or text/html part in multipart/alternative, and because Tb is not a mailer who shows text/calender as message body, Tb ignores text/calander in multipart/alternative according to definition of multipart/altenative.
What's wrong?

Comment 4

6 years ago
(In reply to Ludovic Hirlimann [:Usul] from comment #2)
> Gaetano did you try in Thunderbird's safe-mode ?
> 
> Hashem do you have lightning installed ?

No, I don't.
Attachment #629143 - Attachment mime type: message/rfc822 → text/plain
(In reply to Gaetano Giunta from comment #0)
> the email in question
> Sender: Google Calendar <calendar-notification@google.com>

Does Google intentionally ignore difference among RFCs for multipart/mixed, multipart/alternative, multipart/related?

As for text/calender in multipart/related which is not pointed by text/html.
(i)  Lightning shows it as attachment
(ii) Tb already has quirks for it and shows it as if attachment,
     if one of name(Content-Type:), attachment(Content-Disposition:),
     filename(Content-Disposition:) is specified.

As for text/calender which is placed in multipart/alternative.
(iii) Tb 12 already shows it as if attachment too,
      if one of name(Content-Type:), attachment(Content-Disposition:),
      filename(Content-Disposition:) is specified. 
      However, even if this part is shown as if attachment by Tb,
      following problem occurs in Tb 12.0.1.
      - The text/calander part can't be opened due to following error.  
        ! This attachment appears to be empty.
          Please check with the person who sent this.
          Often company firewalls or antivirus programs will destroy attachments.
      - If save is requested, nothing is saved. Saved file is not created.
      This is already reported phenomenon to other bug.

In any case of malformed text/calender under multipart/related and malformed text/calender under multipart/related, 
(iv) text/calender part is not shown as if attachment by Tb, if no name(Content-Type:), no attachment(Content-Disposition:), no filename(Content-Disposition:). This is also known issue.

To see/save malformed text/calender under multipart/alternative, following workaround is already available.
(1) mailnews.display.show_all_body_parts_menu = true
(2) View/Message Body As/All Body Parts.
    Because any multipart/xxx is treated as multipart/mixed in this mode,
    any part can be opened by an application and can be saved as a file.
(3) Change back to mailnews.display.show_all_body_parts_menu=false for daily use.
(Reporter)

Comment 6

6 years ago
@wada

> Does Google intentionally ignore difference among RFCs for multipart/mixed, multipart/alternative, multipart/related?

No clue. Ask them! :-)

Thanks for the detailed explanation you have given so far, but I think you might have misunderstood the problem.

When opening the mail, I DO see the calendar invite, both inline in the mail body and as attachment that can be saved as .ics.

The problem is that I DO NOT see the textual part which reads "I am so sorry, but someone ...".
This text is sent as parts 1 (text) and 2 (html) of the 3 which are sent as alternatives within the 1st part of the top level "mixed" multipart
(Reporter)

Comment 7

6 years ago
PS: of all recipients of this mail, I was the only one having this problem, so other mail readers act differently (I'd expect gmail's own and apple mail to have been used here)
(Reporter)

Comment 8

6 years ago
Created attachment 630875 [details]
Screenshot of tb displaying the mail
(Reporter)

Comment 9

6 years ago
Lat note: when enabling mailnews.display.show_all_body_parts_menu = true, I see the missing text displayed twice: once in a "part" of its own, once just above the invite box
(In reply to Gaetano Giunta from comment #6)
> The problem is that I DO NOT see the textual part which reads "I am so
> sorry, but someone ...".
> This text is sent as parts 1 (text) and 2 (html) of the 3 which are sent as
> alternatives within the 1st part of the top level "mixed" multipart

Oh, sorry for my misunderstanding.

When did your problem started to occur?
No problem with Tb 12 and started to occur after upgrade to Tb 12.0.0 or 12.0.1?

Do you see your problem with any combination of of View/Message Body As and View/Display Attachments Inline ?
(Original HTML/Simple HTML/Plain Text, Display Attachments Inline=Checked/Unchecked)

Do you see your problem with new profile, with no add-on?
(1) thunderbird.exe -ProfileManager, create a new profile, start with it.
    When account Wizard is shown, cancel it,
    and manually create a dummy News or POP3 account(via Manual Setup).
    (any non-existent server such as news.news.news or pop3.pop3.pop3).
    "Local Folders" account is created.
(2) Create a folder(call FolderX) under Local Folders.
    Drag&Drop .eml file of the mail to thread pane of FolderX.
    (import of .eml by Drag&Drop)
What is shown by Tb 12?

As invitation is shown, you probably install Lightning.
Does your problem occur with Lightning installed to the new profile?

Updated

6 years ago
Attachment #629143 - Attachment mime type: text/plain → message/rfc822

Updated

6 years ago
Summary: thunderbird does not display text multipart when mail contains an invite from google calendar → Multipart/alternative (with Lightning): Out of 3 parts, TB does not display nor offer as attachment any of (1) text/plain or (2) text/html, but only (3) text/calendar (mail with invite from google calendar)

Comment 11

6 years ago
(In reply to WADA from comment #10)
> (In reply to Gaetano Giunta from comment #6)
> > The problem is that I DO NOT see the textual part which reads "I am so
> > sorry, but someone ...".
> > This text is sent as parts 1 (text) and 2 (html) of the 3 which are sent as
> > alternatives within the 1st part of the top level "mixed" multipart
> When did your problem started to occur?
> No problem with Tb 12 and started to occur after upgrade to Tb 12.0.0 or
> 12.0.1?

didn't test for regression range

> Do you see your problem with any combination of of View/Message Body As and
> View/Display Attachments Inline ?
> (Original HTML/Simple HTML/Plain Text,
>  Display Attachments Inline=Checked/Unchecked)

With all of these combinations (exactly as above), result is same:
(TB12.0.1, new profile, no addons, WinXP)

a) with Lightning:
- only text/calender (alternative part 3) is shown
- text/plain and text/html (alternative part 1 and 2) are missing entirely (from display, and attachment pane)
- only .ics is shown as real attachment

b) without Lightning:
- correctly toggles between: View msg body as > Plain text vs. HTML (alternative parts 1 or 2 are shown)
- text/calendar (alternative part 3) is entirely missing (never displayed, not in attachment pane)
- .ics is always shown as real attachment

> Do you see your problem with new profile, with no add-on?
> What is shown by Tb 12?

Exactly same as above (tried new profile, no addons, with and without Lightning).

> As invitation is shown, you probably install Lightning.
> Does your problem occur with Lightning installed to the new profile?

Yes, as above.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

6 years ago
Summary: Multipart/alternative (with Lightning): Out of 3 parts, TB does not display nor offer as attachment any of (1) text/plain or (2) text/html, but only (3) text/calendar (mail with invite from google calendar) → Multipart/alternative (with Lightning): Out of 3 alternative parts, TB does not display nor offer as attachment any of (1) text/plain or (2) text/html, but only (3) text/calendar (mail with invite from google calendar)

Comment 12

6 years ago
This is the reduced problem in a nutshell:

msg with multipart/alternative part containing 3(!) alternative parts:
(1) text/plain
(2) text/html
(3) text/calendar

a) with Lightning:
- we never show any of (1) text/plain or (2) text/html
- we only show (3) text/calendar

b) without Lightning:
- we correctly toggle between (1) text/plain or (2) text/html
- we never show (3) text/calendar

Even if that triple alternative structure produced by google might be unfortunate or malformed, we need to handle this case better (robustness principle).

Updated

6 years ago
Blocks: 505172
"Show text/calender under multipart/alternative as if attachment when name/filename/attachment is specified" is a new functionality of recent Tb.
This may affect on Lightning's subpart selection/handling.

Do you see similar problem in Tb 12/Lightning on (a) "text/calender under multipart/related" or (b) "text/calender mail"?

(a) Edit .eml file of "the email in question" by text editor, and change multipart/alernative to multipart/related, then Drag&Drop .eml file to thread pane of a local mail folder.

(b) Mail's Content-Type: is "Content-Type: text/calender", and message body of the mail is text/calendar data.
Issue in "text/calender under multipart/alternative" without Lightning is currently processed by Bug 505024. Setting dependency for ease of problem analysis, tracking, and search.
Depends on: 505024

Updated

4 years ago
Duplicate of this bug: 783603

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 505024
You need to log in before you can comment on or make changes to this bug.