From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49335 Path: main.gmane.org!not-for-mail From: letters@hotpop.com (Jari Aalto+mail.emacs) Newsgroups: gmane.emacs.gnus.general Subject: [patch] nnml.el - improved error message for corrupted files Date: Fri, 17 Jan 2003 18:26:20 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042820569 4477 80.91.224.249 (17 Jan 2003 16:22:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 16:22:49 +0000 (UTC) Keywords: possibly,format,error Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ZZGC-00018F-00 for ; Fri, 17 Jan 2003 17:22:24 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18ZZGf-0006Nj-00; Fri, 17 Jan 2003 10:22:53 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 17 Jan 2003 10:23:50 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA16627 for ; Fri, 17 Jan 2003 10:23:39 -0600 (CST) Original-Received: (qmail 28566 invoked by alias); 17 Jan 2003 16:22:38 -0000 Original-Received: (qmail 28561 invoked from network); 17 Jan 2003 16:22:38 -0000 Original-Received: from smtp2.sooninternet.net (212.246.17.84) by 66.230.238.6 with SMTP; 17 Jan 2003 16:22:38 -0000 Original-Received: from poboxes.com (ip10-102.dial.tpo.fi [212.246.177.102]) by smtp2.sooninternet.net (8.10.2+Sun/8.10.2) with ESMTP id h0HGOcA12427 for ; Fri, 17 Jan 2003 18:24:40 +0200 (EET) Original-To: ding@gnus.org X-Sender-Info: Emacs resources http://tiny-tools.sourceforge.net/ http://poboxes.com/jari.aalto ICQ 'jari-aalto' 82313129 PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/20.7 (i386-*-nt5.0.2195) (i386-*-nt5.0.2195) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49335 Kindly add this to the core gnus, it gives better diagnostics. Jari *** nnmail.el.6.56 Fri Jan 17 18:20:04 2003 --- nnmail.el Fri Jan 17 18:21:04 2003 *************** *** 786,792 **** (if (not (and (re-search-forward "^From " nil t) (goto-char (match-beginning 0)))) ;; Possibly wrong format? ! (error "Error, unknown mail format! (Possibly corrupted.)") ;; Carry on until the bitter end. (while (not (eobp)) (setq start (point) --- 786,793 ---- (if (not (and (re-search-forward "^From " nil t) (goto-char (match-beginning 0)))) ;; Possibly wrong format? ! (error "Error, unknown mail format! (Possibly corrupted.) `%s'" ! (or (buffer-file-name) (buffer-name))) ;; Carry on until the bitter end. (while (not (eobp)) (setq start (point) -- http://tiny-tools.sourceforge.net/ Swatch @time http://www.ryanthiessen.com/swatch/resources.htm Convert @time http://www.mir.com.my/iTime/itime.htm