Gnus development mailing list
 help / color / mirror / Atom feed
From: <jari.aalto@poboxes.com>
Subject: 0.13: (patch), better crashbox message...
Date: 07 Nov 1997 20:40:08 +0200	[thread overview]
Message-ID: <tbaffgmttj.fsf@pegasus.tele.nokia.fi> (raw)

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]


	Hi,

	I was getting lots of crash box messages (invalid format)
	and I thought the following patch would make spotting
	errors abit easier to regular user.

	jari


[-- Attachment #2: nnmail.diff --]
[-- Type: application/octet-stream, Size: 1421 bytes --]

Prereq: 1.13

===================================================================
RCS file: RCS/nnmail.el,v
retrieving revision 1.13
retrieving revision 1.13.1.1
diff -u -r1.13 -r1.13.1.1
--- 1.13	1997/11/07 13:37:39
+++ 1.13.1.1	1997/11/07 13:47:02
@@ -870,12 +870,18 @@
 
 (defun nnmail-process-unix-mail-format (func artnum-func)
   (let ((case-fold-search t)
-	start message-id content-length end skip head-end)
+	(delim "^From ")
+	start message-id content-length end skip head-end
+	)
     (goto-char (point-min))
-    (if (not (and (re-search-forward "^From " nil t)
+    (if (not (and (re-search-forward delim nil t)
 		  (goto-char (match-beginning 0))))
 	;; Possibly wrong format?
-	(error "Error, unknown mail format! (Possibly corrupted.)")
+	(progn
+	  (pop-to-buffer (current-buffer)) ;Show to user too
+	  (error "Error, unknown mail format! (Possibly corrupted `%s' .)"
+		 delim)
+	  )
       ;; Carry on until the bitter end.
       (while (not (eobp))
 	(setq start (point)
@@ -960,7 +966,11 @@
     (if (not (and (re-search-forward delim nil t)
 		  (forward-line 1)))
 	;; Possibly wrong format?
-	(error "Error, unknown mail format! (Possibly corrupted.)")
+	(progn
+	  (pop-to-buffer (current-buffer)) ;Show to user too
+	  (error "Error, unknown mail format! (Possibly corrupted `%s' .)"
+		 delim)
+	  )
       ;; Carry on until the bitter end.
       (while (not (eobp))
 	(setq start (point))

                 reply	other threads:[~1997-11-07 18:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tbaffgmttj.fsf@pegasus.tele.nokia.fi \
    --to=jari.aalto@poboxes.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).