From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65248 Path: news.gmane.org!not-for-mail From: "Georg C. F. Greve" Newsgroups: gmane.emacs.gnus.general Subject: Proper way to handle group for mairix searches? Date: Tue, 25 Sep 2007 16:22:30 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="20070925162230+0200-234386019121711509123854758"; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1190730300 6508 80.91.229.12 (25 Sep 2007 14:25:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2007 14:25:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13760@lists.math.uh.edu Tue Sep 25 16:24:55 2007 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 1IaBL0-0002TD-Ae for ding-account@gmane.org; Tue, 25 Sep 2007 16:24:34 +0200 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 1IaBK6-0003hN-FC; Tue, 25 Sep 2007 09:23:38 -0500 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 1IaBK4-0003h3-Fh for ding@lists.math.uh.edu; Tue, 25 Sep 2007 09:23:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IaBJx-00019p-RC for ding@lists.math.uh.edu; Tue, 25 Sep 2007 09:23:36 -0500 Original-Received: from gadolin.fsfeurope.org ([195.176.254.152]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IaBJp-0003ze-00 for ; Tue, 25 Sep 2007 16:23:21 +0200 Original-Received: by gadolin.fsfeurope.org (Postfix, from userid 10) id 7734247D3D1; Tue, 25 Sep 2007 16:22:58 +0200 (CEST) Original-Received: by cerebro.fsfeurope.org (Postfix, from userid 500) id 0BC5EE2F4F; Tue, 25 Sep 2007 16:22:30 +0200 (CEST) User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65248 Archived-At: --20070925162230+0200-234386019121711509123854758 Content-Type: multipart/mixed; boundary="20070925162230+0200-44813182-155053901114781667" --20070925162230+0200-44813182-155053901114781667 Hi all, I've been using mairix for my mail search recently, because it has the advantage of rather fast indexing and very fast, yet powerful search. It functions by copying the matching articles to a folder, for which various formats are available, with maildir as the default. So from Gnus point of view, there is a maildir folder that changes its contents entirely based on the output of mairix. What I want Gnus to do is to forget about the old status of the folder, and open it with the new results without checking for new mail or anything else to slow it down. The best way I found so far was a combination of (gnus-group-quick-select-group 0 mairix-results-group) (gnus-summary-reselect-current-group t t) (see below) but this does not work perfectly. I see zombies in the Summary and Gnus occasionally seems semi-confused about the group. Here are my questions: a) Can someone tell me how to do this "properly"? b) Is there a way to select one of the articles on its Message-ID quickly? Thanks for any help you may be able to provide. Regards, Georg --20070925162230+0200-44813182-155053901114781667 Content-Type: application/emacs-lisp Content-Disposition: inline (defvar mairix-results-group "nnmaildir:mairix") (defun mairix-result-evaluate (string) (setq mmatches (string-to-number (substring string 7 -8))) (if (eq mmatches 0) (message "Mairix returned no matches, sorry.") (message "Mairix returned %d matches." mmatches) (gnus-group-quick-select-group 0 mairix-results-group) (gnus-summary-reselect-current-group t t))) (defun mairix-search (string) "Uses mairix to search through my mail, replacing current search results." (interactive "MMairix search: ") (mairix-result-evaluate (shell-command-to-string (concat "mairix " string)))) --20070925162230+0200-44813182-155053901114781667 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =2D-=20 Georg C. F. Greve Free Software Foundation Europe (http://fsfeurope.org) Join the Fellowship and protect your freedom! (http://www.fsfe.org) What everyone should know about DRM (http://DRM.info) --20070925162230+0200-44813182-155053901114781667-- --20070925162230+0200-234386019121711509123854758 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQCVAwUBRvkZpik9sUy32wQcAQLUKgP8DZ+S4AkFzFXhmijA/zDu81m/8caC7act NBbUdrOf9/pbVzwSEw0KBTZaMsGz9/+jmfvN/tvreH9smZQhsW0IWNdz9/YCxDk1 Dmljd5mL57SF+UYKc+qpDNCBZQDfqrCD3ZNTKNn5sphkVjMf6AXbV+FSISnCKx1g dhleALfQoAQ= =gWvd -----END PGP SIGNATURE----- --20070925162230+0200-234386019121711509123854758--