Gnus development mailing list
 help / color / mirror / Atom feed
From: Romain Francoise <romain@orebokech.com>
Subject: Re: No Gnus v0.4 / emacs-cvs terribly slowly operating on large nnfolders
Date: Tue, 21 Mar 2006 13:13:43 +0100	[thread overview]
Message-ID: <87bqw0atc8.fsf@pacem.orebokech.com> (raw)
In-Reply-To: <877j6og03d.fsf@catnip.gol.com>

Miles Bader <miles@gnu.org> writes:

> The replacement doesn't seem to do exactly the same thing: [...]

I know, but I think it's correct nonetheless; what we're looking for
here is a header inserted by Gnus in the mbox file, it looks like this:

X-Gnus-Article-Number: 6905   Mon, 20 Mar 2006 22:02:58 +0100

and is inserted like this:

(defun nnfolder-insert-newsgroup-line (group-art)
  (save-excursion
    (goto-char (point-min))
    (unless (search-forward "\n\n" nil t)
      (goto-char (point-max))
      (insert "\n"))
    (forward-char -1)
    (insert (format (concat nnfolder-article-marker "%d   %s\n")
		    (cdr group-art) (message-make-date)))))

So unless there is a historical reason why we need to skip over stuff
between nnfolder-article-marker and the article number, the new code is
correct.

> Also you probably want to regexp-quote nnfolder-article-marker.

Ah yes I had overlooked that, thanks.  Although in that case it wouldn't
change anything (the marker is a plain string and it's not
customizable).

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter




  reply	other threads:[~2006-03-21 12:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20  0:23 Elias Oltmanns
2006-03-20  6:02 ` Daniel Pittman
2006-03-20  9:52   ` Elias Oltmanns
2006-03-20 11:30     ` Daniel Pittman
2006-03-20 15:25       ` Elias Oltmanns
2006-03-20 21:44         ` Romain Francoise
2006-03-20 23:33           ` Elias Oltmanns
2006-03-21 12:29             ` Romain Francoise
2006-03-20 23:36           ` Miles Bader
2006-03-21 12:13             ` Romain Francoise [this message]
2006-03-22  1:07           ` James Cloos

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=87bqw0atc8.fsf@pacem.orebokech.com \
    --to=romain@orebokech.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).