Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 626C6429E20 for ; Sat, 26 Mar 2011 22:37:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uZjQZe5mOeko for ; Sat, 26 Mar 2011 22:37:23 -0700 (PDT) Received: from paneer.cc.columbia.edu (paneer.cc.columbia.edu [128.59.29.4]) by olra.theworths.org (Postfix) with ESMTP id 8E4B1431FB6 for ; Sat, 26 Mar 2011 22:37:23 -0700 (PDT) Received: from servo.finestructure.net (c-24-19-44-201.hsd1.wa.comcast.net [24.19.44.201]) (user=jgr2110 author=jrollins@servo.finestructure.net mech=PLAIN bits=0) by paneer.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p2R5bCpN017934 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 27 Mar 2011 01:37:18 -0400 (EDT) Received: from jrollins by servo.finestructure.net with local (Exim 4.74) (envelope-from ) id 1Q3if0-0001b0-Dt; Sat, 26 Mar 2011 22:37:10 -0700 From: Jameson Graef Rollins To: mueen@nawaz.org, notmuch@notmuchmail.org Subject: Re: Sorting and attachments In-Reply-To: <878vw1yxia.fsf@fester.com> References: <878vw1yxia.fsf@fester.com> User-Agent: Notmuch/0.5-138-g00f709e (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sat, 26 Mar 2011 22:37:07 -0700 Message-ID: <871v1tm8e4.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 05:37:24 -0000 --=-=-= On Sat, 26 Mar 2011 21:53:49 -0700, mueen@nawaz.org wrote: > 1. Can notmuch return results sorted by size? As far as I know, there is currently no way to do that (but see below). > 2. Can I tell notmuch to limit the items it returns (e.g. show me > first ten messages matching ... ) Are you looking for this in the emacs UI? The following works for me on the command line: notmuch search '*' | head -10 > 3. Any plans for searching via attachment size or type? Say I want all > emails with attachments bigger than 1 MB. You can currently search through attachments with the 'attachment:' search term. See "notmuch help search-terms" for more info. This works for searching for mime types. I don't know of a way to search by size, though. > Essentially, I have a tendency to prune off large attachments so that > my mail directory doesn't blow up... You might just try using find, which is very useful for this kind of thing: find $MAILDIR -printf '%b %p\n' | sort -n hth. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJNjs0DAAoJEO00zqvie6q8syMQALHGrYzOrJ7IvYk3AKt8QqYA Wv40IlhpDjTUv13FTP9SYLGYxnkDrRGvQEeD2lOjo1WH5+3V+f4nFwnQhzfyMb8X K8LB9L/7uLbuji7i2EqreQ3OfgxIeJFRF0XHm9SM7Zie3TUn5W4sGOeNRoRbZoeR 4/ZDIC9+ItcucjJflPmi8s05gMaD84SHPC3RjiaL0cqO3+3evrB9yo/IjFRqYe+o zCK7s0uO8GAwVtVFzI5MbUZ7OyTD5CZwDOSXa1l3OC7uN72//vDZaaueGZIcOZVz mWOHtV8Ujvvglby/PjfaqsgIbIK1hnORPzmIWosUIHyeGq1eQf+epK+HaicWdZKl gUNsTUJVz9/axvJyJTUzPKwaw1kmd6gJiLWXlisWLq6vkB6vb6I8p4pirVTuagC5 gv3jU29kMaXB/x0thBE9ClIGEzt3dttx5HeEYdZqiVx530lTiSol39MGQE6VmH67 DwzzZJvFyC4BKEU9kOav3fbUos3c0CktR3YNGEgWp25BW4Wc+LGh0Nuir9FKHV9M o6qCaAFmj++JfdwI3kJ3FIcM3TraqOaAP3xMWqQzBoV+vJVuhWOxOToyWv7qOzSj eNYh45+JTZ1x8YNZ3RuZ9EGSkmrC9RRihcnO8g6TNVttxYnc8LBRH1+S3QRotjic sdERHUh2SDZ/1wkDY9+l =ampw -----END PGP SIGNATURE----- --=-=-=--