This takes into account (most of) Tomi's comments and adds a bunch
more tests. We bikeshedded a bit about log_to_string on IRC, and
eventually convered on eliminating it. I guess it might be necessary
to add a compat version of asprintf for some environments (Solaris?)
but this is easy enough
In principle in the future this could do something fancier than sprintf.
---
lib/database-private.h | 4
lib/database.cc| 24
lib/notmuch-private.h | 4
lib/notmuch.h | 7 +++
4 files changed, 39 insertions(+)
diff --git
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
This includes tests for all of the error fprintfs in the library I
could figure out how to test without using gdb scripts. It boils down
to errors opening files and exceptions caused by corrupted Xapian
databases.
---
test/T560-lib-error.sh | 250 +
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining bad fprintf will need
an internal API change.
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
This is to limit the copy-pasta involved in running C tests. I decided
to keep things simple and not try to provide an actual C skeleton.
The setting of LD_LIBRARY_PATH is to force using the built libnotmuch
rather than any potential system one.
---
test/README | 5 +
test/test-lib.sh
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
---
lib/database.cc | 2 +-
lib/message-file.c
In principle in the future this could do something fancier than sprintf.
---
lib/database-private.h | 4
lib/database.cc| 24
lib/notmuch-private.h | 4
lib/notmuch.h | 7 +++
4 files changed, 39 insertions(+)
diff --git
This includes tests for all of the error fprintfs in the library I
could figure out how to test without using gdb scripts. It boils down
to errors opening files and exceptions caused by corrupted Xapian
databases.
---
test/T560-lib-error.sh | 250 +
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining bad fprintf will need
an internal API change.
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
The compatibility wrapper ensures that clients calling
notmuch_database_open will receive consistent output for now.
The changes to notmuch-{new,search} and test/symbol-test are just to
make the test suite pass.
The use of IGNORE_RESULT is justified by two things. 1) I don't know
what else to
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
---
lib/database.cc | 2 +-
lib/message-file.c
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
Greetings!
Emacs 24.4.1 (Arch Linux if that helps)
Notmuch 0.19
The problem is that I can neither compose a new email nor reply to an old
email unless I have already used message mode (via Gnus) first.
I get an error message - Google on the error message below gets me nowhere!
Can anyone give
Hi all,
Continuing my journey with notmuch... It has been very enjoyable so far.
One thing which has been puzzling me greatly is the time it can take to
notmuch-show a moderately sized thread (eg one with 32 messages with a
three to four sentence paragraph per message - approx 32 x 35kB with
some
Matthew Lear m...@bubblegen.co.uk writes:
Despite being a vi guy for years, I prefer the emacs interface to
notmuch and really like what it provides. I'm sticking with it but there
is clearly a problem and I'd like to solve it. It's annoying when you
know that something isn't working as well
I suspect this is related to asynch loading. The first query is still
filling into the buffer, and emacs doesn't starting filling the second
buffer until the first search finishes. In my experiments it
_eventually_ does the second query.
You are correct. I confirm that the second query
Sebastian Fischmeister sfisc...@uwaterloo.ca writes:
The following *always* returns an empty list, even when I see an email
with bar right there in the list after the first search:
M-: (notmuch-search from:sfischme) ;;me
M-: (notmuch-search bar)
I suspect this is related to asynch loading.
Jed Brown j...@59a2.org writes:
Michael Hudson-Doyle michael.hud...@canonical.com writes:
I have encountered this too. A C-u before entering the thread helps
(this means already read messages are not rendered I think), as does a
M-x notmuch-show-toggle-thread-indentation .
Thanks,
Glyn Millington glyn.milling...@gmail.com writes:
Greetings!
Emacs 24.4.1 (Arch Linux if that helps)
Notmuch 0.19
The problem is that I can neither compose a new email nor reply to an old
email unless I have already used message mode (via Gnus) first.
I get an error message - Google on
David Bremner da...@tethera.net writes:
How is the performance of tree-view on these threads?
tree-view? Loading is about equally slow with/without
notmuch-show-indent-messages-width=0. Navigation is pretty fast once
loaded. notmuch show --format=sexp for an 1100 message thread with
7.5 MB
I have encountered this too. A C-u before entering the thread helps
(this means already read messages are not rendered I think), as does a
M-x notmuch-show-toggle-thread-indentation . Something less manual
would be nice, I guess...
On 24 March 2015 at 07:09, Jed Brown wrote:
> I occasionally
Hi,
I have some strange behaviour when performing searches on notmuch in
emacs. The following works just fine:
M-: (notmuch-search "from:foo") ;;not me
M-: (notmuch-search "bar")
The following *always* returns an empty list, even when I see an email
with "bar" right there in the list after the
Greetings!
Emacs 24.4.1 (Arch Linux if that helps)
Notmuch 0.19
The problem is that I can neither compose a new email nor reply to an old
email unless I have already used message mode (via Gnus) first.
I get an error message - Google on the error message below gets me nowhere!
Can anyone give
FYI (VirtualBox FreeBSD_10.1-64bit.7z from http://www.osboxes.org/freebsd/)
root at osboxes:~/mail # rm -rf .notmuch/
root at osboxes:~/mail # notmuch new
Found 1 total files (that's not much mail).
Warning: /root/mail/new/new.mail is an mbox containing a single message,
likely caused
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
In principle in the future this could do something fancier than sprintf.
---
lib/database-private.h | 4
lib/database.cc| 24
lib/notmuch-private.h | 4
lib/notmuch.h | 7 +++
4 files changed, 39 insertions(+)
diff --git
This includes tests for all of the error fprintfs in the library I
could figure out how to test without using gdb scripts. It boils down
to errors opening files and exceptions caused by corrupted Xapian
databases.
---
test/T560-lib-error.sh | 250 +
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
The compatibility wrapper ensures that clients calling
notmuch_database_open will receive consistent output for now.
The changes to notmuch-{new,search} and test/symbol-test are just to
make the test suite pass.
The use of IGNORE_RESULT is justified by two things. 1) I don't know
what else to
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
---
lib/database.cc | 2 +-
lib/message-file.c
This is to limit the copy-pasta involved in running C tests. I decided
to keep things simple and not try to provide an actual C skeleton.
The setting of LD_LIBRARY_PATH is to force using the built libnotmuch
rather than any potential system one.
---
test/README | 5 +
test/test-lib.sh
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining "bad" fprintf will need
an internal API
This takes into account (most of) Tomi's comments and adds a bunch
more tests. We bikeshedded a bit about log_to_string on IRC, and
eventually convered on eliminating it. I guess it might be necessary
to add a compat version of asprintf for some environments (Solaris?)
but this is easy enough
This includes tests for all of the error fprintfs in the library I
could figure out how to test without using gdb scripts. It boils down
to errors opening files and exceptions caused by corrupted Xapian
databases.
---
test/T560-lib-error.sh | 250 +
In principle in the future this could do something fancier than sprintf.
---
lib/database-private.h | 4
lib/database.cc| 24
lib/notmuch-private.h | 4
lib/notmuch.h | 7 +++
4 files changed, 39 insertions(+)
diff --git
The compatibility wrapper ensures that clients calling
notmuch_database_open will receive consistent output for now.
The changes to notmuch-{new,search} and test/symbol-test are just to
make the test suite pass.
The use of IGNORE_RESULT is justified by two things. 1) I don't know
what else to
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
This is to limit the copy-pasta involved in running C tests. I decided
to keep things simple and not try to provide an actual C skeleton.
The setting of LD_LIBRARY_PATH is to force using the built libnotmuch
rather than any potential system one.
---
test/README | 5 +
test/test-lib.sh
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining "bad" fprintf will need
an internal API
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
---
lib/database.cc | 2 +-
lib/message-file.c
Glyn Millington writes:
> Greetings!
>
> Emacs 24.4.1 (Arch Linux if that helps)
> Notmuch 0.19
>
> The problem is that I can neither compose a new email nor reply to an old
> email unless I have already used message mode (via Gnus) first.
> I get an error message - Google on the error message
Sebastian Fischmeister writes:
> The following *always* returns an empty list, even when I see an email
> with "bar" right there in the list after the first search:
>
> M-: (notmuch-search "from:sfischme") ;;me
> M-: (notmuch-search "bar")
I suspect this is related to asynch loading. The first
Jed Brown writes:
> Michael Hudson-Doyle writes:
>
>> I have encountered this too. A C-u before entering the thread helps
>> (this means already read messages are not rendered I think), as does a
>> M-x notmuch-show-toggle-thread-indentation .
>
> Thanks, Michael. This does help, though it
plication/pgp-signature
Size: 818 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20150324/d51317ca/attachment.pgp>
Hi all,
Continuing my journey with notmuch... It has been very enjoyable so far.
One thing which has been puzzling me greatly is the time it can take to
notmuch-show a moderately sized thread (eg one with 32 messages with a
three to four sentence paragraph per message - approx 32 x 35kB with
some
Matthew Lear writes:
>
> Despite being a vi guy for years, I prefer the emacs interface to
> notmuch and really like what it provides. I'm sticking with it but there
> is clearly a problem and I'd like to solve it. It's annoying when you
> know that something isn't working as well as it should
> I suspect this is related to asynch loading. The first query is still
> filling into the buffer, and emacs doesn't starting filling the second
> buffer until the first search finishes. In my experiments it
> _eventually_ does the second query.
You are correct. I confirm that the second query
51 matches
Mail list logo