summaryrefslogtreecommitdiff
path: root/mu4e
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2026-04-10 20:13:13 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2026-04-10 20:14:16 +0300
commit581b3e4efec80e468c6d27be87004c5cb0378a21 (patch)
treeb66a25b3f08194ca3cf70de99cc598216c3c02ab /mu4e
parentb85ce9b37791aa11efa68afec824bce3ab1f91c7 (diff)
message: improve attachment heuristics
Do not consider calender-invitations "attachments"; do mark as "calendar". Do recognize application/ics as calendar messages. Update mime-object to expose a message part's disposition. Change the "is-attachment" heuristic to include inline parts if they have a filename parameter in their content-disposition. Note that this doesn't change things radically; the delta is +69 and -202 for ~6500 attachments.
Diffstat (limited to 'mu4e')
-rw-r--r--mu4e/mu4e.texi11
1 files changed, 7 insertions, 4 deletions
diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi
index e1ab6ed..383d975 100644
--- a/mu4e/mu4e.texi
+++ b/mu4e/mu4e.texi
@@ -1602,7 +1602,7 @@ mu4e-view-show-mime-parts}. This can be a little slow.
Nowadays, typical e-mail messages can be thought of as a series of
``MIME-parts'', which are sections of the message. The most prominent of those
-parts is the 'body', which is the main text of the message your are readings.
+parts is the 'body', which is the main text of the message your are reading.
Other MIME-parts in the messages include @emph{attachments}.
@@ -1610,9 +1610,12 @@ Other MIME-parts in the messages include @emph{attachments}.
@cindex attachments
Many e-mail messages contain @emph{attachments}, which are MIME-parts that
-encode files@footnote{Attachments come in two flavors: @t{inline} and
-@t{attachment}. @code{mu4e} does not distinguish between the two when operating on
-them: everything that specifies a filename is considered an attachment}.
+encode files which you can extract.
+
+@footnote{@code{mu} uses some heuristics to decide if a part should be treated
+as an attachment; including @t{inline} parts that specify a filename. The
+heuristic tries to balance false-positive and false-negatives, both of which are
+possible}
To save attachments as files on your computer, @code{mu4e}'s message-view
offers the command @code{mu4e-view-save-attachments}; its default keybinding is