From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66204 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmairix and huge search results Date: Mon, 28 Jan 2008 20:49:32 +0100 Message-ID: <87fxwh688j.fsf@arcor.de> References: <87lk6aownv.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1201549859 19757 80.91.229.12 (28 Jan 2008 19:50:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 19:50:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14695@lists.math.uh.edu Mon Jan 28 20:51:20 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJa0l-00077r-5Y for ding-account@gmane.org; Mon, 28 Jan 2008 20:51:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JJZzU-0006jo-23; Mon, 28 Jan 2008 13:50:00 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JJZzS-0006jR-1n for ding@lists.math.uh.edu; Mon, 28 Jan 2008 13:49:58 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JJZzL-0000qA-TN for ding@lists.math.uh.edu; Mon, 28 Jan 2008 13:49:57 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JJZzN-0004lo-00 for ; Mon, 28 Jan 2008 20:49:53 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JJZzF-0005MS-6n for ding@gnus.org; Mon, 28 Jan 2008 19:49:45 +0000 Original-Received: from dslb-082-083-051-158.pools.arcor-ip.net ([82.83.51.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2008 19:49:45 +0000 Original-Received: from de_bb by dslb-082-083-051-158.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jan 2008 19:49:45 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-082-083-051-158.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:lfByUBm+8oRLvyhtKiCz4zNZzOw= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66204 Archived-At: --=-=-= Tassilo Horn 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=nnmairix-xref-patch.diff --- ../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) --=-=-=--