Gnus development mailing list
 help / color / mirror / Atom feed
From: dsg@linus.mitre.org (David S. Goldberg)
Subject: long-to boring header
Date: 07 Oct 1997 13:39:36 -0400	[thread overview]
Message-ID: <m1b90w5a2w7.fsf@blackbird.mitre.org> (raw)

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

Well, I asked for it and I got it.  Thanks Lars!

Unfortunately, the system that generates these damn To lines splits it
into several To headers, most of which are to long and the long-to
element only gets rid of the first one.  The attached kludge to
gnus-article-hide-header (gnus-art.el) fixes it, but given the recent
discussion about garbage generation and loops in washing, I'm not sure
it's the best way to do this.

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg@mitre.org


[-- Attachment #2: gnus-art.diff --]
[-- Type: application/octet-stream, Size: 1148 bytes --]

*** gnus-art.el.orig	Tue Oct  7 12:16:48 1997
--- gnus-art.el	Tue Oct  7 13:16:04 1997
***************
*** 752,758 ****
  (defun gnus-article-hide-header (header)
    (save-excursion
      (goto-char (point-min))
!     (when (re-search-forward (concat "^" header ":") nil t)
        (gnus-article-hide-text-type
         (progn (beginning-of-line) (point))
         (progn
--- 752,758 ----
  (defun gnus-article-hide-header (header)
    (save-excursion
      (goto-char (point-min))
!     (while (re-search-forward (concat "^" header ":") nil t)
        (gnus-article-hide-text-type
         (progn (beginning-of-line) (point))
         (progn
***************
*** 760,766 ****
  	 (if (re-search-forward "^[^ \t]" nil t)
  	     (match-beginning 0)
  	   (point-max)))
!        'boring-headers))))
  
  ;; Written by Per Abrahamsen <amanda@iesd.auc.dk>.
  (defun article-treat-overstrike ()
--- 760,767 ----
  	 (if (re-search-forward "^[^ \t]" nil t)
  	     (match-beginning 0)
  	   (point-max)))
!        'boring-headers)
!       (forward-char -1))))
  
  ;; Written by Per Abrahamsen <amanda@iesd.auc.dk>.
  (defun article-treat-overstrike ()

             reply	other threads:[~1997-10-07 17:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-07 17:39 David S. Goldberg [this message]
1997-10-12 21:53 ` Lars Magne Ingebrigtsen
1997-10-13 16:46   ` many-to boring header (was Re: long-to boring header) David S. Goldberg
1997-10-24 22:20     ` Lars Magne Ingebrigtsen

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=m1b90w5a2w7.fsf@blackbird.mitre.org \
    --to=dsg@linus.mitre.org \
    --cc=dsg@mitre.org \
    /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).