Add support for `--limit=N` to `notmuch show`

2020-05-01 Thread Ciprian Dorin Craciun
In a previous email (about `thread:...` field in JSON output of `notmuch show`), I described one of my use-cases for notmuch. Now extending upon that, if one would to implement an email client that provides the user with search, there are two approaches: * use `notmuch search -- {query}` and

Re: Add support for `thread` field in `notmuch show`

2020-05-01 Thread Ciprian Dorin Craciun
On Fri, May 1, 2020 at 3:09 PM David Bremner wrote: > Ciprian Dorin Craciun writes: > > I know that one can use `thread:{id:MESSAGE_ID}` to achieve the same > > result, however: > > * it is somewhat cumbersome for the integrator; > > Out of curiousity, what is harder

Re: Any updates on the `List-Id` indexing feature?

2020-04-29 Thread Ciprian Dorin Craciun
On Wed, Apr 29, 2020 at 8:08 PM David Bremner wrote: > > I've also read the FAQ: > > * https://notmuchmail.org/faq/#index8h2 > > Oops, that needs to be updated. > > It is implemented. See notmuch-config(1), under "index.header" That's perfect. However the `search-terms` man pages doesn't say

Any updates on the `List-Id` indexing feature?

2020-04-29 Thread Ciprian Dorin Craciun
I've searched the mailing list archives about the `List-Id` feature: * https://www.mail-archive.com/notmuch@notmuchmail.org/msg43214.html * https://www.mail-archive.com/notmuch@notmuchmail.org/msg22092.html * https://www.mail-archive.com/notmuch@notmuchmail.org/msg14146.html I've also read the

Add support for `thread` field in `notmuch show`

2020-04-29 Thread Ciprian Dorin Craciun
According to the `devel/schemata` the message object doesn't contain the thread identifier to which it was assigned in the database. Sometimes, for example in an UI that displays a search result at message level, it would be useful to know the thread each message belongs to, so the user can

Re: Inconsistencies in handling command flags: `--flag=value` different than `--flag value`

2020-04-29 Thread Ciprian Dorin Craciun
On Wed, Apr 29, 2020 at 6:39 PM David Bremner wrote: > I guess I'm a bit leery of removing UI features that presumably at least > some people rely on. It's pretty upsetting to have sofware break one's > muscle memory. I think there are two complete different use-cases for the `notmuch` binary:

Re: Inconsistencies in handling command flags: `--flag=value` different than `--flag value`

2020-04-27 Thread Ciprian Dorin Craciun
On Mon, Apr 27, 2020 at 9:21 PM Tomi Ollila wrote: > > On Mon 2020-04-27 14:53:07 -0300, David Bremner wrote: > >> Quoting notmuch(1) > >> > >>OPTION SYNTAX > >>All options accepting an argument can be used with '=' > >>or ':' as a separator. For the cases where it's not

Inconsistencies in handling command flags: `--flag=value` different than `--flag value`

