On Sun, Oct 05 2014, Michal Sojka wrote:
> The new outputs allow printing senders, recipients or both of matching
> messages.
>
> This code based on a patch from Jani Nikula.
OK, IMO...
1/4 OK
Before 2/4 add support for 'flag' arguments, drop the --output=addresses
option which is now done as
On Mon, Oct 06 2014, Ian Main wrote:
> Add an option to use 'notmuch insert' to save your sent mail.
> ---
>
> Add -inbox as well.
>
> vim/notmuch.vim | 17 +
> 1 file changed, 17 insertions(+)
>
> diff --git a/vim/notmuch.vim b/vim/notmuch.vim
> index 331e930..a9044c4 100644
>
Tomi Ollila wrote:
> On Mon, Oct 06 2014, Ian Main wrote:
>
> > Add an option to use 'notmuch insert' to save your sent mail.
> > ---
> >
> > Add -inbox as well.
> >
> > vim/notmuch.vim | 17 +
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/vim/notmuch.vim
From: Austin Clements
Previously, it was necessary to link new messages to children to work
around some (though not all) problems with the old metadata-based
approach to stored thread IDs. With ghost messages, this is no longer
necessary, so don't bother with child linking
---
test/T530-upgrade.sh | 21 +
1 file changed, 21 insertions(+)
diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh
index c4c4ac8..6b42a69 100755
--- a/test/T530-upgrade.sh
+++ b/test/T530-upgrade.sh
@@ -116,4 +116,25 @@ MAIL_DIR/bar/new/21:2,
MAIL_DIR/bar/new/22:2,
From: Austin Clements
This fixes the broken thread order test.
---
lib/database-private.h| 2 +-
test/T260-thread-order.sh | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/database-private.h b/lib/database-private.h
index e2e4bc8..15e03cc 100644
---
From: Austin Clements
Somehow this is the first upgrade pass that actually does *any* error
checking, so this also adds the bit of necessary infrastructure to
handle that.
---
lib/database.cc | 66 +++--
1 file changed, 64
From: Austin Clements
This updates the thread linking code to use ghost messages instead of
user metadata to link messages into threads.
In contrast with the old approach, this is actually correct.
Previously, thread merging updated only the thread IDs of message
documents,
From: Austin Clements
This updates the message abstraction to support ghost messages: it
adds a message flag that distinguishes regular messages from ghost
messages, and an internal function for initializing a newly created
(blank) message as a ghost message.
---
These macros help clarify basic bit-twiddling code and are written to
be robust against C undefined behavior of shift operators.
---
lib/message.cc| 6 +++---
lib/notmuch-private.h | 11 +++
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/lib/message.cc
From: Austin Clements
This describes the structure of ghost mail documents. Ghost messages
are not yet implemented.
---
lib/database.cc | 20 ++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/lib/database.cc b/lib/database.cc
index
From: Austin Clements
This will be implemented over the next several patches. The feature
is not yet "enabled" (this does not add it to
NOTMUCH_FEATURES_CURRENT).
---
lib/database-private.h | 7 +++
lib/database.cc| 2 ++
2 files changed, 9 insertions(+)
diff
From: Austin Clements
In the interest of robustness, avoid undefined behavior of
sortable_unserialise if the date value is missing. This shouldn't
happen now, but ghost messages will have blank date values.
---
lib/message.cc | 3 +++
1 file changed, 3 insertions(+)
diff
From: Austin Clements
This moves the code to retrieve and clear the metadata thread ID out
of _notmuch_database_link_message into its own function. This will
simplify future changes.
---
lib/database.cc | 69 +++--
1 file
From: Austin Clements
Previously, this was performed by notmuch_database_add_message. This
happens to be the only caller currently (which is why this was safe),
but we're about to introduce more callers, and it makes more sense to
put responsibility for ID compression in the
This is v2 of the
id:1412345958-8278-1-git-send-email-aclements at csail.mit.edu. This
adds some comments and clarifies some code as suggested by David.
Patch 6 is new in v2 and adds some bit-twiddling macros for clarity
and robustness in later patches.
The diff from v1 is below.
diff --git
On Mon, 06 Oct 2014, David Bremner wrote:
> Austin Clements writes:
>
>>
>> I'm used to reading this stuff, so either way is fine with me. Do we
>> have bit set / clear / read macros?
>>
>
> I guess not. the things we have in query.cc are related but different.
I added some macros for doing
Make the width of the search name column expand/contract with the
length of the longest search name string.
Fix syntax highlighting to make the above work right.
Add the ability to use a blank search pattern to create a spacer
to break up searches into groups.
---
vim/notmuch.txt
Add an option to use 'notmuch insert' to save your sent mail.
---
Add -inbox as well.
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..a9044c4 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -58,6 +58,7
Add a few changes to moving between threads:
- It supports 'scrolloff' so that if you have this set it will move the
buffer and cursor so the next/prev email starts at the top of the
screen.
- It adds the ability to use shift-tab to go to the previous msg in
the thread.
Ian
---
This
Add an option to use 'notmuch insert' to save your sent mail.
---
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..cb280c3 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -58,6 +58,7 @@ let
Ian Main wrote:
> This patch adds a few changes to moving between threads:
>
> - It supports 'scrolloff' so that if you have this set it will move the
> buffer and cursor so the next/prev email starts at the top of the
> screen.
> - It adds the ability to use shift-tab to go to the previous
Quoth David Bremner on Oct 06 at 8:04 am:
> Austin Clements writes:
>
> > Quoth David Bremner on Oct 05 at 9:45 am:
> >> Austin Clements writes:
> >> > +void *local = talloc_new (NULL);
> >>
> >> What's the advantage of using a local talloc context here? Is this just
> >> an
Austin Clements writes:
>
> I'm used to reading this stuff, so either way is fine with me. Do we
> have bit set / clear / read macros?
>
I guess not. the things we have in query.cc are related but different.
>> > + else if (*i == "Tghost")
>> > + message->flags |= (1 <<
Austin Clements writes:
> Quoth David Bremner on Oct 05 at 9:45 am:
>> Austin Clements writes:
>> > +void *local = talloc_new (NULL);
>>
>> What's the advantage of using a local talloc context here? Is this just
>> an optimization?
>
> There are a few allocations that wind up going in to
Austin Clements writes:
> Quoth David Bremner on Oct 05 at 10:56 am:
>> Austin Clements writes:
>> > +if (new_features & NOTMUCH_FEATURE_GHOSTS) {
>> > + t_end = db->metadata_keys_end ("thread_id_");
>> > + for (t = db->metadata_keys_begin ("thread_id_"); t != t_end; ++t)
>> > +
This patch adds a few changes to moving between threads:
- It supports 'scrolloff' so that if you have this set it will move the
buffer and cursor so the next/prev email starts at the top of the
screen.
- It adds the ability to use shift-tab to go to the previous msg in
the thread.
Ian
Austin Clements acleme...@csail.mit.edu writes:
Quoth David Bremner on Oct 05 at 10:56 am:
Austin Clements acleme...@csail.mit.edu writes:
+if (new_features NOTMUCH_FEATURE_GHOSTS) {
+ t_end = db-metadata_keys_end (thread_id_);
+ for (t = db-metadata_keys_begin (thread_id_); t !=
Austin Clements acleme...@csail.mit.edu writes:
Quoth David Bremner on Oct 05 at 9:45 am:
Austin Clements acleme...@csail.mit.edu writes:
+void *local = talloc_new (NULL);
What's the advantage of using a local talloc context here? Is this just
an optimization?
There are a few
Austin Clements acleme...@csail.mit.edu writes:
I'm used to reading this stuff, so either way is fine with me. Do we
have bit set / clear / read macros?
I guess not. the things we have in query.cc are related but different.
+ else if (*i == Tghost)
+ message-flags |= (1
This patch adds a few changes to moving between threads:
- It supports 'scrolloff' so that if you have this set it will move the
buffer and cursor so the next/prev email starts at the top of the
screen.
- It adds the ability to use shift-tab to go to the previous msg in
the thread.
Ian
Quoth David Bremner on Oct 06 at 8:04 am:
Austin Clements acleme...@csail.mit.edu writes:
Quoth David Bremner on Oct 05 at 9:45 am:
Austin Clements acleme...@csail.mit.edu writes:
+void *local = talloc_new (NULL);
What's the advantage of using a local talloc context here? Is
On Mon, 06 Oct 2014, David Bremner da...@tethera.net wrote:
Austin Clements acleme...@csail.mit.edu writes:
I'm used to reading this stuff, so either way is fine with me. Do we
have bit set / clear / read macros?
I guess not. the things we have in query.cc are related but different.
I
Ian Main wrote:
This patch adds a few changes to moving between threads:
- It supports 'scrolloff' so that if you have this set it will move the
buffer and cursor so the next/prev email starts at the top of the
screen.
- It adds the ability to use shift-tab to go to the previous msg in
Add an option to use 'notmuch insert' to save your sent mail.
---
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..cb280c3 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -58,6 +58,7 @@ let
Add a few changes to moving between threads:
- It supports 'scrolloff' so that if you have this set it will move the
buffer and cursor so the next/prev email starts at the top of the
screen.
- It adds the ability to use shift-tab to go to the previous msg in
the thread.
Ian
---
This
Add an option to use 'notmuch insert' to save your sent mail.
---
Add -inbox as well.
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..a9044c4 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -58,6 +58,7
On Mon, Oct 06 2014, Ian Main im...@stemwinder.org wrote:
Add an option to use 'notmuch insert' to save your sent mail.
---
Add -inbox as well.
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..a9044c4
Make the width of the search name column expand/contract with the
length of the longest search name string.
Fix syntax highlighting to make the above work right.
Add the ability to use a blank search pattern to create a spacer
to break up searches into groups.
---
vim/notmuch.txt
On Sun, Oct 05 2014, Michal Sojka sojk...@fel.cvut.cz wrote:
The new outputs allow printing senders, recipients or both of matching
messages.
This code based on a patch from Jani Nikula.
OK, IMO...
1/4 OK
Before 2/4 add support for 'flag' arguments, drop the --output=addresses
option which
This is v2 of the
id:1412345958-8278-1-git-send-email-acleme...@csail.mit.edu. This
adds some comments and clarifies some code as suggested by David.
Patch 6 is new in v2 and adds some bit-twiddling macros for clarity
and robustness in later patches.
The diff from v1 is below.
diff --git
From: Austin Clements amdra...@mit.edu
This updates the message abstraction to support ghost messages: it
adds a message flag that distinguishes regular messages from ghost
messages, and an internal function for initializing a newly created
(blank) message as a ghost message.
---
lib/message.cc
From: Austin Clements amdra...@mit.edu
This describes the structure of ghost mail documents. Ghost messages
are not yet implemented.
---
lib/database.cc | 20 ++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/lib/database.cc b/lib/database.cc
index
These macros help clarify basic bit-twiddling code and are written to
be robust against C undefined behavior of shift operators.
---
lib/message.cc| 6 +++---
lib/notmuch-private.h | 11 +++
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/lib/message.cc
From: Austin Clements amdra...@mit.edu
This updates the thread linking code to use ghost messages instead of
user metadata to link messages into threads.
In contrast with the old approach, this is actually correct.
Previously, thread merging updated only the thread IDs of message
documents, not
From: Austin Clements amdra...@mit.edu
This moves the code to retrieve and clear the metadata thread ID out
of _notmuch_database_link_message into its own function. This will
simplify future changes.
---
lib/database.cc | 69 +++--
1 file
From: Austin Clements amdra...@mit.edu
Somehow this is the first upgrade pass that actually does *any* error
checking, so this also adds the bit of necessary infrastructure to
handle that.
---
lib/database.cc | 66 +++--
1 file changed, 64
From: Austin Clements amdra...@mit.edu
Previously, it was necessary to link new messages to children to work
around some (though not all) problems with the old metadata-based
approach to stored thread IDs. With ghost messages, this is no longer
necessary, so don't bother with child linking when
From: Austin Clements amdra...@mit.edu
In the interest of robustness, avoid undefined behavior of
sortable_unserialise if the date value is missing. This shouldn't
happen now, but ghost messages will have blank date values.
---
lib/message.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git
---
test/T530-upgrade.sh | 21 +
1 file changed, 21 insertions(+)
diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh
index c4c4ac8..6b42a69 100755
--- a/test/T530-upgrade.sh
+++ b/test/T530-upgrade.sh
@@ -116,4 +116,25 @@ MAIL_DIR/bar/new/21:2,
MAIL_DIR/bar/new/22:2,
From: Austin Clements amdra...@mit.edu
This will be implemented over the next several patches. The feature
is not yet enabled (this does not add it to
NOTMUCH_FEATURES_CURRENT).
---
lib/database-private.h | 7 +++
lib/database.cc| 2 ++
2 files changed, 9 insertions(+)
diff --git
From: Austin Clements amdra...@mit.edu
Previously, this was performed by notmuch_database_add_message. This
happens to be the only caller currently (which is why this was safe),
but we're about to introduce more callers, and it makes more sense to
put responsibility for ID compression in the
From: Austin Clements amdra...@mit.edu
This fixes the broken thread order test.
---
lib/database-private.h| 2 +-
test/T260-thread-order.sh | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/database-private.h b/lib/database-private.h
index e2e4bc8..15e03cc 100644
---
Tomi Ollila wrote:
On Mon, Oct 06 2014, Ian Main im...@stemwinder.org wrote:
Add an option to use 'notmuch insert' to save your sent mail.
---
Add -inbox as well.
vim/notmuch.vim | 17 +
1 file changed, 17 insertions(+)
diff --git a/vim/notmuch.vim
54 matches
Mail list logo