[PATCH v2 11/14] cli/reply: return internet address list from get header funcs
[notmuch-archives.git] / 77 / a626f35a757fde4a354119b03150d8e9f72d37
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
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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
25         id 1AlnuQ-0007hv-00\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
35 Lines: 50\r
36 Message-ID: <874o6ozfcw.fsf@fester.com>\r
37 References: <878vw1yxia.fsf@fester.com>\r
38         <871v1tm8e4.fsf@servo.finestructure.net>\r
39 Mime-Version: 1.0\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
46 Precedence: list\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
57 \r
58 Jameson Graef Rollins\r
59 <jrollins@finestructure.net> writes:\r
60 \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
63 >\r
64 > As far as I know, there is currently no way to do that (but see below).\r
65 \r
66 It would be really convenient. Would this be a challenging task?\r
67 \r
68 >> 2. Can I tell notmuch to limit the items it returns (e.g. show me\r
69 >> first ten messages matching ... )\r
70 >\r
71 > Are you looking for this in the emacs UI?  The following works for me on\r
72 > the command line:\r
73 >\r
74 > notmuch search '*' | head -10\r
75 \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
78 \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
81 >\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
85 > though.\r
86 \r
87 Again, that would be really convenient. I don't know if it would be\r
88 challenging. though.\r
89 \r
90 >> Essentially, I have a tendency to prune off large attachments so that\r
91 >> my mail directory doesn't blow up...\r
92 >\r
93 > You might just try using find, which is very useful for this kind of\r
94 > thing:\r
95 >\r
96 > find $MAILDIR -printf '%b %p\n' | sort -n\r
97 \r
98 Well, I would want to exclude certain tags in the query...\r
99 \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
104 \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
107 \r
108 \r