2020-04-24 Thread Ciprian Dorin Craciun
[Again sorry for double reporting. BTW, where should I search for previous bugs? I've currently tried the mailing list archive.] Trying to play with `notmuch` from a wrapper, I've stumbled upon the following command line flags handling bug: notmuch show --format json --entire-thread true

Strip spaces in `tags` in `~/.notmuch-config` (and other fields)

2020-04-24 Thread Ciprian Dorin Craciun
[Sorry if I'm double reporting this. I've tried my best to search for previous discussions.] I've tried to manually edit my `~/.notmuch-config`, and I've seen that the field `tags` was written as `tags=unread;inbox;`. In order to increase readability I've decided to update my configuration

Re: Alternative (raw) message store (i.e. instead of maildir)

2012-08-13 Thread Ciprian Dorin Craciun
On Sat, Aug 11, 2012 at 11:50 PM, Jameson Graef Rollins jroll...@finestructure.net wrote: On Sat, Aug 11 2012, Ciprian Dorin Craciun ciprian.crac...@gmail.com wrote: My problem with it is that it doesn't scale... And I don't mean this in a theoretical sense, I mean it in the concrete one: I

Alternative (raw) message store (i.e. instead of maildir)

2012-08-11 Thread Ciprian Dorin Craciun
On Sat, Aug 11, 2012 at 12:46 PM, Vladimir Marek wrote: > Hi, > > I have objections against maildir too, Just for the record I have nothing against maildir (or at least when compared to mbox format). On the contrary I find it quite easy to fiddle with... My problem with it is that it

Alternative (raw) message store (i.e. instead of maildir)

2012-08-11 Thread Ciprian Dorin Craciun
Hello all! My question -- rather a curiosity -- is if one could easily implement an alternative message store instead of maildir. (I actually have in mind a KV store like BerkeleyDB, or even a database like CouchDB...) (I'm not also implying the same for the index, which I'm aware is

Alternative (raw) message store (i.e. instead of maildir)

2012-08-11 Thread Ciprian Dorin Craciun
Hello all! My question -- rather a curiosity -- is if one could easily implement an alternative message store instead of maildir. (I actually have in mind a KV store like BerkeleyDB, or even a database like CouchDB...) (I'm not also implying the same for the index, which I'm aware is

Re: Alternative (raw) message store (i.e. instead of maildir)

2012-08-11 Thread Ciprian Dorin Craciun
On Sat, Aug 11, 2012 at 12:46 PM, Vladimir Marek vladimir.ma...@oracle.com wrote: Hi, I have objections against maildir too, Just for the record I have nothing against maildir (or at least when compared to mbox format). On the contrary I find it quite easy to fiddle with... My problem

Exporting a single email as JSON

2011-12-11 Thread Ciprian Dorin Craciun
On Sun, Dec 11, 2011 at 01:19, Jameson Graef Rollins wrote: > On Sun, 11 Dec 2011 00:46:51 +0200, Ciprian Dorin Craciun gmail.com> wrote: >> ? ? * in my use-case I would need each line of the output to be a >> standalone JSON object of an individual message; (thus I can s

Exporting a single email as JSON

2011-12-11 Thread Ciprian Dorin Craciun
On Sat, Dec 10, 2011 at 22:15, Jameson Graef Rollins wrote: > On Sat, 10 Dec 2011 20:32:22 +0200, Ciprian Dorin Craciun gmail.com> wrote: >> ? ? Quick question: why isn't it reasonable to export a **single** >> email in JSON format (by using the `show` sub-command)? (I me

Exporting a single email as JSON

2011-12-10 Thread Ciprian Dorin Craciun
Hello all! Quick question: why isn't it reasonable to export a **single** email in JSON format (by using the `show` sub-command)? (I mean I understand that in order to be able to correctly parse the output we need only one "object" (i.e. a list of threads, containing a list of emails,

Re: Exporting a single email as JSON

2011-12-10 Thread Ciprian Dorin Craciun
On Sat, Dec 10, 2011 at 22:15, Jameson Graef Rollins jroll...@finestructure.net wrote: On Sat, 10 Dec 2011 20:32:22 +0200, Ciprian Dorin Craciun ciprian.crac...@gmail.com wrote:     Quick question: why isn't it reasonable to export a **single** email in JSON format (by using the `show` sub

Re: Exporting a single email as JSON

2011-12-10 Thread Ciprian Dorin Craciun
On Sun, Dec 11, 2011 at 01:19, Jameson Graef Rollins jroll...@finestructure.net wrote: On Sun, 11 Dec 2011 00:46:51 +0200, Ciprian Dorin Craciun ciprian.crac...@gmail.com wrote:     * in my use-case I would need each line of the output to be a standalone JSON object of an individual message

RFC: notmuch powered (personal) (end-to-end) e-mail system

2011-03-20 Thread Ciprian Dorin Craciun
Hello all! (Sorry for the long email.) I'm "struggling" for some time to get rid of the current "de-facto" email solutions (i.e. GMail, Zimbra), and I've passively observed for some time the notmuch project and community. Although I've forwarded all my email to a single account, and

RFC: notmuch powered (personal) (end-to-end) e-mail system

2011-03-20 Thread Ciprian Dorin Craciun
Hello all! (Sorry for the long email.) I'm struggling for some time to get rid of the current de-facto email solutions (i.e. GMail, Zimbra), and I've passively observed for some time the notmuch project and community. Although I've forwarded all my email to a single account, and I'm

`notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-17 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:42, Daniel Kahn Gillmor wrote: > On 11/16/2010 03:37 PM, Daniel Kahn Gillmor wrote: >> On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote: >>> ? ? So in the light of the above quoted "glitches", my question is: >>> due to the s

`notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-17 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:37, Daniel Kahn Gillmor wrote: > On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote: >> ? ? P.S.: I say "pseudo" atomic because only the rename is atomic, >> thus in order to override file `a` for the target file `b` which >> exists, w

`notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 21:09, Carl Worth wrote: > On Tue, 16 Nov 2010 15:33:30 +0200, "Ciprian Dorin, Craciun" at gmail.com> wrote: >> ? ? So my question is: is this behaviour (of deleting the file and >> creating a new one) deliberate? If not, could it be fixed

`notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
Hello all! First congratulations for the nice software! I hardly wait for a notmuch native (i.e. libnotmuch) and curses client (like `ner`) to become more stable, and thus I'll be able to ditch GMail. :) But until then a small glitch... While upgrading from notmuch 0.4 to 0.5, I've

`notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
Hello all! First congratulations for the nice software! I hardly wait for a notmuch native (i.e. libnotmuch) and curses client (like `ner`) to become more stable, and thus I'll be able to ditch GMail. :) But until then a small glitch... While upgrading from notmuch 0.4 to 0.5, I've

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:37, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote:     P.S.: I say pseudo atomic because only the rename is atomic, thus in order to override file `a` for the target file `b` which exists, we must execute two

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:42, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: On 11/16/2010 03:37 PM, Daniel Kahn Gillmor wrote: On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote:     So in the light of the above quoted glitches, my question is: due to the small chance of a power loss