Inconsistent output from "notmuch search --output="
On Tue, 23 Nov 2010 18:09:03 -0800, Carl Worth wrote: > Meanwhile, while adding the --output= test, I noticed some inconsistency > in the output: > $ notmuch search --output=messages ... | head -1 > id:1272355278.3878.111.camel at thor.local > The inconsistency is the presence of the "thread:" and "id:" prefixes > [...] I can't find any good justification for these. > I think the right answer is to drop those prefixes in the output. I know I had spoken in favor of these prefixes before, but I discovered that I find them annoying. I often stash message id's for pasting them to git-send-email's --in-reply-to option and I always have to manually remove the id: prefix. So if you are still interested in getting rid of it, go for it :-) Sebastian -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110328/733a0790/attachment.pgp>
Re: Sorting and attachments
Jameson Graef Rollins jroll...@finestructure.net writes: On Sat, 26 Mar 2011 21:53:49 -0700, mu...@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). It would be really convenient. Would this be a challenging task? 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 Well, yes - I was thinking of the Emacs UI. I suppose I could just hack the .el files, but my knowledge of eLisp is fairly poor. 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. Again, that would be really convenient. I don't know if it would be challenging. 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 Well, I would want to exclude certain tags in the query... In my current mutt workflow, I'm a lot more aggressive. Once I'm done looking at a (binary) attachment, I actively save or delete it. Then every few months I just tell mutt to sort by size and delete any attachments I may have missed. I don't expect the exact same workflow with notmuch, but I was trying to find some way to handle this. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] use custom-face-edit value-type in notmuch-search-line-faces
On Sun, Mar 27, 2011 at 1:26 AM, Jameson Rollins jroll...@finestructure.net wrote: On Sat, 26 Mar 2011 22:16:32 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: This enables the proper face customization UI for notmuch-search-line-faces. Hey, folks. amdragon was the one who figured out that custom-face-edit was the correct value-type to use to get the face customization ui for the notmuch-search-line-faces list. However, he seems to think this might not be the right solution. Austin: care to comment? My concern is that it's unclear if the custom-face-edit widget is considered a public interface, or if it's internal to customize and thus could change at any time. These things are always a bit murky in Emacs. custom-face-edit has been around for a few major versions, though it only recently (somewhere between Emacs 22 and 23) became embeddable in a customize widget like this. We should just ask on an Emacs mailing list if this is okay, or if it will break catastrophically and without warning at some point (or if there's a more official solution). ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] use custom-face-edit value-type in notmuch-search-line-faces
On Sun, 27 Mar 2011 22:57:46 -0400, Austin Clements amdra...@mit.edu wrote: My concern is that it's unclear if the custom-face-edit widget is considered a public interface, or if it's internal to customize and thus could change at any time. These things are always a bit murky in Emacs. custom-face-edit has been around for a few major versions, though it only recently (somewhere between Emacs 22 and 23) became embeddable in a customize widget like this. We should just ask on an Emacs mailing list if this is okay, or if it will break catastrophically and without warning at some point (or if there's a more official solution). Ok. Thanks so much for the clarification, Austin. I'll ping the emacs list and see what turns up. Maybe there's a better alternative, or maybe we can ask that it be turned public. jamie. pgpdmtqcDj5F7.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: Inconsistent output from notmuch search --output=foo
On Tue, 23 Nov 2010 18:09:03 -0800, Carl Worth cwo...@cworth.org wrote: Meanwhile, while adding the --output= test, I noticed some inconsistency in the output: $ notmuch search --output=messages ... | head -1 id:1272355278.3878.111.camel@thor.local The inconsistency is the presence of the thread: and id: prefixes [...] I can't find any good justification for these. I think the right answer is to drop those prefixes in the output. I know I had spoken in favor of these prefixes before, but I discovered that I find them annoying. I often stash message id's for pasting them to git-send-email's --in-reply-to option and I always have to manually remove the id: prefix. So if you are still interested in getting rid of it, go for it :-) Sebastian pgpcfvXwo59oE.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch