unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* attachment with missing Content-Disposition
@ 2013-05-08 13:15 Johannes Schauer
  2013-05-08 13:36 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Schauer @ 2013-05-08 13:15 UTC (permalink / raw)
  To: notmuch

Hi,

I recently received a multipart email with one of the parts being a pdf but the
part was not marked with "Content-Disposition: attachment". This let to notmuch
not adding tag:attachment to it.

The sender assured me that he used Outlook 2013 but I can't reproduce the
problem myself as I dont have microsoft products at hand. But if Outlook 2013
indeed adds attachments without setting "Content-Disposition: attachment", then
maybe the problem of notmuch not recognizing them as such is more severe?

The question is also what to do about it and how to detect attachments of this
kind. Apparently Thunderbird detects attachments that dont say
"Content-Disposition: attachment" but I did not try to figure out what its
heuristic is. Also the microsoft exchange server web client is able to figure
out that this part is supposed to be an attachment. What do other MUAs do?

So how to create a good heuristic? Using the Content-Type? In my case, the
supposed attachment was "application/octet-stream" for which it is probably
unambiguous that it is an attachment and not inline?

Alternatively, how about making attachment detection configurable so that
everybody is free to decide himself what he wants to be treated as attachment?

cheers, josch

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

* Re: attachment with missing Content-Disposition
  2013-05-08 13:15 attachment with missing Content-Disposition Johannes Schauer
@ 2013-05-08 13:36 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2013-05-08 13:36 UTC (permalink / raw)
  To: Johannes Schauer, notmuch

Johannes Schauer <j.schauer@email.de> writes:
>
> Alternatively, how about making attachment detection configurable so that
> everybody is free to decide himself what he wants to be treated as attachment?

That was my first thought when I saw the discussion on IRC. It seems to
be a special case of allowing saved searches to be configured at the
library level (it needs to be at least at the CLI level, but then all
the bindings users would have to duplicate this important
functionality).  I don't know how hard this would be to code up, but
there are some things to think about, like how this configuration
information would be stored, and whether it would be part of dump and
restored information.

d

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

end of thread, other threads:[~2013-05-08 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 13:15 attachment with missing Content-Disposition Johannes Schauer
2013-05-08 13:36 ` David Bremner

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

	https://yhetil.org/notmuch.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).