From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31590: 25.1; malformed email address in RMAIL Date: Fri, 25 May 2018 11:26:02 +0300 Message-ID: <83d0xk9m5h.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1527236889 10572 195.159.176.226 (25 May 2018 08:28:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 May 2018 08:28:09 +0000 (UTC) Cc: 31590@debbugs.gnu.org To: Olivier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 25 10:28:04 2018 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 1fM84x-0002dY-SE for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2018 10:28:03 +0200 Original-Received: from localhost ([::1]:42442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM875-0002HF-0B for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2018 04:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM842-0000OV-OS for bug-gnu-emacs@gnu.org; Fri, 25 May 2018 04:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM83y-0003cw-Qm for bug-gnu-emacs@gnu.org; Fri, 25 May 2018 04:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM83y-0003cc-MQ for bug-gnu-emacs@gnu.org; Fri, 25 May 2018 04:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fM83y-0008Lp-BI for bug-gnu-emacs@gnu.org; Fri, 25 May 2018 04:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 May 2018 08:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31590-submit@debbugs.gnu.org id=B31590.152723676432035 (code B ref 31590); Fri, 25 May 2018 08:27:02 +0000 Original-Received: (at 31590) by debbugs.gnu.org; 25 May 2018 08:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:47336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM832-0008Kd-4r for submit@debbugs.gnu.org; Fri, 25 May 2018 04:26:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM82z-0008K8-8Q for 31590@debbugs.gnu.org; Fri, 25 May 2018 04:26:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM82p-0003Gf-4A for 31590@debbugs.gnu.org; Fri, 25 May 2018 04:25:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM82p-0003Gb-0h; Fri, 25 May 2018 04:25:51 -0400 Original-Received: from [176.228.60.248] (port=1444 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fM82o-0001Cq-D3; Fri, 25 May 2018 04:25:50 -0400 In-reply-to: (message from Olivier on Fri, 25 May 2018 10:54:14 +0700) 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:146541 Archived-At: > From: Olivier > Date: Fri, 25 May 2018 10:54:14 +0700 > > When trying to read the new messages in RMAIL, I get the error > "Malformed email address" on one message (it did happen in the past, > once every 2 years maybe). As a consequence, messages following the > malformed one cannot be read and no message is deleted from the INBOX, > resulting in reading the same messages over and over again. > > This time I managed to identify and keep a copy of the > concerned message. > > I am reading my mail through POP3, with movemail installed as part of > mailutils-3.1.1_3. > > Emacs installation is pretty standard, build from FreeBSD ports. > > Trying to read the same message with Thunderbird (POP3 and IMAP) did not > give any error message. > > I have been using Emacs for over 30 years and I have always been > completely happy with it, but that bug bugs me. > > Attached is a copy of the message. Thank you for your report. Trying to read the message you attached gave me a different error: Invalid mbox file If I use the 'C-u g' command in Rmail to get new mail messages from that file, I get this error message: Message is not a valid RFC2822 message The message you attached is indeed invalid for the mbox format: it doesn't start with a "From
" line, which is mandatory for the mbox format used by Rmail. Once I fixed that (by adding the missing "From" line manually), Rmail could read and display that message just fine. When some email message in the received mbox file is invalid, Emacs cannot continue processing email, because doing so could completely ruin your inbox. Emacs expects you to manually repair the incoming mbox file, and then try again. So I think Emacs does TRT in this case. So the problem with malformed email address cannot be reproduced with this message. I tried both Emacs 25.1 and the current release candidate of Emacs 26.1, and they both show the error messages described above, not the one you reported. From your bug report, I see that the "Malformed email address" message comes from the movemail program, not from Emacs. I don't find such a message in the version of movemail we distribute with Emacs, and since you say you have Mailutils installed, I guess you should report this problem to the Mailutils developers.