From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Olum Newsgroups: gmane.emacs.bugs Subject: bug#27203: 25.2; rmail doesn't handle mime if rmail-mime-attachment-dirs-alist gives no valid destination Date: Fri, 02 Jun 2017 17:09:15 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496437813 3843 195.159.176.226 (2 Jun 2017 21:10:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Jun 2017 21:10:13 +0000 (UTC) Cc: kdo@cosmos.phy.tufts.edu To: 27203@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 02 23:10:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGtpf-0000aJ-3S for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jun 2017 23:10:07 +0200 Original-Received: from localhost ([::1]:51453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGtpk-0007hR-2D for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jun 2017 17:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGtpe-0007gC-Tv for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGtpb-0001Y0-OC for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGtpb-0001Xs-LQ for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dGtpa-0000XU-K7 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Olum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2017 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14964377752036 (code B ref -1); Fri, 02 Jun 2017 21:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jun 2017 21:09:35 +0000 Original-Received: from localhost ([127.0.0.1]:51966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGtp9-0000Wl-5k for submit@debbugs.gnu.org; Fri, 02 Jun 2017 17:09:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGtp7-0000WY-8A for submit@debbugs.gnu.org; Fri, 02 Jun 2017 17:09:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGtp0-0001CR-Mn for submit@debbugs.gnu.org; Fri, 02 Jun 2017 17:09:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dGtp0-0001CE-JX for submit@debbugs.gnu.org; Fri, 02 Jun 2017 17:09:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGtoz-0007fY-7s for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:09:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGtow-000176-1H for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:09:25 -0400 Original-Received: from cosmos.phy.tufts.edu ([130.64.84.253]:41624) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dGtov-0000z5-TL for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 17:09:21 -0400 Original-Received: from kdo by cosmos.phy.tufts.edu ([local]:local) with local id 1dGtop-000270-ST - Using Exim-4.84 (MandrivaLinux) MTA (return-path ); Fri, 02 Jun 2017 17:09:15 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133173 Archived-At: The variable rmail-mime-attachment-dirs-alist gives a list of directories based on content-type to use as the default detachment location. If this variable has no matching entry for the content type of something in a message, or no directories associated with that type exist, rmail will not decode the MIME at all. It prints the message "MIME decoding failed: (wrong-type-argument stringp nil)", but this is often immediately overwritten by message of the form "Showing message 1...", so that you don't even know that something has failed. To reproduce: emacs -Q M-x rmail set the variable rmail-mime-attachment-dirs-alist to nil or something like '((".*" "~/nosuchdirectory")) Go to a new MIME message See undecoded MIME Look in *Messages* buffer for error message. This happens because directory is set to nil in rmail-mime-insert-bulk. It passes the nil to file-name-as-directory, causing the error. The simplest fix would be to set directory to something like "nodirectory" when rmail-mime-insert-bulk fails to find an existing directory to use. In GNU Emacs 25.2.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2017-05-29 built on neptune Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 16.04.2 LTS Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LC_ALL: C value of $LANG: en_US.UTF-8 locale-coding-system: nil Major mode: Messages Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: No previous nondeleted message Showing message 2... MIME decoding failed: (wrong-type-argument stringp nil) Showing message 2...done Load-path shadows: None found. Features: (shadow sort mail-extr dabbrev emacsbug sendmail cl-extra rmailkwd cus-edit cus-start cus-load wid-edit thingatpt rmailmm message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 110595 13424) (symbols 48 21548 0) (miscs 40 132 166) (strings 32 20017 2892) (string-bytes 1 546266) (vectors 16 13328) (vector-slots 8 444689 5903) (floats 8 175 176) (intervals 56 479 145) (buffers 976 22) (heap 1024 16339 714))