From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris 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 20:43:37 -0400 Message-ID: <3i7f0tlx3a.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496450657 4200 195.159.176.226 (3 Jun 2017 00:44:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 00:44:17 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) To: 27203-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 02:44:10 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 1dGxAn-0000n1-K2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 02:44:09 +0200 Original-Received: from localhost ([::1]:51999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGxAt-0000Cn-1x for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jun 2017 20:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGxAh-0000CY-DW for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 20:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGxAg-0002Ov-Mw for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 20:44:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGxAg-0002OW-K5 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 20:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dGxAg-0007Im-E3 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 20:44:02 -0400 Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2017 00:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 27203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 27203@debbugs.gnu.org, rgm@gnu.org, kdo@cosmos.phy.tufts.edu Original-Received: via spool by 27203-done@debbugs.gnu.org id=D27203.149645062628035 (code D ref 27203); Sat, 03 Jun 2017 00:44:02 +0000 Original-Received: (at 27203-done) by debbugs.gnu.org; 3 Jun 2017 00:43:46 +0000 Original-Received: from localhost ([127.0.0.1]:52179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGxAQ-0007I6-Jc for submit@debbugs.gnu.org; Fri, 02 Jun 2017 20:43:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGxAO-0007Hs-Np for 27203-done@debbugs.gnu.org; Fri, 02 Jun 2017 20:43:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGxAI-0001xA-J3 for 27203-done@debbugs.gnu.org; Fri, 02 Jun 2017 20:43:39 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGxAI-0001x4-G9 for 27203-done@debbugs.gnu.org; Fri, 02 Jun 2017 20:43:38 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dGxAI-00013K-1y; Fri, 02 Jun 2017 20:43:38 -0400 X-Spook: First responder blackjack Abu Ghraib Looting Chemical X-Ran: d|nn"1&I?/.w_iJ^a X-Hue: cyan X-Attribution: GM In-Reply-To: (Ken Olum's message of "Fri, 02 Jun 2017 17:09:15 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:133200 Archived-At: Version: 26.1 Thanks, I applied the following: commit 73635ed Date: Fri Jun 2 20:42:01 2017 -0400 Small rmailmm fix (bug#27203) * lisp/mail/rmailmm.el (rmail-mime-insert-bulk): Fall back to HOME if no match in rmail-mime-attachment-dirs-alist. diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index c6b9cfd..1ffd466 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el @@ -817,12 +817,13 @@ directly." (bulk-data (aref tagline 1)) (body (rmail-mime-entity-body entity)) ;; Find the default directory for this media type. - (directory (catch 'directory - (dolist (entry rmail-mime-attachment-dirs-alist) - (when (string-match (car entry) (car content-type)) - (dolist (dir (cdr entry)) - (when (file-directory-p dir) - (throw 'directory dir))))))) + (directory (or (catch 'directory + (dolist (entry rmail-mime-attachment-dirs-alist) + (when (string-match (car entry) (car content-type)) + (dolist (dir (cdr entry)) + (when (file-directory-p dir) + (throw 'directory dir)))))) + "~")) (filename (or (cdr (assq 'name (cdr content-type))) (cdr (assq 'filename (cdr content-disposition))) "noname"))