From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65364 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.gnus.general Subject: Re: released mairix backend nnmairix.el Date: Fri, 05 Oct 2007 13:00:56 +0100 Message-ID: <871wc9zs7b.fsf@bzg.ath.cx> References: <87ir5mvnah.fsf@bzg.ath.cx> <87d4vukdcc.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191582149 29572 80.91.229.12 (5 Oct 2007 11:02:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 11:02:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13875@lists.math.uh.edu Fri Oct 05 13:02:25 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 1Idkwe-00006Q-E8 for ding-account@gmane.org; Fri, 05 Oct 2007 13:02:12 +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 1Idkvr-0000mF-Cf; Fri, 05 Oct 2007 06:01:23 -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 1Idkvo-0000ls-C8 for ding@lists.math.uh.edu; Fri, 05 Oct 2007 06:01:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Idkvh-0001Ow-RU for ding@lists.math.uh.edu; Fri, 05 Oct 2007 06:01:20 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.177]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IdkvZ-0008Ez-00 for ; Fri, 05 Oct 2007 13:01:05 +0200 Original-Received: by wa-out-1112.google.com with SMTP id j4so595963wah for ; Fri, 05 Oct 2007 04:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=XR+e4MCnXIDIWimTEbf2xUfTF0R0aqfZQFQ+OVWgBQY=; b=EHQ6hz/HuGxrAcfHYvLJ+8ZhP2G2ZOHVs0jOxQ6n2FIbcRmivyf4tsUr/+vAs8Dd0W/NWRWvrRfT69nwV8Clu3XxVq2yQG5ZCUduT+Wtq/lXD10yc4DOHEor4KUoHEh34LL8JwWHUziDmsfX1ETVbm/EA1/vh+wdq4iJ1go/D88= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=NAvOfzdlkHSq50OSeo7iVbbA7ON5a12E4udKl2ZknWulzXojcjrHAzXDMKZppJLNxRWq/GMnSuJHLeBWqpj0u1/mc3OQ8v0XszTDyWM3R/VZk7fNgcsx/EMJZP31fZLlSBId9Yk/e7dDSHvqhpnVdrNSmrvDmmkVfoPZz89oa40= Original-Received: by 10.114.103.1 with SMTP id a1mr7193867wac.1191582060683; Fri, 05 Oct 2007 04:01:00 -0700 (PDT) Original-Received: from bzg.ath.cx ( [131.227.230.31]) by mx.google.com with ESMTPS id c4sm6232995nfi.2007.10.05.04.00.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2007 04:00:58 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 994471579D0; Fri, 5 Oct 2007 13:00:56 +0100 (BST) In-Reply-To: (David's message of "Fri, 05 Oct 2007 11:46:11 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65364 Archived-At: David writes: > (setq gnus-auto-subscribed-groups > "^\\(nnml\\|nnfolder\\|nnmbox\\|nnmh\\|nnbabyl\\|nnmaildir\\).*\ > :\\([^z]\\|z$\\|\\z[^z]\\|zz$\\|zz[^_]\\|zz_$\\).*") Done that, works smoothly, thanks. > Just set your nnmairix groups to a lower group level (using 'S l' in > the group buffer), so that it isn't updated when you hit 'g'. A level > of '4' or '5' should do the trick (it depends on your value of > gnus-activate-level). Okay, will do that as well. >>What do you think? > > Well, you can already create queries interactively based on the current > article using "S g" in summary mode. Tyring to build a query on the body with S g b failed with this backtrace (other conditions seem okay so far): Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("[^-.@& [:alnum:]]" nil) (while (string-match "[^-.@& [:alnum:]]" header) (setq header (replace-match "" t t header))) (if (> emacs-major-version 20) (while (string-match "[^-.@& [:alnum:]]" header) (setq header ...)) (while (string-match "[[]{}:<>]" header) (setq header ...))) (save-excursion (gnus-summary-toggle-header 1) (while (not achar) (message "Query (f=From,t=To,c=Cc,a=To or Cc,s=subject,b=body,m=Msgid): ") (setq achar ...) (when ... ...)) (set-buffer gnus-article-buffer) (setq header nil) (when (setq cq ...) (setq header ...)) (if (> emacs-major-version 20) (while ... ...) (while ... ...)) (while (string-match "[-& ]" header) (setq header ...)) (setq header (read-string ... header)) (push (concat ... ":" header) query) (setq finished (not ...) achar nil)) (while (not finished) (save-excursion (gnus-summary-toggle-header 1) (while ... ... ... ...) (set-buffer gnus-article-buffer) (setq header nil) (when ... ...) (if ... ... ...) (while ... ...) (setq header ...) (push ... query) (setq finished ... achar nil))) (let ((char-header ...) (server ...) query achar header finished group threads cq) (when (or ... ...) (error "No article or summary buffer.")) (when (not server) (error "No nnmairix server found for back end %s:%s" ... ...)) (while (not finished) (save-excursion ... ... ... ... ... ... ... ... ... ...)) (setq threads (y-or-n-p "Include whole threads? ")) (setq group (read-string "Group name: ")) (set-buffer gnus-summary-buffer) (message "Creating group %s on server %s with query %s." group (gnus-method-to-server server) (mapconcat ... query " ")) (nnmairix-create-search-group server group query threads)) nnmairix-create-search-group-from-message() call-interactively(nnmairix-create-search-group-from-message) > However, that's only for creating permanent nnmairix groups but could > be easily extended. Your suggestion would be even more flexible. I > definitely will look into that. Thanks very much! I don't know if there are many people using mairix out there but I switched from swish-e (+nnir) to this and it's really faster. Good to have nnmairix.el around. -- Bastien