Re: archives and pictures display by default

2017-01-07 Thread David Bremner
David Bremner  writes:

> Tomas Nordin  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.



signature.asc
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: archives and pictures display by default

2017-01-07 Thread David Bremner
Tomas Nordin  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


signature.asc
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


archives and pictures display by default

2017-01-04 Thread Tomas Nordin
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
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch