From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 953916DE1390 for ; Sun, 12 Feb 2017 14:54:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.756 X-Spam-Level: X-Spam-Status: No, score=-0.756 tagged_above=-999 required=5 tests=[AWL=-0.035, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hdkbnYOAZCY1 for ; Sun, 12 Feb 2017 14:54:31 -0800 (PST) Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by arlo.cworth.org (Postfix) with ESMTPS id 39D206DE1374 for ; Sun, 12 Feb 2017 14:54:30 -0800 (PST) Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2450A208D3 for ; Sun, 12 Feb 2017 23:54:25 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3vM3sC4s5xzytk; Sun, 12 Feb 2017 23:54:23 +0100 (CET) Received: from tomas by flaptop with local (Exim 4.84_2) (envelope-from ) id 1cd31r-0003aM-KV; Sun, 12 Feb 2017 23:53:59 +0100 From: Tomas Nordin To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH v2] emacs: show: stop display of application/* parts In-Reply-To: <1485596862-32326-1-git-send-email-markwalters1009@gmail.com> References: <1485596862-32326-1-git-send-email-markwalters1009@gmail.com> Date: Sun, 12 Feb 2017 23:53:59 +0100 Message-ID: <87vasfhvg8.fsf@flaptop.tomnor.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2017 22:54:32 -0000 Mark Walters writes: > Gnus seems to display application/zip and application/tar by > default. This doesn't seem desirable so we override it. > > We only override if the user has not customized > mm-inline-override-types themselves. But what will we do if the user has not customized it because she /wants/ to display all possible things inline. I have not seen that this patch is merged into master, and probably, when I have learned about this variable, I think maybe it's better not to do it in the notmuch code. I wrote this on on the wiki (on my machine). Is it maybe an option to have it written down there so it is spoken out, and can be linked to at next complaint. What do you think, should I push it? I inserted this as a new level 2 heading under the Controlling external handlers for attachements heading. Is that bad? Maybe it breaks links... 1 file changed, 19 insertions(+) emacstips.mdwn | 19 +++++++++++++++++++ modified emacstips.mdwn @@ -26,6 +26,25 @@ adding a .mailcap file in your home directory. Here is an example: application/pdf; /usr/bin/mupdf %s; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf application/x-pdf; /usr/bin/mupdf %s; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf +## Overriding inline display of certain attachments + +If you are annoyed by notmuch showing large attachments like zip files +with images, you can override the behavior by setting the +mm-inline-override-types variable like this: + + (setq mm-inline-override-types + (cons "application/zip" mm-inline-override-types)) + +This will prevent the default display of the mime types specified. If +you would like to make sure that *no* application-ish attachments +tries to be displayed, then set the variable like this: + + (setq mm-inline-override-types + (cons "application/*" mm-inline-override-types)) + +Do this in any file that loads when emacs load, like in your `.emacs` +or `.notmuch` file. Also note that this is an emacs user option. + ## Overwriting the sender address If you want to always use the same sender address, then the following Happy mailing -- Tomas