This adds just the "to" recipients, but probably "cc"s should be
included as well.
---
lib/database.cc |2 +-
lib/message.cc|4
lib/notmuch-private.h |2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/database.cc b/lib/database.cc
index
New function, notmuch-search-toggle-tofrom, toggles whether thread
authors or recipients are shown in the 'authors' fields in the search
results. This is bound to the '/' key.
---
emacs/notmuch.el | 11 +++
1 file changed, 11 insertions(+)
diff --git a/emacs/notmuch.el
A new boolean argument is added to notmuch-search to control whether
thread authors or recipients are shown in the 'authors' field.
---
emacs/notmuch-hello.el |6 +++---
emacs/notmuch.el | 40 +---
2 files changed, 32 insertions(+), 14 deletions(-)
This adds a "--include-recipients" option to notmuch search. With
structured output formats (e.g. json), a new recipients field will be
included that holds recipients of the thread. Matched and non-matched
recipients are delineated as with authors.
As mentioned in the previous patch for the
Simple json test for a new additional recipient field. known_broken
to be removed with next patch.
---
test/json | 14 ++
1 file changed, 14 insertions(+)
diff --git a/test/json b/test/json
index ac8fa8e..ac423a8 100755
--- a/test/json
+++ b/test/json
@@ -60,4 +60,18 @@
This utilizes the new thread addresses struct to store thread
recipients, again in parallel to authors.
Since message recipients are not stored in the database, including
recipients in the thread structure exacts a significant overhead as
the recipients are retrieved from the original message
Added as a string, in parallel to the authors element.
---
lib/message.cc| 18 ++
lib/notmuch-private.h |9 +
2 files changed, 27 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 978de06..fa28073 100644
--- a/lib/message.cc
+++
We will use this for cleaning non-author address fields, so we give it
the more generic name _thread_cleanup_address.
---
lib/thread.cc | 43 ++-
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/lib/thread.cc b/lib/thread.cc
index
Now that we have the infrastructure in place, we modify the thread
object and associated functions to use the new addresses structure for
storing thread authors.
---
lib/thread.cc | 41 +++--
1 file changed, 11 insertions(+), 30 deletions(-)
diff --git
This new structure holds addresses associated with a thread, both
matched and unmatched. Initially this will be used to replace the
existing infrastructure for storing the addresses of thread authors.
Further patches will use it to store the addresses of threads
recipients.
Init and destructor
This series is an attempt to add thread recipients to the search
output.
My personal overall goal of this series is to support the handling of
drafts in the emacs ui. For drafts we want to see recipients, instead
of authors, in the search output. I can imagine other uses for this
series as
Tomi Ollila writes:
> Currently Makefile.local contains some machine executable release
> checking functionality. This is unnecessarily complex way to do it:
Hi Tomi;
Overall this looks good, but there seems to be one minor bug:
- If there are extra files under man/man1 (e.g. from "make
From: David Bremner
Initially, provide a way to create "stub" messages in the notmuch
database without corresponding files. This is essentially cut and
paste from lib/database.cc. This is a seperate file since we don't
want to export these symbols from libnotmuch or bloat
This obsoletes the series at:
id:"134431-4301-1-git-send-email-bremner at debian.org"
Changes since v2:
- clean up new test-binaries and objects
- remove the "set -o pipefail" leftover from debugging. Possibly this
makes sense as a global setting, but in a seperate patch.
- add
This series is an attempt to add thread recipients to the search
output.
My personal overall goal of this series is to support the handling of
drafts in the emacs ui. For drafts we want to see recipients, instead
of authors, in the search output. I can imagine other uses for this
series as
The _add_author, _add_matched_author, and
_resolve_thread_authors_string functions have been replaced by the
more generic _address functions that utilize the new
notmuch_thread_addresses_t.
---
lib/thread.cc | 91 -
1 file changed, 91
This new structure holds addresses associated with a thread, both
matched and unmatched. Initially this will be used to replace the
existing infrastructure for storing the addresses of thread authors.
Further patches will use it to store the addresses of threads
recipients.
Init and destructor
Simple json test for a new additional recipient field. known_broken
to be removed with next patch.
---
test/json | 14 ++
1 file changed, 14 insertions(+)
diff --git a/test/json b/test/json
index ac8fa8e..ac423a8 100755
--- a/test/json
+++ b/test/json
@@ -60,4 +60,18 @@
This adds a --include-recipients option to notmuch search. With
structured output formats (e.g. json), a new recipients field will be
included that holds recipients of the thread. Matched and non-matched
recipients are delineated as with authors.
As mentioned in the previous patch for the
A new boolean argument is added to notmuch-search to control whether
thread authors or recipients are shown in the 'authors' field.
---
emacs/notmuch-hello.el |6 +++---
emacs/notmuch.el | 40 +---
2 files changed, 32 insertions(+), 14 deletions(-)
This utilizes the new thread addresses struct to store thread
recipients, again in parallel to authors.
Since message recipients are not stored in the database, including
recipients in the thread structure exacts a significant overhead as
the recipients are retrieved from the original message
We will use this for cleaning non-author address fields, so we give it
the more generic name _thread_cleanup_address.
---
lib/thread.cc | 43 ++-
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/lib/thread.cc b/lib/thread.cc
index
Now that we have the infrastructure in place, we modify the thread
object and associated functions to use the new addresses structure for
storing thread authors.
---
lib/thread.cc | 41 +++--
1 file changed, 11 insertions(+), 30 deletions(-)
diff --git
New function, notmuch-search-toggle-tofrom, toggles whether thread
authors or recipients are shown in the 'authors' fields in the search
results. This is bound to the '/' key.
---
emacs/notmuch.el | 11 +++
1 file changed, 11 insertions(+)
diff --git a/emacs/notmuch.el
24 matches
Mail list logo