Previously body: was a compulsory field in a message. The new
--body=false option causes notmuch show to omit this field so update
schemata to reflect this.
---
devel/schemata |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/devel/schemata b/devel/schemata
index
---
man/man1/notmuch-show.1 | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
index 5fa590e..91c19d8 100644
--- a/man/man1/notmuch-show.1
+++ b/man/man1/notmuch-show.1
@@ -154,6 +154,22 @@ The default is
---
test/json |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/json b/test/json
index 6439788..709b34f 100755
--- a/test/json
+++ b/test/json
@@ -7,6 +7,15 @@ add_message "[subject]=\"json-show-subject\"" "[date]=\"Sat,
01 Jan 2000 12:00:0
output=$(notmuch
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two (and in some cases a speed up
of more than a
Version 2 of this patch set (version 1 at
id:"1343060241-18283-1-git-send-email-markwalters1009 at gmail.com"). This
corrects the errors Austin spotted in v1, and makes it explicit that
--body=false and --part>0 are incompatible.
Mark Walters (4):
cli: add --body=true|false option to
Previously body: was a compulsory field in a message. The new
--body=false option causes notmuch show to omit this field so update
schemata to reflect this.
---
devel/schemata |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/devel/schemata b/devel/schemata
index
---
man/man1/notmuch-show.1 | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
index 5fa590e..d781c47 100644
--- a/man/man1/notmuch-show.1
+++ b/man/man1/notmuch-show.1
@@ -154,6 +154,22 @@ The default is
---
test/json |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/json b/test/json
index 6439788..709b34f 100755
--- a/test/json
+++ b/test/json
@@ -7,6 +7,15 @@ add_message "[subject]=\"json-show-subject\"" "[date]=\"Sat,
01 Jan 2000 12:00:0
output=$(notmuch
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two (and in some cases a speed up
of more than a
After discussion on irc today here is another version of the omit body
patches. The conclusion on irc was that the option should just make
the body: field in the JSON output optional. The --body=false option
omits this field. The default remains --body=true including the body:
field in the
On Mon, Jul 23 2012, craven at gmx.net wrote:
> From:
>
> Currently there is no easy way to add support for different structured
> formatters (like JSON). For example, adding support for S-Expressions
> would result in code duplication.
>
> This patch series amends the situation by introducing
LGTM.
Quoth Mark Walters on Jul 23 at 6:57 pm:
> Version 2 of this patch set (version 1 at
> id:"1343060241-18283-1-git-send-email-markwalters1009 at gmail.com"). This
> corrects the errors Austin spotted in v1, and makes it explicit that
> --body=false and --part>0 are incompatible.
>
>
>
Quoth Mark Walters on Jul 23 at 5:17 pm:
> ---
> man/man1/notmuch-show.1 | 16
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
> index 5fa590e..d781c47 100644
> --- a/man/man1/notmuch-show.1
> +++
Quoth Mark Walters on Jul 23 at 5:17 pm:
> This option allows the caller to suppress the output of the bodies of
> the messages. Currently this is only implemented for format=json.
>
> This is used by notmuch-pick.el (although not needed) because it gives
> a speed-up of at least a factor of a
From:
This patch switches from the current ad-hoc printer to the structured
formatters in sprinter.h, sprinter-text.c and sprinter-json.c.
The JSON tests are changed slightly in order to make them PASS for the
new structured output formatter.
The text tests pass without
From:
Using the new structured printer support in sprinter.h, implement
sprinter_json_create, which returns a new JSON structured output
formatter. The formatter prints output similar to the existing JSON, but
with differences in whitespace (mostly newlines, --output=summary
From:
This patch adds a new struct type sprinter_t, which is used for
structured formatting, e.g. JSON or S-Expressions. The structure printer
is heavily based on code from Austin Clements
(id:87d34hsdx8.fsf at awakening.csail.mit.edu).
It includes the following functions:
From:
Currently there is no easy way to add support for different structured
formatters (like JSON). For example, adding support for S-Expressions
would result in code duplication.
This patch series amends the situation by introducing structured
formatters, which allow different
changed, 51 insertions(+), 11 deletions(-)
Untested, but LGTM.
jamie.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL:
<http://notmuchmail.org/pipermail/notmuch/attachments/20120723/2355377f/attachment.pgp>
LGTM
Quoth craven at gmx.net on Jul 23 at 12:39 pm:
> From:
>
> Currently there is no easy way to add support for different structured
> formatters (like JSON). For example, adding support for S-Expressions
> would result in code duplication.
>
> This patch series amends the situation by
From: cra...@gmx.net
Using the new structured printer support in sprinter.h, implement
sprinter_json_create, which returns a new JSON structured output
formatter. The formatter prints output similar to the existing JSON, but
with differences in whitespace (mostly newlines, --output=summary prints
From: cra...@gmx.net
Currently there is no easy way to add support for different structured
formatters (like JSON). For example, adding support for S-Expressions
would result in code duplication.
This patch series amends the situation by introducing structured
formatters, which allow different
From: cra...@gmx.net
This patch switches from the current ad-hoc printer to the structured
formatters in sprinter.h, sprinter-text.c and sprinter-json.c.
The JSON tests are changed slightly in order to make them PASS for the
new structured output formatter.
The text tests pass without
Glad to hear I have another user!
My function bbdb/notmuch-snarf-to doesn't work yet on more than one
recipient. Once I get that working, I'd like to do what you suggest,
and have some hook call bbdb/notmuch-snarf-to every time I send an
email.
Probably not before late August, though.
bergey
LGTM
Quoth cra...@gmx.net on Jul 23 at 12:39 pm:
From: cra...@gmx.net
Currently there is no easy way to add support for different structured
formatters (like JSON). For example, adding support for S-Expressions
would result in code duplication.
This patch series amends the situation by
On Mon, Jul 23 2012, cra...@gmx.net wrote:
From: cra...@gmx.net
Currently there is no easy way to add support for different structured
formatters (like JSON). For example, adding support for S-Expressions
would result in code duplication.
This patch series amends the situation by
After discussion on irc today here is another version of the omit body
patches. The conclusion on irc was that the option should just make
the body: field in the JSON output optional. The --body=false option
omits this field. The default remains --body=true including the body:
field in the
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two (and in some cases a speed up
of more than a
---
test/json |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/json b/test/json
index 6439788..709b34f 100755
--- a/test/json
+++ b/test/json
@@ -7,6 +7,15 @@ add_message [subject]=\json-show-subject\ [date]=\Sat,
01 Jan 2000 12:00:0
output=$(notmuch show
---
man/man1/notmuch-show.1 | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
index 5fa590e..d781c47 100644
--- a/man/man1/notmuch-show.1
+++ b/man/man1/notmuch-show.1
@@ -154,6 +154,22 @@ The default is
Previously body: was a compulsory field in a message. The new
--body=false option causes notmuch show to omit this field so update
schemata to reflect this.
---
devel/schemata |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/devel/schemata b/devel/schemata
index
Quoth Mark Walters on Jul 23 at 5:17 pm:
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two
Quoth Mark Walters on Jul 23 at 5:17 pm:
---
man/man1/notmuch-show.1 | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
index 5fa590e..d781c47 100644
--- a/man/man1/notmuch-show.1
+++
Version 2 of this patch set (version 1 at
id:1343060241-18283-1-git-send-email-markwalters1...@gmail.com). This
corrects the errors Austin spotted in v1, and makes it explicit that
--body=false and --part0 are incompatible.
Mark Walters (4):
cli: add --body=true|false option to notmuch-show.c
This option allows the caller to suppress the output of the bodies of
the messages. Currently this is only implemented for format=json.
This is used by notmuch-pick.el (although not needed) because it gives
a speed-up of at least a factor of a two (and in some cases a speed up
of more than a
---
test/json |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/json b/test/json
index 6439788..709b34f 100755
--- a/test/json
+++ b/test/json
@@ -7,6 +7,15 @@ add_message [subject]=\json-show-subject\ [date]=\Sat,
01 Jan 2000 12:00:0
output=$(notmuch show
---
man/man1/notmuch-show.1 | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1
index 5fa590e..91c19d8 100644
--- a/man/man1/notmuch-show.1
+++ b/man/man1/notmuch-show.1
@@ -154,6 +154,22 @@ The default is
Previously body: was a compulsory field in a message. The new
--body=false option causes notmuch show to omit this field so update
schemata to reflect this.
---
devel/schemata |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/devel/schemata b/devel/schemata
index
LGTM.
Quoth Mark Walters on Jul 23 at 6:57 pm:
Version 2 of this patch set (version 1 at
id:1343060241-18283-1-git-send-email-markwalters1...@gmail.com). This
corrects the errors Austin spotted in v1, and makes it explicit that
--body=false and --part0 are incompatible.
Mark Walters
On Mon, Jul 23 2012, Mark Walters markwalters1...@gmail.com wrote:
Version 2 of this patch set (version 1 at
id:1343060241-18283-1-git-send-email-markwalters1...@gmail.com). This
corrects the errors Austin spotted in v1, and makes it explicit that
--body=false and --part0 are incompatible.
40 matches
Mail list logo