user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH/RFC 0/2] recurse into message/rfc822 parts
@ 2020-05-16 10:03 Eric Wong
  2020-05-16 10:03 ` [PATCH 1/2] t/psgi_attach: assert message/* parts are downloadable Eric Wong
  2020-05-16 10:03 ` [PATCH 2/2] descend into message/(rfc822|news|global) parts Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2020-05-16 10:03 UTC (permalink / raw)
  To: meta

Multipart parts aren't the only things which nest,
message/rfc822 attachments can contain any sort of full
message.

I noticed gmime supports this while evaluating(*) it to replace
Email::MIME, and it seems needed for IMAP support.

Email::MIME seemed to attempt to support descending into
message/*, but didn't do it properly, so it never got
triggered.

There's definitely some message/rfc822 attachments in various
archives out there, and it looks like message/global is becoming
a thing, and some message/news for legacy stuff...

gmime supports message/rfc2822, too, which doesn't seem
specified anywhere...

Search indexing multiple From/To/Cc/Subject/Message-ID/List-Id
headers is straightforward, Date is not...

Also, note the t/data/message_embed.eml example includes
a circular reference :)   I have no intention of doing threading
for attached messages (AFAIK no mail client does this), but
maybe making the contents of References / In-Reply-To is
a helpful thing in general.

Eric Wong (2):
  t/psgi_attach: assert message/* parts are downloadable
  descend into message/(rfc822|news|global) parts

 MANIFEST                     |   1 +
 lib/PublicInbox/Eml.pm       |  37 ++++++--
 lib/PublicInbox/MsgIter.pm   |   6 +-
 lib/PublicInbox/SearchIdx.pm |  47 ++++++----
 lib/PublicInbox/View.pm      |  30 ++++++-
 t/data/message_embed.eml     | 163 +++++++++++++++++++++++++++++++++++
 t/eml.t                      |  28 ++++++
 t/psgi_attach.t              |  27 ++++++
 t/search.t                   |  25 ++++++
 9 files changed, 336 insertions(+), 28 deletions(-)
 create mode 100644 t/data/message_embed.eml


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-16 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 10:03 [PATCH/RFC 0/2] recurse into message/rfc822 parts Eric Wong
2020-05-16 10:03 ` [PATCH 1/2] t/psgi_attach: assert message/* parts are downloadable Eric Wong
2020-05-16 10:03 ` [PATCH 2/2] descend into message/(rfc822|news|global) parts Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).