* Re: Displaying text/calendar after the text/html part
[not found] <34603.7125958659$1706233277@news.gmane.org>
@ 2024-01-26 6:55 ` Steinar Bang
2024-01-26 8:43 ` Eric S Fraga
2024-02-01 1:33 ` Husain Alshehhi
0 siblings, 2 replies; 4+ messages in thread
From: Steinar Bang @ 2024-01-26 6:55 UTC (permalink / raw)
To: ding
>>>>> Husain Alshehhi <husain@alshehhi.io>:
> Hello,
> By default, if I get an email that has two parts, text/html (first) and
> text/calendar (second), gnus by default shows the text/calendar. This
> default behavior is because mime tools in emacs display the latest part
> as it is the "most rich"[1]. However, in the case, both display
> different information. I would like to display the text/html first, and
> then the text/calendar at the same time. I would like to do that when
> the email has html and calendar parts. Is this possible?
Doesn't that depend on whether it is multipart/mixed or multipart/alternative?
With multipart/mixed:
https://datatracker.ietf.org/doc/html/rfc2046#section-5.1.3
The "mixed" subtype of "multipart" is intended for use when the body
parts are independent and need to be bundled in a particular order.
Any "multipart" subtypes that an implementation does not recognize
must be treated as being of subtype "mixed".
With multipart/alternative:
https://datatracker.ietf.org/doc/html/rfc2046#section-5.1.4
The "multipart/alternative" type is syntactically identical to
"multipart/mixed", but the semantics are different. In particular,
each of the body parts is an "alternative" version of the same
information.
I.e. with multipart/mixed both the calendar and text should be displayed
in the order they are found in the email, while with
multipart/alternative only the "richest" alternative should be
displayed?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Displaying text/calendar after the text/html part
2024-01-26 6:55 ` Displaying text/calendar after the text/html part Steinar Bang
@ 2024-01-26 8:43 ` Eric S Fraga
2024-02-01 1:33 ` Husain Alshehhi
1 sibling, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2024-01-26 8:43 UTC (permalink / raw)
To: ding
On Friday, 26 Jan 2024 at 07:55, Steinar Bang wrote:
> Doesn't that depend on whether it is multipart/mixed or
> multipart/alternative?
It does but, annoyingly, tools like Outlook and Teams send calendar
invites using multipart/alternative despite the /alternative/ contents
being significantly different. It would be great if one could override
the processing of multipart/alternative to behave like multipart/mixed.
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-09-14) on Debian 12.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Displaying text/calendar after the text/html part
2024-01-26 6:55 ` Displaying text/calendar after the text/html part Steinar Bang
2024-01-26 8:43 ` Eric S Fraga
@ 2024-02-01 1:33 ` Husain Alshehhi
1 sibling, 0 replies; 4+ messages in thread
From: Husain Alshehhi @ 2024-02-01 1:33 UTC (permalink / raw)
To: ding
Steinar Bang <sb@dod.no> writes:
> Doesn't that depend on whether it is multipart/mixed or multipart/alternative?
Thank you for the catch. Outlook is sending multipart/alternative when
it is not really alternative. Looks like an issue with Outlook.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Displaying text/calendar after the text/html part
@ 2024-01-26 1:40 Husain Alshehhi
0 siblings, 0 replies; 4+ messages in thread
From: Husain Alshehhi @ 2024-01-26 1:40 UTC (permalink / raw)
To: ding
Hello,
By default, if I get an email that has two parts, text/html (first) and
text/calendar (second), gnus by default shows the text/calendar. This
default behavior is because mime tools in emacs display the latest part
as it is the "most rich"[1]. However, in the case, both display
different information. I would like to display the text/html first, and
then the text/calendar at the same time. I would like to do that when
the email has html and calendar parts. Is this possible?
[1] https://www.gnu.org/software/emacs/manual/html_mono/emacs-mime.html#index-mm_002ddiscouraged_002dalternatives
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-01 1:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <34603.7125958659$1706233277@news.gmane.org>
2024-01-26 6:55 ` Displaying text/calendar after the text/html part Steinar Bang
2024-01-26 8:43 ` Eric S Fraga
2024-02-01 1:33 ` Husain Alshehhi
2024-01-26 1:40 Husain Alshehhi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).