unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: mueen@nawaz.org, notmuch@notmuchmail.org
Subject: Re: Sorting and attachments
Date: Sat, 26 Mar 2011 22:37:07 -0700	[thread overview]
Message-ID: <871v1tm8e4.fsf@servo.finestructure.net> (raw)
In-Reply-To: <878vw1yxia.fsf@fester.com>

[-- Attachment #1: Type: text/plain, Size: 994 bytes --]

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2011-03-27  5:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27  4:53 Sorting and attachments mueen
2011-03-27  5:37 ` Jameson Graef Rollins [this message]
2011-03-27 16:40   ` mueen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v1tm8e4.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=mueen@nawaz.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).