# HG changeset patch # User Chong Yidong # Date 1180325490 0 # Node ID 923182f9ab47ddeed5e79f71dd6fd07ee934908d # Parent 1ee3640a52982a6122c439a773d0cc928dbb729c (message-narrow-to-headers-or-head): Ignore mail-header-separator in the body. diff -r 1ee3640a5298 -r 923182f9ab47 lisp/gnus/message.el --- a/lisp/gnus/message.el Mon May 28 04:11:07 2007 +0000 +++ b/lisp/gnus/message.el Mon May 28 04:11:30 2007 +0000 @@ -2225,14 +2225,12 @@ (widen) (narrow-to-region (goto-char (point-min)) - (cond - ((re-search-forward - (concat "^" (regexp-quote mail-header-separator) "\n") nil t) - (match-beginning 0)) - ((search-forward "\n\n" nil t) - (1- (point))) - (t - (point-max)))) + (if (re-search-forward (concat "\\(\n\\)\n\\|^\\(" + (regexp-quote mail-header-separator) + "\n\\)") + nil t) + (or (match-end 1) (match-beginning 2)) + (point-max))) (goto-char (point-min))) (defun message-news-p ()