all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rmailout.el barfs on some malformed messages
@ 2006-01-16 10:41 Francesco Potorti`
  0 siblings, 0 replies; only message in thread
From: Francesco Potorti` @ 2006-01-16 10:41 UTC (permalink / raw)


I stumbled upon a malformed (if I am not wrong) MIME message, on which
rmailout.el barfs.  Here is a patch:

diff -pu /opt/e21/lisp/mail/rmailout.el\~ /opt/e21/lisp/mail/rmailout.el
--- /opt/e21/lisp/mail/rmailout.el~	2003-02-04 11:52:35.000000000 +0100
+++ /opt/e21/lisp/mail/rmailout.el	2006-01-16 11:38:02.000000000 +0100
@@ -348,9 +348,10 @@ The optional fourth argument FROM-GNUS i
 						 (mail-fetch-field "sender")
 						 "unknown"))
 		    " " (current-time-string) "\n"))
-	  (if mime-version
-	      (insert "MIME-Version: " mime-version
-		      "\nContent-type: " content-type "\n"))
+	  (when mime-version
+	    (insert "MIME-Version: " mime-version)
+	    (when content-type
+	      (insert "\nContent-type: " content-type "\n")))
 	  ;; ``Quote'' "\nFrom " as "\n>From "
 	  ;;  (note that this isn't really quoting, as there is no requirement
 	  ;;   that "\n[>]+From " be quoted in the same transparent way.)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-16 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-16 10:41 rmailout.el barfs on some malformed messages Francesco Potorti`

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.