From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Problems with a mailbox in Rmail format Date: Fri, 25 Aug 2017 16:29:25 +0300 Message-ID: <83k21r7p3e.fsf@gnu.org> References: <87fucf6bbm.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1503668233 32275 195.159.176.226 (25 Aug 2017 13:37:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 13:37:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 25 15:37:09 2017 Return-path: Envelope-to: geh-help-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 1dlEnG-0007x8-7L for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 15:37:02 +0200 Original-Received: from localhost ([::1]:53380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlEnN-0000Zo-06 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 09:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlEgQ-0003bK-1o for help-gnu-emacs@gnu.org; Fri, 25 Aug 2017 09:29:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlEgM-0005pX-Ts for help-gnu-emacs@gnu.org; Fri, 25 Aug 2017 09:29:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlEgM-0005pQ-Qf for help-gnu-emacs@gnu.org; Fri, 25 Aug 2017 09:29:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlEgK-0002Gz-Ak for help-gnu-emacs@gnu.org; Fri, 25 Aug 2017 09:29:54 -0400 In-reply-to: <87fucf6bbm.fsf@gmail.com> (message from Pascal Quesseveur on Fri, 25 Aug 2017 15:12:13 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114096 Archived-At: > From: Pascal Quesseveur > Date: Fri, 25 Aug 2017 15:12:13 +0200 > > I have saved some messages from Gnus to a mailbox in Rmail > format. When I open the file in rmail-mode messages are not displayed > as expected: they are displayed in full, no headers are removed, MIME > parts are not handled, ... It seems to me problems come from the fact > mail headers in the mailbox are capitalized and rmail-mode search and > match operatinos are case dependant. I have set an advice around > (rmail-show-message-1) to set case-fold-search to t and problems > disapeared. > > I am wondering if the problem can come from my configuration or if it > is an error in my version of Emacs (checked with Emacs 24.3.1 and > 24.5.1.). case-fold-search is t by default. Did you change the default? Which operation in rmail-show-message-1 depends on letter-case of the headers? In general, Rmail uses mail-fetch-field to get the headers, and tha function explicitly binds case-fold-search to t.