From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#2196: 23.0.90; rmail not reading email Date: Mon, 09 Feb 2009 22:35:44 -0500 Message-ID: References: <9489-Thu05Feb2009083017+0000-jpff@codemist.co.uk> Reply-To: Glenn Morris , 2196@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234238689 327 80.91.229.12 (10 Feb 2009 04:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 04:04:49 +0000 (UTC) Cc: 2196@emacsbugs.donarmstrong.com, rms@gnu.org To: jpff Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 05:06:02 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWjsE-0006yk-Qn for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 05:05:54 +0100 Original-Received: from localhost ([127.0.0.1]:54414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWjqv-0000GE-05 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2009 23:04:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWjqV-0008QC-A3 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 23:03:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWjqT-0008PF-Qd for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 23:03:38 -0500 Original-Received: from [199.232.76.173] (port=55096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWjqT-0008Oo-4a for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 23:03:37 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40122) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWjqS-0000WN-1w for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 23:03:36 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A43X32005605; Mon, 9 Feb 2009 20:03:33 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1A3j4SM000962; Mon, 9 Feb 2009 19:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Rmail Maintainers Resent-Date: Tue, 10 Feb 2009 03:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2196 X-Emacs-PR-Package: emacs,rmail X-Emacs-PR-Keywords: Original-Received: via spool by 2196-submit@emacsbugs.donarmstrong.com id=B2196.123423706932049 (code B ref 2196); Tue, 10 Feb 2009 03:45:04 +0000 Original-Received: (at 2196) by emacsbugs.donarmstrong.com; 10 Feb 2009 03:37:49 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A3beW5032043; Mon, 9 Feb 2009 19:37:41 -0800 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LWjPU-0002Gy-5T; Mon, 09 Feb 2009 22:35:44 -0500 X-Spook: COSCO Syria csim Noriega HAMASMOIS cryptographic Abu X-Ran: X|`P;`)c List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25097 Archived-At: retitle 2196 movemail.c, pop, and mbox severity 2196 minor stop jpff wrote: > I think the culprit is movemail in lib-src Indeed. The specific bit you cited is not a problem (I think), but the functions mbx_delimit_begin and mbx_delimit_end are Babyl-specific, and so movemail was totally broken for the retrieval of mail via pop. That's rather bad. I've installed a fix that just prints >From movemail at the start of each message. I think this is enough to make it work. It would be nice to add the time: >From movemail Mon Feb 9 14:51:58 2009 A further patch for this is attached. I don't know how correct/portable the code is though (?). *** movemail.c 10 Feb 2009 03:30:41 -0000 1.98 --- movemail.c 10 Feb 2009 03:31:20 -0000 *************** *** 60,65 **** --- 60,67 ---- #include #include #include + #include + #include #include #ifdef HAVE_UNISTD_H *************** *** 923,929 **** mbx_delimit_begin (mbf) FILE *mbf; { ! if (fputs ("From movemail\n", mbf) == EOF) return (NOTOK); return (OK); } --- 925,940 ---- mbx_delimit_begin (mbf) FILE *mbf; { ! time_t now; ! struct tm *ltime; ! char fromline[40] = "From movemail "; ! ! now = time (NULL); ! ltime = localtime (&now); ! ! strcat (fromline, asctime (ltime)); ! ! if (fputs (fromline, mbf) == EOF) return (NOTOK); return (OK); }