1 Return-Path: <gmn-notmuch@m.gmane.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 98AD6431FB6
\r
6 for <notmuch@notmuchmail.org>; Sun, 27 Mar 2011 09:41:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id gPjtbNtCZW4z for <notmuch@notmuchmail.org>;
\r
16 Sun, 27 Mar 2011 09:41:15 -0700 (PDT)
\r
17 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
\r
18 by olra.theworths.org (Postfix) with ESMTP id F3556431FB5
\r
19 for <notmuch@notmuchmail.org>; Sun, 27 Mar 2011 09:41:14 -0700 (PDT)
\r
20 Received: from list by lo.gmane.org with local (Exim 4.69)
\r
21 (envelope-from <gmn-notmuch@m.gmane.org>) id 1Q3t1W-0006a4-Iz
\r
22 for notmuch@notmuchmail.org; Sun, 27 Mar 2011 18:41:06 +0200
\r
23 Received: from c-71-237-233-41.hsd1.or.comcast.net ([71.237.233.41])
\r
24 by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
\r
26 for <notmuch@notmuchmail.org>; Sun, 27 Mar 2011 18:41:06 +0200
\r
27 Received: from mueen by c-71-237-233-41.hsd1.or.comcast.net with local (Gmexim
\r
28 0.1 (Debian)) id 1AlnuQ-0007hv-00
\r
29 for <notmuch@notmuchmail.org>; Sun, 27 Mar 2011 18:41:06 +0200
\r
30 X-Injected-Via-Gmane: http://gmane.org/
\r
31 To: notmuch@notmuchmail.org
\r
32 From: mueen@nawaz.org
\r
33 Subject: Re: Sorting and attachments
\r
34 Date: Sun, 27 Mar 2011 09:40:31 -0700
\r
36 Message-ID: <874o6ozfcw.fsf@fester.com>
\r
37 References: <878vw1yxia.fsf@fester.com>
\r
38 <871v1tm8e4.fsf@servo.finestructure.net>
\r
40 Content-Type: text/plain; charset=us-ascii
\r
41 X-Complaints-To: usenet@dough.gmane.org
\r
42 X-Gmane-NNTP-Posting-Host: c-71-237-233-41.hsd1.or.comcast.net
\r
43 Cancel-Lock: sha1:sLPumHq2YCgBNT7MP5yLeHiEQUs=
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.13
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Sun, 27 Mar 2011 16:41:17 -0000
\r
58 Jameson Graef Rollins
\r
59 <jrollins@finestructure.net> writes:
\r
61 > On Sat, 26 Mar 2011 21:53:49 -0700, mueen@nawaz.org wrote:
\r
62 >> 1. Can notmuch return results sorted by size?
\r
64 > As far as I know, there is currently no way to do that (but see below).
\r
66 It would be really convenient. Would this be a challenging task?
\r
68 >> 2. Can I tell notmuch to limit the items it returns (e.g. show me
\r
69 >> first ten messages matching ... )
\r
71 > Are you looking for this in the emacs UI? The following works for me on
\r
74 > notmuch search '*' | head -10
\r
76 Well, yes - I was thinking of the Emacs UI. I suppose I could just hack
\r
77 the .el files, but my knowledge of eLisp is fairly poor.
\r
79 >> 3. Any plans for searching via attachment size or type? Say I want all
\r
80 >> emails with attachments bigger than 1 MB.
\r
82 > You can currently search through attachments with the 'attachment:'
\r
83 > search term. See "notmuch help search-terms" for more info. This works
\r
84 > for searching for mime types. I don't know of a way to search by size,
\r
87 Again, that would be really convenient. I don't know if it would be
\r
88 challenging. though.
\r
90 >> Essentially, I have a tendency to prune off large attachments so that
\r
91 >> my mail directory doesn't blow up...
\r
93 > You might just try using find, which is very useful for this kind of
\r
96 > find $MAILDIR -printf '%b %p\n' | sort -n
\r
98 Well, I would want to exclude certain tags in the query...
\r
100 In my current mutt workflow, I'm a lot more aggressive. Once I'm done
\r
101 looking at a (binary) attachment, I actively save or delete it. Then
\r
102 every few months I just tell mutt to sort by size and delete any
\r
103 attachments I may have missed.
\r
105 I don't expect the exact same workflow with notmuch, but I was trying to
\r
106 find some way to handle this.
\r