Re: [PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Peter Wang
On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: > > Though it could be used as an alternative to notmuch new, the reason > > I want this is to allow my notmuch frontend to add postponed or sent > > messages to the mail store and notmuch database, without resorting to > > another tool (e.g.

Re: [PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Tomi Ollila
On Wed, Jan 23 2013, Peter Wang wrote: > On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: > >> > +/* Copy the contents of standard input (fdin) into fdout. */ >> > +static notmuch_bool_t >> > +copy_stdin (int fdin, int fdout) >> >> The comment and the function name imply the function has

Re: [PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Jani Nikula
On Wed, 23 Jan 2013, Peter Wang wrote: > On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: >> > Though it could be used as an alternative to notmuch new, the reason >> > I want this is to allow my notmuch frontend to add postponed or sent >> > messages to the mail store and notmuch database,

[PATCH 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM nonexistent or dumb

2013-01-23 Thread Tomi Ollila
The TERM environment variable is set to 'dumb' when running tests, but the original value of it is stored for echoing colors and running (emacs (somewhat interactively) in detached session. Emacs requires some terminal control sequences to be available for interactive operation. In case original TE

Linking to emails via notmuch

2013-01-23 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I would like to cross-reference emails via notmuch, i.e. I would like to include a link to an email in a git commit message (this is a private gip repo and I am the only developer and committer, so no problem from that side). Is it possible to ge

Re: [PATCH 3/5] cli: add --batch option to notmuch count

2013-01-23 Thread Tomi Ollila
On Tue, Jan 15 2013, Jani Nikula wrote: > Add support for reading queries from stdin, one per line, and writing > results to stdin, one per line. Jani's parts LGTM, except one IMPORTANT part -- results are written to STDOUT! (hopefully...yes) instead of STDIN! ;) I don't see a reason why this p

Re: [PATCH] emacs: hello: use batch count

2013-01-23 Thread Tomi Ollila
On Wed, Jan 16 2013, Mark Walters wrote: > This modifies notmuch hello to use the new count --batch > functionality. It should give exactly the same results as before but > under many conditions it should be much faster. In particular it is > much faster for remote use. > > The code is a little u

Re: [PATCH v2] emacs: Disambiguate point placement after hiding message

2013-01-23 Thread Tomi Ollila
On Wed, Jan 09 2013, Austin Clements wrote: > Currently, if point is in the middle of a message when the user > collapses it, Emacs then displays the cursor on the header line of the > next message, even though point is still on the collapsed message and > even though, if you explicitly move poin

Re: [PATCH 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM nonexistent or dumb

2013-01-23 Thread Jani Nikula
On Wed, 23 Jan 2013, Tomi Ollila wrote: > The TERM environment variable is set to 'dumb' when running tests, but > the original value of it is stored for echoing colors and running (emacs Extra ( there? > (somewhat interactively) in detached session. Emacs requires some > terminal control sequen

Re: Linking to emails via notmuch

2013-01-23 Thread Suvayu Ali
On Wed, Jan 23, 2013 at 01:32:42PM +0100, Rainer M Krug wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > > I would like to cross-reference emails via notmuch, i.e. I would like to > include a link to an > email in a git commit message (this is a private gip repo and I am the onl

[Daniel Kahn Gillmor] Bug#698810: notmuch: Internal error: add_message returned unexpected value: 4 (notmuch-new.c:543)

2013-01-23 Thread David Bremner
--- Begin Message --- Package: notmuch Version: 0.15-2 Severity: normal i run notmuch over a mailstore that is also served by a dovecot instance (which is the reason for much of the spew below). However, after a recent switch to notmuch 0.15, i got this one-time error during "notmuch new": Inte

[PATCH 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM nonexistent or dumb

2013-01-23 Thread Tomi Ollila
The TERM environment variable is set to 'dumb' when running tests, but the original value of it is stored for echoing colors and running emacs (somewhat interactively) in detached session. Emacs requires some terminal control sequences to be available for interactive operation. In case original TER

[PATCH V3 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM dumb or unset/empty

2013-01-23 Thread Tomi Ollila
The TERM environment variable is set to 'dumb' when running tests, but the original value of it is stored for echoing colors and running emacs (somewhat interactively) in detached session. Emacs requires some terminal control sequences to be available for interactive operation. In case original TER

update top level argument handling

2013-01-23 Thread Tomi Ollila
On Wed, Jan 23 2013, David Bremner wrote: > Jani Nikula writes: > >> >> Patches 1-4 look good, and IMO should be used regardless of the >> bikeshedding result on patches 5-7. > > I pushed the first 4. 6 and 7 will need rebasing if 5 is omitted, which > seems to be the plan. At least it maintain

[PATCH 3/4] emacs: possibility to customize the rendering of tags

2013-01-23 Thread Tomi Ollila
On Wed, Jan 23 2013, Austin Clements wrote: > On Fri, 18 Jan 2013, Damien Cassou wrote: > >> + `(("unread" >> + (:propertize "unread" face >> + (:Foreground "red"))) >> +("flagged" >> + (:propertize "flagged" display >> + (image :type svg :file >> +

[PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Peter Wang
On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: > > Though it could be used as an alternative to notmuch new, the reason > > I want this is to allow my notmuch frontend to add postponed or sent > > messages to the mail store and notmuch database, without resorting to > > another tool (e.g.

[PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Tomi Ollila
On Wed, Jan 23 2013, Peter Wang wrote: > On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: > >> > +/* Copy the contents of standard input (fdin) into fdout. */ >> > +static notmuch_bool_t >> > +copy_stdin (int fdin, int fdout) >> >> The comment and the function name imply the function has

[PATCH v3 01/20] cli: add stub for insert command

2013-01-23 Thread Jani Nikula
On Wed, 23 Jan 2013, Peter Wang wrote: > On Tue, 22 Jan 2013 23:45:43 +0200, Jani Nikula wrote: >> > Though it could be used as an alternative to notmuch new, the reason >> > I want this is to allow my notmuch frontend to add postponed or sent >> > messages to the mail store and notmuch database,

[PATCH 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM nonexistent or dumb

2013-01-23 Thread Tomi Ollila
The TERM environment variable is set to 'dumb' when running tests, but the original value of it is stored for echoing colors and running (emacs (somewhat interactively) in detached session. Emacs requires some terminal control sequences to be available for interactive operation. In case original TE

Linking to emails via notmuch

2013-01-23 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I would like to cross-reference emails via notmuch, i.e. I would like to include a link to an email in a git commit message (this is a private gip repo and I am the only developer and committer, so no problem from that side). Is it possible to ge

[PATCH 3/5] cli: add --batch option to notmuch count

2013-01-23 Thread Tomi Ollila
On Tue, Jan 15 2013, Jani Nikula wrote: > Add support for reading queries from stdin, one per line, and writing > results to stdin, one per line. Jani's parts LGTM, except one IMPORTANT part -- results are written to STDOUT! (hopefully...yes) instead of STDIN! ;) I don't see a reason why this p

[PATCH] emacs: hello: use batch count

2013-01-23 Thread Tomi Ollila
On Wed, Jan 16 2013, Mark Walters wrote: > This modifies notmuch hello to use the new count --batch > functionality. It should give exactly the same results as before but > under many conditions it should be much faster. In particular it is > much faster for remote use. > > The code is a little u

[PATCH v2] emacs: Disambiguate point placement after hiding message

2013-01-23 Thread Tomi Ollila
On Wed, Jan 09 2013, Austin Clements wrote: > Currently, if point is in the middle of a message when the user > collapses it, Emacs then displays the cursor on the header line of the > next message, even though point is still on the collapsed message and > even though, if you explicitly move poin

[PATCH 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM nonexistent or dumb

2013-01-23 Thread Jani Nikula
On Wed, 23 Jan 2013, Tomi Ollila wrote: > The TERM environment variable is set to 'dumb' when running tests, but > the original value of it is stored for echoing colors and running (emacs Extra ( there? > (somewhat interactively) in detached session. Emacs requires some > terminal control sequen

Linking to emails via notmuch

2013-01-23 Thread Suvayu Ali
On Wed, Jan 23, 2013 at 01:32:42PM +0100, Rainer M Krug wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > > I would like to cross-reference emails via notmuch, i.e. I would like to > include a link to an > email in a git commit message (this is a private gip repo and I am the onl