From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4254 Path: main.gmane.org!not-for-mail From: Erik Selberg Newsgroups: gmane.emacs.gnus.general Subject: Re: Found No Mail! Date: Mon, 04 Dec 1995 09:24:48 PST Message-ID: <199512041724.JAA12937@wally.cs.washington.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145026 28995 80.91.224.250 (20 Oct 2002 20:17:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:17:06 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from moonbase_v.moonvalley.com (moonbase_v.moonvalley.com [204.212.162.1]) by miranova.com (8.6.11/8.6.9) with ESMTP id KAA25644 for ; Mon, 4 Dec 1995 10:07:31 -0800 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by moonbase_v.moonvalley.com (8.6.12/8.6.9) with ESMTP id JAA13029 for ; Mon, 4 Dec 1995 09:55:46 -0800 Original-Received: from wally.cs.washington.edu (wally.cs.washington.edu [128.95.2.122]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Mon, 4 Dec 1995 18:24:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by wally.cs.washington.edu (8.7.2/7.2ws+) with SMTP id JAA12937 for ; Mon, 4 Dec 1995 09:24:50 -0800 (PST) Original-To: ding@ifi.uio.no Xref: main.gmane.org gmane.emacs.gnus.general:4254 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4254 As I alluded in a previous post, it seems that sep. v17 is having problems when a spool file exists, but is zero-length. Appended is a patch which seems to be working. The gist is that if the buffer is zero-length, continue anyway. Continuing just means entering a while loop which quits upon (eobp), so it's a no-op; we just don't hit the "Found No Mail!" error. Incidentally, perhaps the "Found No Mail!" error should be renamed to something more appropriate, such as "Error, unknown format! (possible corrupted)." I don't think it's appropriate that ding report an error when the spool file is zero-length. *** nnmail.el Mon Dec 4 09:09:19 1995 --- nnmail.el~ Mon Dec 4 08:52:56 1995 *************** *** 477,485 **** (defun nnmail-process-unix-mail-format (func) (let ((delim (concat "^" rmail-unix-mail-delimiter)) start message-id content-length end skip head-end) ! (if (and (not (eobp)) ! (not (and (re-search-forward delim nil t) ! (goto-char (match-beginning 0))))) ;; Possibly wrong format? (error "Found no mail!") ;; Carry on until the bitter end. --- 477,485 ---- (defun nnmail-process-unix-mail-format (func) (let ((delim (concat "^" rmail-unix-mail-delimiter)) start message-id content-length end skip head-end) ! (if (not (and (re-search-forward delim nil t) ! (goto-char (match-beginning 0)))) ;; Possibly wrong format? (error "Found no mail!") ;; Carry on until the bitter end.