From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74450 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir r00lz! Date: Sat, 27 Nov 2010 13:53:40 -0500 Message-ID: <8739qmtx6z.fsf@andy.bu.edu> References: <87zksvaw2g.fsf@dod.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290884046 25422 80.91.229.12 (27 Nov 2010 18:54:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2010 18:54:06 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22810@lists.math.uh.edu Sat Nov 27 19:54:02 2010 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.69) (envelope-from ) id 1PMPuH-00025r-8X for ding-account@gmane.org; Sat, 27 Nov 2010 19:53:57 +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 1PMPuG-0006If-8Q; Sat, 27 Nov 2010 12:53:56 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PMPuE-0006IM-O8 for ding@lists.math.uh.edu; Sat, 27 Nov 2010 12:53:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PMPuD-0005Jp-BA for ding@lists.math.uh.edu; Sat, 27 Nov 2010 12:53:54 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PMPuC-0005fp-00 for ; Sat, 27 Nov 2010 19:53:52 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PMPuC-00022Q-D8 for ding@gnus.org; Sat, 27 Nov 2010 19:53:52 +0100 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2010 19:53:52 +0100 Original-Received: from cohen by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2010 19:53:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8HDiDXbWBBpFxp0Q9BOj0Wr9px4= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74450 Archived-At: >>>>> "Tommy" == Tommy Kelly writes: Tommy> Steinar Bang writes about nnir: >> Move point over an nnimap folder (not sure if all IMAP servers >> implement search, but I know for sure that dovecot does) Tommy> Gmail seems to support it too. Tommy> Do you know if there is any kind of sophistication available Tommy> in the query? For example, can you search just on a given Tommy> header, or build complex booleans? Yes to all. Not much documentation (yet) but there is some info in the file nnir.el. Basically: "G G" prompts for a query string. The string conforms to a simple search language: Automatic \"and\" queries If you specify multiple words then they will be treated as an \"and\" expression intended to match all components. Phrase searches If you wrap your query in double-quotes then it will be treated as a literal string. Negative terms If you precede a term with \"-\" then it will negate that. \"OR\" queries If you include an upper-case \"OR\" in your search it will cause the term before it and the term after it to be treated as alternatives. If you call "G G" with a prefix arg it will prompt for a query string and then ask what part of messages to search. The options are: "Whole message" "Subject" "To" "From" If you type anything else, it will be interpreted as the name of a HEADER to search (e.g. if you type "Message-ID" it will search for your query-string in the Message-ID header). Finally if you select "Imap" it will interpret your query as a raw imap query (consult the RFC for the format of Imap queries). Regards, Andy