* archives and pictures display by default
@ 2017-01-04 21:29 Tomas Nordin
2017-01-07 13:18 ` David Bremner
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Nordin @ 2017-01-04 21:29 UTC (permalink / raw)
To: notmuch
Hello Notmuchers
When I get zip files as attachment with pictures, they all expand for
viewing. Can I turn this off?
Best regards
--
Tomas Nordin | (The computing freedom explorer)
GPG Key: AB09AF78
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: archives and pictures display by default
2017-01-04 21:29 archives and pictures display by default Tomas Nordin
@ 2017-01-07 13:18 ` David Bremner
2017-01-07 13:40 ` David Bremner
0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2017-01-07 13:18 UTC (permalink / raw)
To: Tomas Nordin, notmuch
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Tomas Nordin <tomasn@posteo.net> writes:
> Hello Notmuchers
>
> When I get zip files as attachment with pictures, they all expand for
> viewing. Can I turn this off?
>
> Best regards
> --
I agree this a bad default. I haven't had a chance to investigate much,
but it seems like the place we can control this is by setting
mm-inline-media-tests. IIUC, the third element of the alist element is a
function to test if the part should be inlined. By default this is
#'identity, which unconditionally inlines zip archives.
d
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: archives and pictures display by default
2017-01-07 13:18 ` David Bremner
@ 2017-01-07 13:40 ` David Bremner
0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2017-01-07 13:40 UTC (permalink / raw)
To: Tomas Nordin, notmuch
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
David Bremner <david@tethera.net> writes:
> Tomas Nordin <tomasn@posteo.net> writes:
>
>> Hello Notmuchers
>>
>> When I get zip files as attachment with pictures, they all expand for
>> viewing. Can I turn this off?
>>
>> Best regards
>> --
>
> I agree this a bad default. I haven't had a chance to investigate much,
> but it seems like the place we can control this is by setting
> mm-inline-media-tests. IIUC, the third element of the alist element is a
> function to test if the part should be inlined. By default this is
> #'identity, which unconditionally inlines zip archives.
The following should override it globally. (e.g. added to .emacs)
(setcdr
(assoc-default "application/zip" mm-inline-media-tests #'string-match nil)
(list #'mm-archive-dissect-and-inline (lambda (handle) nil)))
I only tested with "application/zip" replaced by
"application/x-tar-archive", but the principle should be the same.
I'm not really sure the right way of handling this as a default. It's
always a bit tricky with configuration shared with gnus.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-07 13:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 21:29 archives and pictures display by default Tomas Nordin
2017-01-07 13:18 ` David Bremner
2017-01-07 13:40 ` 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).