Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Bug? Extra whitespace in split subject lines in summary buffer
Date: Fri, 16 Jun 2006 13:27:30 +0900	[thread overview]
Message-ID: <b4mzmgdend9.fsf@jpl.org> (raw)
In-Reply-To: <m3ejxq82ge.fsf@kfs-l.imdomain.dk>

>>>>> In <m3ejxq82ge.fsf@kfs-l.imdomain.dk> Kim F. Storm wrote:

> I use Gnus from emacs CVS.

> If an article header contains a split subject line like this (where the second
> line is indented by a TAB):

> Subject: patch: bugfixes in rcirc.el (rcirc-default-user-full-name,
> 	rcirc-process-list)

> the summary buffer replaces the TAB by 3-4 spaces, like this:

>     31-May [  84: Daniel Brockman     ] patch: bugfixes in rcirc.el (rcirc-default-user-full-name,   rcirc-process-list)

I often look at such ones in the nntp groups.  It seems to be
due to the INN server, that replaces LWSPs with a couple of
spaces when generating NOV databases.  I believe it never
happens with the other back ends which generate NOV, such as
nnml.  Though it might sometimes happen between ASCII words and
RFC2047-encoded words.

> Is this intentional?

Maybe yes, in the sense that Gnus assumes that data in NOV have
already been cooked, since the summary lines generation should
be fast anyway.  It will be better that Gnus does nothing with
data in NOV if possible, except for RFC2047-decoding.

> Is there any way to fix it.

There are several ways to do that if you don't mind that it
might slow Gnus.  Here are two examples:

;; 1
(setq gnus-decode-encoded-word-function
      (byte-compile
       (lambda (string)
	 (replace-regexp-in-string
	  "  +" " "
	  (mail-decode-encoded-word-string string)))))

;; 2
(eval-after-load "gnus-sum"
  '(progn
     (setcar
      (cdr (assq ?S gnus-summary-line-format-alist))
      `(replace-regexp-in-string
	"  +" " "
	,(macroexpand '(mail-header-subject gnus-tmp-header))))
     (gnus-update-format-specifications t 'summary)))

> I tried setting gnus-simplify-subject-functions, but it has no effect.

It is used for other purposes: to test whether two subjects are
alike, for instance.

  reply	other threads:[~2006-06-16  4:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-15 22:43 Kim F. Storm
2006-06-16  4:27 ` Katsumi Yamaoka [this message]
2006-06-16  9:41   ` Kim F. Storm
2006-06-16 15:40     ` Adam Sjøgren

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=b4mzmgdend9.fsf@jpl.org \
    --to=yamaoka@jpl.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).