From: David <de_bb@arcor.de>
To: ding@gnus.org
Subject: Re: nnmairix and huge search results
Date: Mon, 28 Jan 2008 20:49:32 +0100 [thread overview]
Message-ID: <87fxwh688j.fsf@arcor.de> (raw)
In-Reply-To: <87lk6aownv.fsf@member.fsf.org>
[-- Attachment #1: Type: text/plain, Size: 490 bytes --]
Tassilo Horn <tassilo@member.fsf.org> writes:
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
> replace-regexp-in-string("[ ]zz_mairix-searches-1:[0-9]+" " searches:57788" nil t t)
Thanks for the backtrace. The code stumbled upon a message with no Xref
header. I wouldn't know why this happens for many search results - seems
more like a coincidence. Anyway, please apply the attached patch to a
current nnmairix.el (v0.4) and tell me if it fixes the problem.
-David
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnmairix-xref-patch.diff --]
[-- Type: text/x-diff, Size: 732 bytes --]
--- ../nnmairix_0.4.el 2008-01-28 20:36:23.000000000 +0100
+++ nnmairix.el 2008-01-28 20:30:56.000000000 +0100
@@ -1025,10 +1025,10 @@
(when corr
(setq article (+ (mail-header-number cur) numc))
(mail-header-set-number cur article))
- (setq xref (replace-regexp-in-string
- (format "[ \t]%s:[0-9]+" backendgroup)
- (format " %s:%d" mairixgroup article)
- (mail-header-xref cur) t t))
+ (setq xref (mail-header-xref cur))
+ (when (and (stringp xref)
+ (string-match (format "[ \t]%s:[0-9]+" backendgroup) xref))
+ (setq xref (replace-match (format " %s:%d" mairixgroup article) t nil xref)))
(mail-header-set-xref cur xref)
(set-buffer buf)
(nnheader-insert-nov cur)
next prev parent reply other threads:[~2008-01-28 19:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 14:24 Tassilo Horn
2008-01-28 19:49 ` David [this message]
2008-01-28 20:15 ` Tassilo Horn
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=87fxwh688j.fsf@arcor.de \
--to=de_bb@arcor.de \
--cc=ding@gnus.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).