unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Re:
  2011-10-10 13:49 ` david
@ 2011-10-16 20:34   ` Thomas Schwinge
  2011-10-16 23:25     ` Re: David Bremner
  0 siblings, 1 reply; 65+ messages in thread
From: Thomas Schwinge @ 2011-10-16 20:34 UTC (permalink / raw)
  To: david; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]

Hi!

On Mon, 10 Oct 2011 10:49:15 -0300, david@tethera.net wrote:
> OK, here is my proposal to add search terms to notmuch dump.

Having worked in the same area ;-), I felt competent to review this.  And
I definitely do like David's approach.  The patches look good, with the
following comments:

What's missing is adding (roughly) the same text to the notmuch manpage,
``notmuch help dump'', NEWS file.  These should be added to the
respective patches, for enhance functionality and deprecation of output
filename.

> 2b7781d test: all dump-restore tests should be working now
> 7a203d6 notmuch-dump: treat any remaining arguments after the filename as search t

I would suggest to combine these two into one patch: enhance
implementation (7a203d6) and update the tests (2b7781d) is one unit.

> d6715d7 test: add tests for command line arguments to notmuch-dump

Specifically:

On Mon, 10 Oct 2011 10:49:17 -0300, david@tethera.net wrote:
> The plan is to add the possibility of search terms after the file name,
> and the use of -- to stop looking for an output file name.
> ---
>  test/dump-restore |   28 ++++++++++++++++++++++++++++
>  1 files changed, 28 insertions(+), 0 deletions(-)
> 
> diff --git a/test/dump-restore b/test/dump-restore
> index 96c4f19..699337c 100755
> --- a/test/dump-restore
> +++ b/test/dump-restore
> @@ -8,6 +8,34 @@ test_expect_success "Dumping all tags" "generate_message &&
>  notmuch new &&
>  notmuch dump > dump.expected"
>  
> +test_begin_subtest "dump outfile"
> +notmuch dump dump-outfile.actual
> +test_expect_equal_file dump.expected dump-outfile.actual
> +
> +test_begin_subtest "dump outfile --"
> +notmuch dump dump-1-arg-dash.actual
> +test_expect_equal_file dump.expected dump-1-arg-dash.actual
> 
> [...]

I don't understand the purpose of the second test above.  Was this meant
to be ``notmuch dump dump-1-arg-dash.actual --'' (as suggested by the
description), or ``notmuch dump -- > dump-1-arg-dash.actual''?


Grüße,
 Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2011-10-16 20:34   ` Thomas Schwinge
@ 2011-10-16 23:25     ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2011-10-16 23:25 UTC (permalink / raw)
  To: Thomas Schwinge; +Cc: notmuch

On Sun, 16 Oct 2011 22:34:29 +0200, Thomas Schwinge <thomas@schwinge.name> wrote:

> Having worked in the same area ;-), I felt competent to review this.  And
> I definitely do like David's approach.  The patches look good, with the
> following comments:

Thanks for the review.  I pushed a modified version of the series which
I think fixed all of the things you noticed.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH] emacs: Quote MML tags in replies
@ 2012-01-19 18:43 Aaron Ecay
  2012-01-19 22:23 ` Pieter Praet
                   ` (4 more replies)
  0 siblings, 5 replies; 65+ messages in thread
From: Aaron Ecay @ 2012-01-19 18:43 UTC (permalink / raw)
  To: notmuch

Emacs message-mode uses certain text strings to indicate how to attach
files to outgoing mail.  If these are present in the text of an email,
and a user is tricked into replying to the message, the user’s files
could be exposed.
---

To demonstrate this, open a reply to this message then remove the
exclamation marks after the hash marks below.  Create a file in your
home directory called passwd.  Then press C-u M-x mml-preview.  A
(possibly base64-encoded) version of your ~/passwd file will replace
the following lines:

<#!part type="application/octet-stream" filename="~/passwd"
disposition=attachment description=foo>
<#!/part>

It works equally well (and more dangerously) with /etc/passwd, but I
didn't use that filename here to avoid the danger of someone
accidentally attaching their /etc/passwd to a reply in this thread!

 emacs/notmuch-mua.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index d8ab822..c25c6b9 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -115,7 +115,8 @@ list."
     (push-mark))
   (set-buffer-modified-p nil)
 
-  (message-goto-body))
+  (message-goto-body)
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
@ 2012-01-19 22:23 ` Pieter Praet
  2012-01-19 22:46   ` Austin Clements
  2012-01-19 22:48 ` Austin Clements
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-01-19 22:23 UTC (permalink / raw)
  To: Aaron Ecay, notmuch

On Thu, 19 Jan 2012 13:43:09 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> Emacs message-mode uses certain text strings to indicate how to attach
> files to outgoing mail.  If these are present in the text of an email,
> and a user is tricked into replying to the message, the user’s files
> could be exposed.
> ---
> 
> To demonstrate this, open a reply to this message then remove the
> exclamation marks after the hash marks below.  Create a file in your
> home directory called passwd.  Then press C-u M-x mml-preview.  A
> (possibly base64-encoded) version of your ~/passwd file will replace
> the following lines:
> 
> <#!part type="application/octet-stream" filename="~/passwd"
> disposition=attachment description=foo>
> <#!/part>
> 
> It works equally well (and more dangerously) with /etc/passwd, but I
> didn't use that filename here to avoid the danger of someone
> accidentally attaching their /etc/passwd to a reply in this thread!
> 
>  emacs/notmuch-mua.el |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index d8ab822..c25c6b9 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -115,7 +115,8 @@ list."
>      (push-mark))
>    (set-buffer-modified-p nil)
>  
> -  (message-goto-body))
> +  (message-goto-body)
> +  (mml-quote-region (point) (mark)))
>  
>  (defun notmuch-mua-forward-message ()
>    (message-forward)
> -- 
> 1.7.8.3
> 
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

Wow, nice catch!  You've just earned yourself a raise!

An urgent +1 !


### OT:
For some reason, `mml-quote-region' explicitly re-quotes
already quoted MML tags:

  "<#!*/?\\(multipart\\|part\\|external\\|mml\\)"

Why is that ?


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:23 ` Pieter Praet
@ 2012-01-19 22:46   ` Austin Clements
  2012-01-19 22:52     ` Aaron Ecay
  0 siblings, 1 reply; 65+ messages in thread
From: Austin Clements @ 2012-01-19 22:46 UTC (permalink / raw)
  To: Aaron Ecay, Pieter Praet; +Cc: notmuch

Quoth Pieter Praet on Jan 19 at 11:23 pm:
> On Thu, 19 Jan 2012 13:43:09 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> > Emacs message-mode uses certain text strings to indicate how to attach
> > files to outgoing mail.  If these are present in the text of an email,
> > and a user is tricked into replying to the message, the user’s files
> > could be exposed.
> > ---
> > 
> > To demonstrate this, open a reply to this message then remove the
> > exclamation marks after the hash marks below.  Create a file in your
> > home directory called passwd.  Then press C-u M-x mml-preview.  A
> > (possibly base64-encoded) version of your ~/passwd file will replace
> > the following lines:
> > 
> > <#!part type="application/octet-stream" filename="~/passwd"
> > disposition=attachment description=foo>
> > <#!/part>
> > 
> > It works equally well (and more dangerously) with /etc/passwd, but I
> > didn't use that filename here to avoid the danger of someone
> > accidentally attaching their /etc/passwd to a reply in this thread!
> > 
> >  emacs/notmuch-mua.el |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> > index d8ab822..c25c6b9 100644
> > --- a/emacs/notmuch-mua.el
> > +++ b/emacs/notmuch-mua.el
> > @@ -115,7 +115,8 @@ list."
> >      (push-mark))
> >    (set-buffer-modified-p nil)
> >  
> > -  (message-goto-body))
> > +  (message-goto-body)
> > +  (mml-quote-region (point) (mark)))
> >  
> >  (defun notmuch-mua-forward-message ()
> >    (message-forward)
> 
> Wow, nice catch!  You've just earned yourself a raise!

Indeed.

> An urgent +1 !
> 
> 
> ### OT:
> For some reason, `mml-quote-region' explicitly re-quotes
> already quoted MML tags:
> 
>   "<#!*/?\\(multipart\\|part\\|external\\|mml\\)"
> 
> Why is that ?

Probably so the transformation is invertible, though as far as I can
tell there's no mml-unquote-region.

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
  2012-01-19 22:23 ` Pieter Praet
@ 2012-01-19 22:48 ` Austin Clements
  2012-01-19 22:56   ` Aaron Ecay
  2012-01-20  7:33 ` [PATCH] emacs: Quote " David Edmondson
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 65+ messages in thread
From: Austin Clements @ 2012-01-19 22:48 UTC (permalink / raw)
  To: Aaron Ecay; +Cc: notmuch

LGTM and I think it could go in despite my two comments below.

Quoth Aaron Ecay on Jan 19 at  1:43 pm:
> Emacs message-mode uses certain text strings to indicate how to attach
> files to outgoing mail.  If these are present in the text of an email,
> and a user is tricked into replying to the message, the user’s files
> could be exposed.
> ---
> 
> To demonstrate this, open a reply to this message then remove the
> exclamation marks after the hash marks below.  Create a file in your
> home directory called passwd.  Then press C-u M-x mml-preview.  A
> (possibly base64-encoded) version of your ~/passwd file will replace
> the following lines:
> 
> <#!part type="application/octet-stream" filename="~/passwd"
> disposition=attachment description=foo>
> <#!/part>
> 
> It works equally well (and more dangerously) with /etc/passwd, but I
> didn't use that filename here to avoid the danger of someone
> accidentally attaching their /etc/passwd to a reply in this thread!
> 
>  emacs/notmuch-mua.el |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index d8ab822..c25c6b9 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -115,7 +115,8 @@ list."
>      (push-mark))
>    (set-buffer-modified-p nil)
>  
> -  (message-goto-body))
> +  (message-goto-body)
> +  (mml-quote-region (point) (mark)))

Did you consider using point-max instead of mark?  IIRC, that mark was
very recently introduced which, perhaps irrationally, makes it seem
less future-proof to me.

>  
>  (defun notmuch-mua-forward-message ()
>    (message-forward)

Speaking of future-proofing, it would be good to have a test.

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:46   ` Austin Clements
@ 2012-01-19 22:52     ` Aaron Ecay
  2012-01-19 23:19       ` Pieter Praet
  0 siblings, 1 reply; 65+ messages in thread
From: Aaron Ecay @ 2012-01-19 22:52 UTC (permalink / raw)
  To: Austin Clements, Pieter Praet; +Cc: notmuch

On Thu, 19 Jan 2012 17:46:31 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> > ### OT:
> > For some reason, `mml-quote-region' explicitly re-quotes
> > already quoted MML tags:
> > 
> >   "<#!*/?\\(multipart\\|part\\|external\\|mml\\)"
> > 
> > Why is that ?
> 
> Probably so the transformation is invertible, though as far as I can
> tell there's no mml-unquote-region.

Sending the message (or doing M-x mml-preview) undoes the quoting.  So
if the original message contains an already-quoted tag, constructing the
reply double-quotes it, and sending the reply will produce the original
single-quoted tag again.

-- 
Aaron Ecay

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:48 ` Austin Clements
@ 2012-01-19 22:56   ` Aaron Ecay
  2012-01-19 23:21     ` Pieter Praet
  2012-01-26 19:16     ` Austin Clements
  0 siblings, 2 replies; 65+ messages in thread
From: Aaron Ecay @ 2012-01-19 22:56 UTC (permalink / raw)
  To: Austin Clements; +Cc: notmuch

On Thu, 19 Jan 2012 17:48:42 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> Did you consider using point-max instead of mark?  IIRC, that mark was
> very recently introduced which, perhaps irrationally, makes it seem
> less future-proof to me.

Well, if the patch goes in and someone changes the code so that it no
longer sets the mark (in the same way), they will be the one breaking
stuff, and they’ll have to come up with the fix themself.  Using point-max
would include the signature in the quoting as well.  It would probably be
fairly odd to want to put an MML tag in one’s signature, but that doesn’t
mean that we should break that usage.

> 
> >  
> >  (defun notmuch-mua-forward-message ()
> >    (message-forward)
> 
> Speaking of future-proofing, it would be good to have a test.

It would.  ;)  I’ll work on one.

-- 
Aaron Ecay

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:52     ` Aaron Ecay
@ 2012-01-19 23:19       ` Pieter Praet
  0 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-01-19 23:19 UTC (permalink / raw)
  To: Aaron Ecay, Austin Clements; +Cc: notmuch

On Thu, 19 Jan 2012 17:52:23 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> On Thu, 19 Jan 2012 17:46:31 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> > > ### OT:
> > > For some reason, `mml-quote-region' explicitly re-quotes
> > > already quoted MML tags:
> > > 
> > >   "<#!*/?\\(multipart\\|part\\|external\\|mml\\)"
> > > 
> > > Why is that ?
> > 
> > Probably so the transformation is invertible, though as far as I can
> > tell there's no mml-unquote-region.
> 
> Sending the message (or doing M-x mml-preview) undoes the quoting.  So
> if the original message contains an already-quoted tag, constructing the
> reply double-quotes it, and sending the reply will produce the original
> single-quoted tag again.
> 

Thanks!

This list just keeps on giving;  Free education, I tell ya...


> -- 
> Aaron Ecay


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:56   ` Aaron Ecay
@ 2012-01-19 23:21     ` Pieter Praet
  2012-01-20  3:26       ` Aaron Ecay
  2012-01-26 19:16     ` Austin Clements
  1 sibling, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-01-19 23:21 UTC (permalink / raw)
  To: Aaron Ecay, Austin Clements; +Cc: notmuch

On Thu, 19 Jan 2012 17:56:16 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> On Thu, 19 Jan 2012 17:48:42 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> > Did you consider using point-max instead of mark?  IIRC, that mark was
> > very recently introduced which, perhaps irrationally, makes it seem
> > less future-proof to me.
> 
> Well, if the patch goes in and someone changes the code so that it no
> longer sets the mark (in the same way), they will be the one breaking
> stuff, and they’ll have to come up with the fix themself.  [...]

True that.


> [...] Using point-max
> would include the signature in the quoting as well.  It would probably be
> fairly odd to want to put an MML tag in one’s signature, but that doesn’t
> mean that we should break that usage.
> 

So, would I be right to assume MML tags in signatures are never
evaluated to begin with?  Otherwise, there would still be a security
hole, no?


> > 
> > >  
> > >  (defun notmuch-mua-forward-message ()
> > >    (message-forward)
> > 
> > Speaking of future-proofing, it would be good to have a test.
> 
> It would.  ;)  I’ll work on one.
> 

Thanks!

These might save you some time:
  id:"1310313335-4159-1-git-send-email-pieter@praet.org"


> -- 
> Aaron Ecay
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 23:21     ` Pieter Praet
@ 2012-01-20  3:26       ` Aaron Ecay
  2012-01-22  6:39         ` Pieter Praet
  0 siblings, 1 reply; 65+ messages in thread
From: Aaron Ecay @ 2012-01-20  3:26 UTC (permalink / raw)
  To: Pieter Praet, Austin Clements; +Cc: notmuch

On Fri, 20 Jan 2012 00:21:08 +0100, Pieter Praet <pieter@praet.org> wrote:
> So, would I be right to assume MML tags in signatures are never
> evaluated to begin with?  Otherwise, there would still be a security
> hole, no?

I am thinking of MML tags that a user puts in their own signature.
If that case is a security hole, then the hole is in the user’s brain
and not in notmuch.  :)

-- 
Aaron Ecay

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
  2012-01-19 22:23 ` Pieter Praet
  2012-01-19 22:48 ` Austin Clements
@ 2012-01-20  7:33 ` David Edmondson
  2012-01-20 12:14 ` David Bremner
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
  4 siblings, 0 replies; 65+ messages in thread
From: David Edmondson @ 2012-01-20  7:33 UTC (permalink / raw)
  To: Aaron Ecay, notmuch

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

On Thu, 19 Jan 2012 13:43:09 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> -  (message-goto-body))
> +  (message-goto-body)
> +  (mml-quote-region (point) (mark)))

Obviously good. It would be nice to have a comment about why it's `mark'
and not `point-max'. In fact, it would be good to have a comment
explaining why `mml-quote-region' is required.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
                   ` (2 preceding siblings ...)
  2012-01-20  7:33 ` [PATCH] emacs: Quote " David Edmondson
@ 2012-01-20 12:14 ` David Bremner
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
  4 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-01-20 12:14 UTC (permalink / raw)
  To: Aaron Ecay, notmuch

On Thu, 19 Jan 2012 13:43:09 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> Emacs message-mode uses certain text strings to indicate how to attach
> files to outgoing mail.  If these are present in the text of an email,
> and a user is tricked into replying to the message, the user’s files
> could be exposed.
> ---

Can you include a NEWS patch against release with next version? We
should probably roll 0.11.1 with this fix.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-20  3:26       ` Aaron Ecay
@ 2012-01-22  6:39         ` Pieter Praet
  0 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-01-22  6:39 UTC (permalink / raw)
  To: Aaron Ecay, Austin Clements; +Cc: notmuch

On Thu, 19 Jan 2012 22:26:02 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> On Fri, 20 Jan 2012 00:21:08 +0100, Pieter Praet <pieter@praet.org> wrote:
> > So, would I be right to assume MML tags in signatures are never
> > evaluated to begin with?  Otherwise, there would still be a security
> > hole, no?
> 
> I am thinking of MML tags that a user puts in their own signature.
> If that case is a security hole, then the hole is in the user’s brain
> and not in notmuch.  :)
> 

Ah, right...  I didn't bother checking what the mark's position would be,
so assumed we were talking about the signature in the *quoted* message.

Won't happen again :)

> -- 
> Aaron Ecay


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] emacs: Quote MML tags in replies
  2012-01-19 22:56   ` Aaron Ecay
  2012-01-19 23:21     ` Pieter Praet
@ 2012-01-26 19:16     ` Austin Clements
  2012-01-29  6:07       ` [PATCH 1/2] emacs: Add tests for quoting of " Aaron Ecay
  1 sibling, 1 reply; 65+ messages in thread
From: Austin Clements @ 2012-01-26 19:16 UTC (permalink / raw)
  To: Aaron Ecay; +Cc: notmuch

Quoth Aaron Ecay on Jan 19 at  5:56 pm:
> On Thu, 19 Jan 2012 17:48:42 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> > >  
> > >  (defun notmuch-mua-forward-message ()
> > >    (message-forward)
> > 
> > Speaking of future-proofing, it would be good to have a test.
> 
> It would.  ;)  I’ll work on one.

Were you planning to roll a new version of this patch with a test?

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH 1/2] emacs: Add tests for quoting of MML tags in replies
  2012-01-26 19:16     ` Austin Clements
@ 2012-01-29  6:07       ` Aaron Ecay
  2012-01-29  6:07         ` [PATCH 2/2] emacs: Quote " Aaron Ecay
  2012-01-30 21:15         ` [PATCH 1/2] emacs: Add tests for quoting of " David Bremner
  0 siblings, 2 replies; 65+ messages in thread
From: Aaron Ecay @ 2012-01-29  6:07 UTC (permalink / raw)
  To: notmuch

The test is broken at this time; the next commit will introduce a fix.
---

Thanks for the reminder, Austin.  Things got hectic, and it took a
little bludgeoning to get the test suite to behave.  I *think* I got
it, although I am by no means confident.  Specifically, I am seeing
some unrelated(?) test failures in the emacs suite, so I'd appreciate
it if someone with a well-functioning test suite tried out these
patches before they are pushed, to be sure I didn't break anything.

I tried to follow the "first patch introduces a failing test, second
patch fixes it" convention.

 test/emacs                           |   14 ++++++++++++++
 test/emacs.expected-output/quote-mml |    9 +++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 test/emacs.expected-output/quote-mml

diff --git a/test/emacs b/test/emacs
index 8ca4c8a..a57513a 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,20 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags on reply"
+test_subtest_known_broken
+add_message '[from]="1337 h4xor <test@test.com>"' \
+            '[to]="Unsuspecting rube <luser@securityhole.com>"' \
+            '[subject]="hackety hack hack"' \
+            '[body]="<#part type="application/octet-stream" filename="foo" disposition=attachment>
+<#/part>"' \
+            '[id]="test-mml-quoting@msg.id"'
+test_emacs "(notmuch-show \"id:test-mml-quoting@msg.id\")
+            (notmuch-show-reply-sender)
+            (test-output)"
+test_expect_equal_file OUTPUT "$EXPECTED/quote-mml"
+
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
diff --git a/test/emacs.expected-output/quote-mml b/test/emacs.expected-output/quote-mml
new file mode 100644
index 0000000..01bd2ca
--- /dev/null
+++ b/test/emacs.expected-output/quote-mml
@@ -0,0 +1,9 @@
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 1337 h4xor <test@test.com>
+Subject: Re: hackety hack hack
+In-Reply-To: <test-mml-quoting@msg.id>
+Fcc: /home/aecay/development/notmuch/test/tmp.emacs/mail/sent
+--text follows this line--
+On Fri, 05 Jan 2001 15:43:57 +0000, 1337 h4xor <test@test.com> wrote:
+> <#!part type=application/octet-stream filename=foo disposition=attachment>
+> <#!/part>
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH 2/2] emacs: Quote MML tags in replies
  2012-01-29  6:07       ` [PATCH 1/2] emacs: Add tests for quoting of " Aaron Ecay
@ 2012-01-29  6:07         ` Aaron Ecay
  2012-01-30  8:23           ` Tomi Ollila
  2012-01-30 21:15         ` [PATCH 1/2] emacs: Add tests for quoting of " David Bremner
  1 sibling, 1 reply; 65+ messages in thread
From: Aaron Ecay @ 2012-01-29  6:07 UTC (permalink / raw)
  To: notmuch

Emacs message-mode uses certain text strings to indicate how to attach
files to outgoing mail.  If these are present in the text of an email,
and a user is tricked into replying to the message, the user’s files
could be exposed.
---
 NEWS                 |   18 ++++++++++++++++++
 emacs/notmuch-mua.el |    3 ++-
 test/emacs           |    1 -
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 2acdce5..c8b90c7 100644
--- a/NEWS
+++ b/NEWS
@@ -56,6 +56,24 @@ Compatibility with GMime 2.6
   However, a bug in current GMime 2.6 causes notmuch not to report
   signatures where the signer key is unavailable (GNOME bug 668085).
 
+Notmuch 0.11.1 (2012-xx-xx)
+===========================
+
+Emacs Interface
+---------------
+
+Quote MML tags in replies
+
+  MML tags are text codes that Emacs uses to indicate attachments
+  (among other things) in messages being composed.  The Emacs
+  interface did not quote MML tags in the quoted text of a reply.  If
+  a user could be tricked into replying to a maliciously formatted
+  message and not editing out the MML tags from the quoted text, this
+  could lead to files from the user's machine being attached to the
+  outgoing message.  The Emacs interface now quotes these tags in
+  reply text, so that they cannot have an effect on the outgoing
+  message.
+
 Notmuch 0.11 (2012-01-13)
 =========================
 
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 023645e..32c376d 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -116,7 +116,8 @@ list."
     (push-mark))
   (set-buffer-modified-p nil)
 
-  (message-goto-body))
+  (message-goto-body)
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
diff --git a/test/emacs b/test/emacs
index a57513a..affcca4 100755
--- a/test/emacs
+++ b/test/emacs
@@ -274,7 +274,6 @@ EOF
 test_expect_equal_file OUTPUT EXPECTED
 
 test_begin_subtest "Quote MML tags on reply"
-test_subtest_known_broken
 add_message '[from]="1337 h4xor <test@test.com>"' \
             '[to]="Unsuspecting rube <luser@securityhole.com>"' \
             '[subject]="hackety hack hack"' \
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: [PATCH 2/2] emacs: Quote MML tags in replies
  2012-01-29  6:07         ` [PATCH 2/2] emacs: Quote " Aaron Ecay
@ 2012-01-30  8:23           ` Tomi Ollila
  0 siblings, 0 replies; 65+ messages in thread
From: Tomi Ollila @ 2012-01-30  8:23 UTC (permalink / raw)
  To: Aaron Ecay, notmuch

On Sun, 29 Jan 2012 01:07:08 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> Emacs message-mode uses certain text strings to indicate how to attach
> files to outgoing mail.  If these are present in the text of an email,
> and a user is tricked into replying to the message, the user’s files
> could be exposed.
> ---

[ ... ]

>  
> -  (message-goto-body))
> +  (message-goto-body)
> +  (mml-quote-region (point) (mark)))

As asked before, comment why mmm-quote-region is needed 
and why (mark) is used instead of (point-max) is there.
We know the reasons but future viewers of the code will
wonder a while...

Tomi

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH 1/2] emacs: Add tests for quoting of MML tags in replies
  2012-01-29  6:07       ` [PATCH 1/2] emacs: Add tests for quoting of " Aaron Ecay
  2012-01-29  6:07         ` [PATCH 2/2] emacs: Quote " Aaron Ecay
@ 2012-01-30 21:15         ` David Bremner
  1 sibling, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-01-30 21:15 UTC (permalink / raw)
  To: Aaron Ecay, notmuch

On Sun, 29 Jan 2012 01:07:07 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:
> The test is broken at this time; the next commit will introduce a fix.
> ---

Hi Aaron.

Applied to master test fails for me as follows (after the second patch
is applied as well).

	 In-Reply-To: <test-mml-quoting@msg.id>
	-Fcc: /home/aecay/development/notmuch/test/tmp.emacs/mail/sent
	+Fcc: /home/bremner/software/upstream/notmuch/test/tmp.emacs/mail/sent

I guess it should force Fcc somehow in the test; didn't have time to dig
further.

Do you mind making another round, against the release branch this time
and taking the commit message comments into account?

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2012-01-25  0:06 ` Jameson Graef Rollins
@ 2012-01-31  3:28   ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-01-31  3:28 UTC (permalink / raw)
  To: Jameson Graef Rollins, Notmuch Mail

On Tue, 24 Jan 2012 16:06:15 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
> Final v3 rework of this patch series:
> 

pushed.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* emacs: quote MML tags in replies
  2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
                   ` (3 preceding siblings ...)
  2012-01-20 12:14 ` David Bremner
@ 2012-02-01  2:49 ` Dmitry Kurochkin
  2012-02-01  2:49   ` [PATCH v3 1/2] test: add tests for quoting of " Dmitry Kurochkin
                     ` (3 more replies)
  4 siblings, 4 replies; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-01  2:49 UTC (permalink / raw)
  To: notmuch

Hi Aaron.

Thanks for your work!  I took the liberty to do some cleanups for your
patch.  Below is a detailed list of changes.

Hope this helps.

Changes since v2:

* change patch names to be consistent with others:

  - s/emacs:/test:/ for the test patch

  - lower case the first word after colon in the patch title

* polish NEWS wording, move it to 0.12 section

* add comment to `mml-quote-region' call, as suggested by Tomi [1]

* fix and clean up the test:

  - set `notmuch-fcc-dirs' to nil to avoid adding the Fcc header,
    otherwise it breaks the test on other systems as pointed by
    David [2]

  - use default values for add_message parameters where possible

  - use a sane subject value in add_message

  - use shorter MML tag as produced by (mml-insert-part)

  - indenting and other minor cleanups

Regards,
  Dmitry

[1] id:"m2wr89ioos.fsf@guru.guru-group.fi"
[2] id:"87ehugzycb.fsf@zancas.localnet"

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH v3 1/2] test: add tests for quoting of MML tags in replies
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
@ 2012-02-01  2:49   ` Dmitry Kurochkin
  2012-02-01 13:54     ` [PATCH v4 " Pieter Praet
  2012-02-01  2:49   ` [PATCH v3 2/2] emacs: quote " Dmitry Kurochkin
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-01  2:49 UTC (permalink / raw)
  To: notmuch

From: Aaron Ecay <aaronecay@gmail.com>

The test is broken at this time; the next commit will introduce a fix.
---
 test/emacs                                    |   12 ++++++++++++
 test/emacs.expected-output/quote-mml-in-reply |    7 +++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 test/emacs.expected-output/quote-mml-in-reply

diff --git a/test/emacs b/test/emacs
index 8ca4c8a..a3f4893 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,18 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags in reply"
+test_subtest_known_broken
+message_id='test-emacs-mml-quoting@message.id'
+add_message [id]="$message_id" \
+	    "[subject]='$test_subtest_name'" \
+	    '[body]="<#part disposition=inline>"'
+test_emacs "(let ((notmuch-fcc-dirs nil))
+	      (notmuch-show \"id:$message_id\")
+	      (notmuch-show-reply)
+	      (test-output))"
+test_expect_equal_file OUTPUT "$EXPECTED/quote-mml-in-reply"
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
diff --git a/test/emacs.expected-output/quote-mml-in-reply b/test/emacs.expected-output/quote-mml-in-reply
new file mode 100644
index 0000000..adec92a
--- /dev/null
+++ b/test/emacs.expected-output/quote-mml-in-reply
@@ -0,0 +1,7 @@
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 
+Subject: Re: Quote MML tags in reply
+In-Reply-To: <test-emacs-mml-quoting@message.id>
+--text follows this line--
+On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+> <#!part disposition=inline>
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH v3 2/2] emacs: quote MML tags in replies
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
  2012-02-01  2:49   ` [PATCH v3 1/2] test: add tests for quoting of " Dmitry Kurochkin
@ 2012-02-01  2:49   ` Dmitry Kurochkin
  2012-02-01 13:51   ` Pieter Praet
  2012-02-02  4:01   ` David Bremner
  3 siblings, 0 replies; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-01  2:49 UTC (permalink / raw)
  To: notmuch

From: Aaron Ecay <aaronecay@gmail.com>

Emacs message-mode uses certain text strings to indicate how to attach
files to outgoing mail.  If these are present in the text of an email,
and a user is tricked into replying to the message, the user’s files
could be exposed.
---
 NEWS                 |   12 ++++++++++++
 emacs/notmuch-mua.el |    7 ++++++-
 test/emacs           |    1 -
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 2acdce5..ef26b8c 100644
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,17 @@ Reply to sender
   and search modes, 'r' has been bound to reply to sender, replacing
   reply to all, which now has key binding 'R'.
 
+Quote MML tags in replies
+
+  MML tags are text codes that Emacs uses to indicate attachments
+  (among other things) in messages being composed.  The Emacs
+  interface did not quote MML tags in the quoted text of a reply.
+  User could be tricked into replying to a maliciously formatted
+  message and not editing out the MML tags from the quoted text.  This
+  could lead to files from the user's machine being attached to the
+  outgoing message.  The Emacs interface now quotes these tags in
+  reply text, so that they do not effect outgoing messages.
+
 Library changes
 ---------------
 
@@ -56,6 +67,7 @@ Compatibility with GMime 2.6
   However, a bug in current GMime 2.6 causes notmuch not to report
   signatures where the signer key is unavailable (GNOME bug 668085).
 
+
 Notmuch 0.11 (2012-01-13)
 =========================
 
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 023645e..4be7c13 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -116,7 +116,12 @@ list."
     (push-mark))
   (set-buffer-modified-p nil)
 
-  (message-goto-body))
+  (message-goto-body)
+  ;; Original message may contain (malicious) MML tags.  We must
+  ;; properly quote them in the reply.  Note that using `point-max'
+  ;; instead of `mark' here is wrong.  The buffer may include user's
+  ;; signature which should not be MML-quoted.
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
diff --git a/test/emacs b/test/emacs
index a3f4893..b9f7d15 100755
--- a/test/emacs
+++ b/test/emacs
@@ -274,7 +274,6 @@ EOF
 test_expect_equal_file OUTPUT EXPECTED
 
 test_begin_subtest "Quote MML tags in reply"
-test_subtest_known_broken
 message_id='test-emacs-mml-quoting@message.id'
 add_message [id]="$message_id" \
 	    "[subject]='$test_subtest_name'" \
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: emacs: quote MML tags in replies
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
  2012-02-01  2:49   ` [PATCH v3 1/2] test: add tests for quoting of " Dmitry Kurochkin
  2012-02-01  2:49   ` [PATCH v3 2/2] emacs: quote " Dmitry Kurochkin
@ 2012-02-01 13:51   ` Pieter Praet
  2012-02-01 14:18     ` Dmitry Kurochkin
  2012-02-02  4:01   ` David Bremner
  3 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-02-01 13:51 UTC (permalink / raw)
  To: Dmitry Kurochkin, notmuch

On Wed,  1 Feb 2012 06:49:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> Hi Aaron.
> 
> Thanks for your work!  I took the liberty to do some cleanups for your
> patch.  Below is a detailed list of changes.
> 

Thanks to the both of you!


> Hope this helps.
> 
> Changes since v2:
> 
> * change patch names to be consistent with others:
> 
>   - s/emacs:/test:/ for the test patch
> 
>   - lower case the first word after colon in the patch title
> 
> * polish NEWS wording, move it to 0.12 section
> 
> * add comment to `mml-quote-region' call, as suggested by Tomi [1]
> 
> * fix and clean up the test:
> 
>   - set `notmuch-fcc-dirs' to nil to avoid adding the Fcc header,
>     otherwise it breaks the test on other systems as pointed by
>     David [2]
> 

Could also have been avoided by adding the expected result inline,
and using "Fcc: $(pwd)/mail/sent".  I'll send an updated patch to
that effect.


>   - use default values for add_message parameters where possible
> 
>   - use a sane subject value in add_message
> 
>   - use shorter MML tag as produced by (mml-insert-part)
> 
>   - indenting and other minor cleanups
> 
> Regards,
>   Dmitry
> 
> [1] id:"m2wr89ioos.fsf@guru.guru-group.fi"
> [2] id:"87ehugzycb.fsf@zancas.localnet"
> 
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

Despite my comment re Fcc, both LGTM.


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH v4 1/2] test: add tests for quoting of MML tags in replies
  2012-02-01  2:49   ` [PATCH v3 1/2] test: add tests for quoting of " Dmitry Kurochkin
@ 2012-02-01 13:54     ` Pieter Praet
  2012-02-01 20:36       ` [PATCH v5 " Pieter Praet
  0 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-02-01 13:54 UTC (permalink / raw)
  To: Dmitry Kurochkin; +Cc: Notmuch Mail

From: Aaron Ecay <aaronecay@gmail.com>

The test is broken at this time; the next commit will introduce a fix.

Edited-by: Pieter Praet <pieter@praet.org>:
  Moved expected output into the actual test and fixed "Fcc:" line.

---
 test/emacs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index 8ca4c8a..1fdd3a5 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,27 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags in reply"
+test_subtest_known_broken
+message_id='test-emacs-mml-quoting@message.id'
+add_message [id]="$message_id" \
+	    "[subject]='$test_subtest_name'" \
+	    '[body]="<#part disposition=inline>"'
+test_emacs "(notmuch-show \"id:$message_id\")
+	      (notmuch-show-reply)
+	      (test-output)"
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 
+Subject: Re: Quote MML tags in reply
+In-Reply-To: <test-emacs-mml-quoting@message.id>
+Fcc: $(pwd)/mail/sent
+--text follows this line--
+On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+> <#!part disposition=inline>
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: emacs: quote MML tags in replies
  2012-02-01 13:51   ` Pieter Praet
@ 2012-02-01 14:18     ` Dmitry Kurochkin
  2012-02-01 20:35       ` Pieter Praet
  0 siblings, 1 reply; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-01 14:18 UTC (permalink / raw)
  To: Pieter Praet, notmuch

On Wed, 01 Feb 2012 14:51:37 +0100, Pieter Praet <pieter@praet.org> wrote:
> On Wed,  1 Feb 2012 06:49:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> > Hi Aaron.
> > 
> > Thanks for your work!  I took the liberty to do some cleanups for your
> > patch.  Below is a detailed list of changes.
> > 
> 
> Thanks to the both of you!
> 
> 
> > Hope this helps.
> > 
> > Changes since v2:
> > 
> > * change patch names to be consistent with others:
> > 
> >   - s/emacs:/test:/ for the test patch
> > 
> >   - lower case the first word after colon in the patch title
> > 
> > * polish NEWS wording, move it to 0.12 section
> > 
> > * add comment to `mml-quote-region' call, as suggested by Tomi [1]
> > 
> > * fix and clean up the test:
> > 
> >   - set `notmuch-fcc-dirs' to nil to avoid adding the Fcc header,
> >     otherwise it breaks the test on other systems as pointed by
> >     David [2]
> > 
> 
> Could also have been avoided by adding the expected result inline,
> and using "Fcc: $(pwd)/mail/sent".  I'll send an updated patch to
> that effect.
> 

I do not understand how this is better.  But please do not use $(pwd)
here.  I know that other tests do that in the same case, but it is
wrong.  There is $MAIL_DIR variable for this.  See "notmuch-fcc-dirs set
to a string" test for an example.

Regards,
  Dmitry

> 
> >   - use default values for add_message parameters where possible
> > 
> >   - use a sane subject value in add_message
> > 
> >   - use shorter MML tag as produced by (mml-insert-part)
> > 
> >   - indenting and other minor cleanups
> > 
> > Regards,
> >   Dmitry
> > 
> > [1] id:"m2wr89ioos.fsf@guru.guru-group.fi"
> > [2] id:"87ehugzycb.fsf@zancas.localnet"
> > 
> > _______________________________________________
> > notmuch mailing list
> > notmuch@notmuchmail.org
> > http://notmuchmail.org/mailman/listinfo/notmuch
> 
> Despite my comment re Fcc, both LGTM.
> 
> 
> Peace
> 
> -- 
> Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: emacs: quote MML tags in replies
  2012-02-01 14:18     ` Dmitry Kurochkin
@ 2012-02-01 20:35       ` Pieter Praet
  2012-02-01 20:37         ` [PATCH] test: replace occurrences of $PWD with vars that are more stable Pieter Praet
  0 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-02-01 20:35 UTC (permalink / raw)
  To: Dmitry Kurochkin, notmuch

On Wed, 01 Feb 2012 18:18:55 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> On Wed, 01 Feb 2012 14:51:37 +0100, Pieter Praet <pieter@praet.org> wrote:
> > On Wed,  1 Feb 2012 06:49:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> > > Hi Aaron.
> > > 
> > > Thanks for your work!  I took the liberty to do some cleanups for your
> > > patch.  Below is a detailed list of changes.
> > > 
> > 
> > Thanks to the both of you!
> > 
> > 
> > > Hope this helps.
> > > 
> > > Changes since v2:
> > > 
> > > * change patch names to be consistent with others:
> > > 
> > >   - s/emacs:/test:/ for the test patch
> > > 
> > >   - lower case the first word after colon in the patch title
> > > 
> > > * polish NEWS wording, move it to 0.12 section
> > > 
> > > * add comment to `mml-quote-region' call, as suggested by Tomi [1]
> > > 
> > > * fix and clean up the test:
> > > 
> > >   - set `notmuch-fcc-dirs' to nil to avoid adding the Fcc header,
> > >     otherwise it breaks the test on other systems as pointed by
> > >     David [2]
> > > 
> > 
> > Could also have been avoided by adding the expected result inline,
> > and using "Fcc: $(pwd)/mail/sent".  I'll send an updated patch to
> > that effect.
> > 
> 
> I do not understand how this is better.  [...]

Well, the expected output is only 7 lines, so we might as well keep it
inside the test itself (of which the advantages need no reiteration),
and doing so would allow us to get the Fcc path in a more future-proof way;
`notmuch-fcc-dirs' is more susceptible to deprecation than $MAIL_DIR et al.


> [...] But please do not use $(pwd)
> here.  I know that other tests do that in the same case, but it is
> wrong.  There is $MAIL_DIR variable for this.  See "notmuch-fcc-dirs set
> to a string" test for an example.
> 

Good point!  Patch follows.


> Regards,
>   Dmitry
> 
> > 
> > >   - use default values for add_message parameters where possible
> > > 
> > >   - use a sane subject value in add_message
> > > 
> > >   - use shorter MML tag as produced by (mml-insert-part)
> > > 
> > >   - indenting and other minor cleanups
> > > 
> > > Regards,
> > >   Dmitry
> > > 
> > > [1] id:"m2wr89ioos.fsf@guru.guru-group.fi"
> > > [2] id:"87ehugzycb.fsf@zancas.localnet"
> > > 
> > > _______________________________________________
> > > notmuch mailing list
> > > notmuch@notmuchmail.org
> > > http://notmuchmail.org/mailman/listinfo/notmuch
> > 
> > Despite my comment re Fcc, both LGTM.
> > 
> > 
> > Peace
> > 
> > -- 
> > Pieter


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH v5 1/2] test: add tests for quoting of MML tags in replies
  2012-02-01 13:54     ` [PATCH v4 " Pieter Praet
@ 2012-02-01 20:36       ` Pieter Praet
  0 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-01 20:36 UTC (permalink / raw)
  To: Dmitry Kurochkin; +Cc: Notmuch Mail

From: Aaron Ecay <aaronecay@gmail.com>

The test is broken at this time; the next commit will introduce a fix.

Edited-by: Pieter Praet <pieter@praet.org>:
  Moved expected output into the actual test and fixed "Fcc:" line.
---
 test/emacs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index 8ca4c8a..17129b7 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,27 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags in reply"
+test_subtest_known_broken
+message_id='test-emacs-mml-quoting@message.id'
+add_message [id]="$message_id" \
+	    "[subject]='$test_subtest_name'" \
+	    '[body]="<#part disposition=inline>"'
+test_emacs "(notmuch-show \"id:$message_id\")
+	      (notmuch-show-reply)
+	      (test-output)"
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 
+Subject: Re: Quote MML tags in reply
+In-Reply-To: <test-emacs-mml-quoting@message.id>
+Fcc: ${MAIL_DIR}/sent
+--text follows this line--
+On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+> <#!part disposition=inline>
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH] test: replace occurrences of $PWD with vars that are more stable
  2012-02-01 20:35       ` Pieter Praet
@ 2012-02-01 20:37         ` Pieter Praet
  2012-02-01 23:09           ` Dmitry Kurochkin
  2012-02-25 13:54           ` David Bremner
  0 siblings, 2 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-01 20:37 UTC (permalink / raw)
  To: Dmitry Kurochkin; +Cc: Notmuch Mail

Thanks to Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
for pointing this out:  id:"87d39ymyb4.fsf@gmail.com"
---
 test/emacs |    2 +-
 test/new   |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/emacs b/test/emacs
index 17129b7..9c9d0b4 100755
--- a/test/emacs
+++ b/test/emacs
@@ -266,7 +266,7 @@ From: Notmuch Test Suite <test_suite@notmuchmail.org>
 To: user@example.com
 Subject: Re: Testing message sent via SMTP
 In-Reply-To: <XXX>
-Fcc: $(pwd)/mail/sent
+Fcc: ${MAIL_DIR}/sent
 --text follows this line--
 On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
 > This is a test that messages are sent via SMTP
diff --git a/test/new b/test/new
index 49f390d..1b24c84 100755
--- a/test/new
+++ b/test/new
@@ -117,10 +117,10 @@ test_expect_equal "$output" "No new mail. Removed 3 messages."
 test_begin_subtest "New symlink to directory"
 
 rm -rf "${MAIL_DIR}"/.notmuch
-mv "${MAIL_DIR}" "$PWD"/actual_maildir
+mv "${MAIL_DIR}" "${TMP_DIRECTORY}"/actual_maildir
 
 mkdir "${MAIL_DIR}"
-ln -s "$PWD"/actual_maildir "${MAIL_DIR}"/symlink
+ln -s "${TMP_DIRECTORY}"/actual_maildir "${MAIL_DIR}"/symlink
 
 output=$(NOTMUCH_NEW)
 test_expect_equal "$output" "Added 1 new message to the database."
@@ -128,7 +128,7 @@ test_expect_equal "$output" "Added 1 new message to the database."
 
 test_begin_subtest "New symlink to a file"
 generate_message
-external_msg_filename="$PWD"/external/"$(basename "$gen_msg_filename")"
+external_msg_filename="${TMP_DIRECTORY}"/external/"$(basename "$gen_msg_filename")"
 mkdir -p "$(dirname "$external_msg_filename")"
 mv "$gen_msg_filename" "$external_msg_filename"
 ln -s "$external_msg_filename" "$gen_msg_filename"
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable
  2012-02-01 20:37         ` [PATCH] test: replace occurrences of $PWD with vars that are more stable Pieter Praet
@ 2012-02-01 23:09           ` Dmitry Kurochkin
  2012-02-03 10:20             ` Pieter Praet
  2012-02-25 13:54           ` David Bremner
  1 sibling, 1 reply; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-01 23:09 UTC (permalink / raw)
  To: Pieter Praet; +Cc: Notmuch Mail

On Wed,  1 Feb 2012 21:37:21 +0100, Pieter Praet <pieter@praet.org> wrote:
> Thanks to Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
> for pointing this out:  id:"87d39ymyb4.fsf@gmail.com"
> ---

Looks good to me.  Minor comments below.

>  test/emacs |    2 +-
>  test/new   |    6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/test/emacs b/test/emacs
> index 17129b7..9c9d0b4 100755
> --- a/test/emacs
> +++ b/test/emacs
> @@ -266,7 +266,7 @@ From: Notmuch Test Suite <test_suite@notmuchmail.org>
>  To: user@example.com
>  Subject: Re: Testing message sent via SMTP
>  In-Reply-To: <XXX>
> -Fcc: $(pwd)/mail/sent
> +Fcc: ${MAIL_DIR}/sent
>  --text follows this line--
>  On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
>  > This is a test that messages are sent via SMTP
> diff --git a/test/new b/test/new
> index 49f390d..1b24c84 100755
> --- a/test/new
> +++ b/test/new
> @@ -117,10 +117,10 @@ test_expect_equal "$output" "No new mail. Removed 3 messages."
>  test_begin_subtest "New symlink to directory"
>  
>  rm -rf "${MAIL_DIR}"/.notmuch
> -mv "${MAIL_DIR}" "$PWD"/actual_maildir
> +mv "${MAIL_DIR}" "${TMP_DIRECTORY}"/actual_maildir

I would prefer to put the whole second argument inside the quotes, not
just the variable.

>  
>  mkdir "${MAIL_DIR}"
> -ln -s "$PWD"/actual_maildir "${MAIL_DIR}"/symlink
> +ln -s "${TMP_DIRECTORY}"/actual_maildir "${MAIL_DIR}"/symlink

Same.

>  
>  output=$(NOTMUCH_NEW)
>  test_expect_equal "$output" "Added 1 new message to the database."
> @@ -128,7 +128,7 @@ test_expect_equal "$output" "Added 1 new message to the database."
>  
>  test_begin_subtest "New symlink to a file"
>  generate_message
> -external_msg_filename="$PWD"/external/"$(basename "$gen_msg_filename")"
> +external_msg_filename="${TMP_DIRECTORY}"/external/"$(basename "$gen_msg_filename")"

And here as well.  The quotes around "/external/" can just be removed.

Regards,
  Dmitry

>  mkdir -p "$(dirname "$external_msg_filename")"
>  mv "$gen_msg_filename" "$external_msg_filename"
>  ln -s "$external_msg_filename" "$gen_msg_filename"
> -- 
> 1.7.8.1

^ permalink raw reply	[flat|nested] 65+ messages in thread

* (no subject)
  2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
                     ` (2 preceding siblings ...)
  2012-02-01 13:51   ` Pieter Praet
@ 2012-02-02  4:01   ` David Bremner
  2012-02-02  4:01     ` [PATCH v4 1/2] test: add tests for quoting of MML tags in replies David Bremner
                       ` (2 more replies)
  3 siblings, 3 replies; 65+ messages in thread
From: David Bremner @ 2012-02-02  4:01 UTC (permalink / raw)
  To: notmuch

I rebased these against branch release (and copied a comment from
aaron's email), but the test fails there, as does the reply within emacs test.

FAIL   Reply within emacs
	--- emacs.24.expected	2012-02-02 03:55:14.000000000 +0000
	+++ emacs.24.output	2012-02-02 03:55:14.000000000 +0000
	@@ -1,8 +1,4 @@
	 From: Notmuch Test Suite <test_suite@notmuchmail.org>
	-To: user@example.com
	-Subject: Re: Testing message sent via SMTP
	-In-Reply-To: <XXX>
	-Fcc: /home/bremner/software/upstream/notmuch/test/tmp.emacs/mail/sent
	+To: 
	+Subject: 
	 --text follows this line--
	-On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
	-> This is a test that messages are sent via SMTP
*ERROR*: Wrong type argument: integer-or-marker-p, nil
 FAIL   Quote MML tags in reply
	--- emacs.25.expected	2012-02-02 03:55:15.000000000 +0000
	+++ emacs.25.output	2012-02-02 03:55:15.000000000 +0000
	@@ -1,7 +1,4 @@
	 From: Notmuch Test Suite <test_suite@notmuchmail.org>
	 To: 
	-Subject: Re: Quote MML tags in reply
	-In-Reply-To: <test-emacs-mml-quoting@message.id>
	+Subject: 
	 --text follows this line--
	-On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
	-> <#!part disposition=inline>
*ERROR*: Wrong type argument: integer-or-marker-p, nil

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH v4 1/2] test: add tests for quoting of MML tags in replies
  2012-02-02  4:01   ` David Bremner
@ 2012-02-02  4:01     ` David Bremner
  2012-02-02  4:01     ` [PATCH v4 2/2] emacs: quote " David Bremner
  2012-02-03 10:22     ` Pieter Praet
  2 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-02-02  4:01 UTC (permalink / raw)
  To: notmuch

From: Aaron Ecay <aaronecay@gmail.com>

The test is broken at this time; the next commit will introduce a fix.
---
 test/emacs                                    |   12 ++++++++++++
 test/emacs.expected-output/quote-mml-in-reply |    7 +++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 test/emacs.expected-output/quote-mml-in-reply

diff --git a/test/emacs b/test/emacs
index f36718e..2a2ce28 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,18 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags in reply"
+test_subtest_known_broken
+message_id='test-emacs-mml-quoting@message.id'
+add_message [id]="$message_id" \
+	    "[subject]='$test_subtest_name'" \
+	    '[body]="<#part disposition=inline>"'
+test_emacs "(let ((notmuch-fcc-dirs nil))
+	      (notmuch-show \"id:$message_id\")
+	      (notmuch-show-reply)
+	      (test-output))"
+test_expect_equal_file OUTPUT "$EXPECTED/quote-mml-in-reply"
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
diff --git a/test/emacs.expected-output/quote-mml-in-reply b/test/emacs.expected-output/quote-mml-in-reply
new file mode 100644
index 0000000..adec92a
--- /dev/null
+++ b/test/emacs.expected-output/quote-mml-in-reply
@@ -0,0 +1,7 @@
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 
+Subject: Re: Quote MML tags in reply
+In-Reply-To: <test-emacs-mml-quoting@message.id>
+--text follows this line--
+On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+> <#!part disposition=inline>
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH v4 2/2] emacs: quote MML tags in replies
  2012-02-02  4:01   ` David Bremner
  2012-02-02  4:01     ` [PATCH v4 1/2] test: add tests for quoting of MML tags in replies David Bremner
@ 2012-02-02  4:01     ` David Bremner
  2012-02-03 10:22     ` Pieter Praet
  2 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-02-02  4:01 UTC (permalink / raw)
  To: notmuch

From: Aaron Ecay <aaronecay@gmail.com>

Emacs message-mode uses certain text strings to indicate how to attach
files to outgoing mail.  If these are present in the text of an email,
and a user is tricked into replying to the message, the user’s files
could be exposed.

Using point-max would include the signature in the quoting as well.
It would probably be fairly odd to want to put an MML tag in one’s
signature, but that doesn’t mean that we should break that usage.
---
 NEWS                 |   11 +++++++++++
 emacs/notmuch-mua.el |    7 ++++++-
 test/emacs           |    1 -
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 3d2c2a8..a089e67 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,17 @@ Fix error handling in python bindings.
   exceptions to indicate the error condition. Any subsequent calls
   into libnotmuch caused segmentation faults.
 
+Quote MML tags in replies
+
+  MML tags are text codes that Emacs uses to indicate attachments
+  (among other things) in messages being composed.  The Emacs
+  interface did not quote MML tags in the quoted text of a reply.
+  User could be tricked into replying to a maliciously formatted
+  message and not editing out the MML tags from the quoted text.  This
+  could lead to files from the user's machine being attached to the
+  outgoing message.  The Emacs interface now quotes these tags in
+  reply text, so that they do not effect outgoing messages.
+
 
 Notmuch 0.11 (2012-01-13)
 =========================
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 7114e48..768b693 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -111,7 +111,12 @@ list."
     (insert body))
   (set-buffer-modified-p nil)
 
-  (message-goto-body))
+  (message-goto-body)
+  ;; Original message may contain (malicious) MML tags.  We must
+  ;; properly quote them in the reply.  Note that using `point-max'
+  ;; instead of `mark' here is wrong.  The buffer may include user's
+  ;; signature which should not be MML-quoted.
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
diff --git a/test/emacs b/test/emacs
index 2a2ce28..de100c5 100755
--- a/test/emacs
+++ b/test/emacs
@@ -274,7 +274,6 @@ EOF
 test_expect_equal_file OUTPUT EXPECTED
 
 test_begin_subtest "Quote MML tags in reply"
-test_subtest_known_broken
 message_id='test-emacs-mml-quoting@message.id'
 add_message [id]="$message_id" \
 	    "[subject]='$test_subtest_name'" \
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable
  2012-02-01 23:09           ` Dmitry Kurochkin
@ 2012-02-03 10:20             ` Pieter Praet
  2012-02-03 10:28               ` Dmitry Kurochkin
  0 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 10:20 UTC (permalink / raw)
  To: Dmitry Kurochkin; +Cc: Notmuch Mail

On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> [...]
> I would prefer to put the whole second argument inside the quotes, not
> just the variable.
> [...]
> 

I felt the same way initially, but then decided to leave the extra
quotes in place because the resulting fontification helps differentiate
between the vars and actual strings.

I assume that was the reason for the extra quotes' presence in the first
place?  I might be wrong though...

So with that in mind, do I submit a new patch without the quotes, or leave
it as it is?

> Regards,
>   Dmitry
> 
> >  mkdir -p "$(dirname "$external_msg_filename")"
> >  mv "$gen_msg_filename" "$external_msg_filename"
> >  ln -s "$external_msg_filename" "$gen_msg_filename"
> > -- 
> > 1.7.8.1


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2012-02-02  4:01   ` David Bremner
  2012-02-02  4:01     ` [PATCH v4 1/2] test: add tests for quoting of MML tags in replies David Bremner
  2012-02-02  4:01     ` [PATCH v4 2/2] emacs: quote " David Bremner
@ 2012-02-03 10:22     ` Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 1/3] test: add tests for quoting of MML tags in replies Pieter Praet
                         ` (3 more replies)
  2 siblings, 4 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 10:22 UTC (permalink / raw)
  To: David Bremner, notmuch

On Thu,  2 Feb 2012 00:01:31 -0400, David Bremner <david@tethera.net> wrote:
> I rebased these against branch release (and copied a comment from
> aaron's email), but the test fails there, as does the reply within emacs test.
> 

Same issue here.


That mark was introduced in commit 03146f20, so isn't available in the
release branch yet.  Let's just use `point-max' instead, merge 'release'
into 'master', and change it back to `mark' there.  It's better to break
MML tags in the user's sig for a little while than leave this security
hole wide open.


Same issue wrt commit 66ecd906;  the citation line should still be:
  On Tue, 05 Jan 2001 15:43:57 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
instead of:
  On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:


Fixed patches follow, including a post-merge fix.


> FAIL   Reply within emacs
> 	--- emacs.24.expected	2012-02-02 03:55:14.000000000 +0000
> 	+++ emacs.24.output	2012-02-02 03:55:14.000000000 +0000
> 	@@ -1,8 +1,4 @@
> 	 From: Notmuch Test Suite <test_suite@notmuchmail.org>
> 	-To: user@example.com
> 	-Subject: Re: Testing message sent via SMTP
> 	-In-Reply-To: <XXX>
> 	-Fcc: /home/bremner/software/upstream/notmuch/test/tmp.emacs/mail/sent
> 	+To: 
> 	+Subject: 
> 	 --text follows this line--
> 	-On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
> 	-> This is a test that messages are sent via SMTP
> *ERROR*: Wrong type argument: integer-or-marker-p, nil
>  FAIL   Quote MML tags in reply
> 	--- emacs.25.expected	2012-02-02 03:55:15.000000000 +0000
> 	+++ emacs.25.output	2012-02-02 03:55:15.000000000 +0000
> 	@@ -1,7 +1,4 @@
> 	 From: Notmuch Test Suite <test_suite@notmuchmail.org>
> 	 To: 
> 	-Subject: Re: Quote MML tags in reply
> 	-In-Reply-To: <test-emacs-mml-quoting@message.id>
> 	+Subject: 
> 	 --text follows this line--
> 	-On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
> 	-> <#!part disposition=inline>
> *ERROR*: Wrong type argument: integer-or-marker-p, nil
> 
> 
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* [PATCH v6 1/3] test: add tests for quoting of MML tags in replies
  2012-02-03 10:22     ` Pieter Praet
@ 2012-02-03 10:24       ` Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 2/3] emacs: quote " Pieter Praet
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 10:24 UTC (permalink / raw)
  To: David Bremner; +Cc: Notmuch Mail

From: Aaron Ecay <aaronecay@gmail.com>

The test is broken at this time; the next commit will introduce a fix.

Edited-by: Pieter Praet <pieter@praet.org>:
  Rebased to release branch, moved expected output into the actual test,
  and fixed "Fcc:" line.
---
 test/emacs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index f36718e..db8e4ad 100755
--- a/test/emacs
+++ b/test/emacs
@@ -273,6 +273,27 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Quote MML tags in reply"
+test_subtest_known_broken
+message_id='test-emacs-mml-quoting@message.id'
+add_message [id]="$message_id" \
+	    "[subject]='$test_subtest_name'" \
+	    '[body]="<#part disposition=inline>"'
+test_emacs "(notmuch-show \"id:$message_id\")
+	      (notmuch-show-reply)
+	      (test-output)"
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: 
+Subject: Re: Quote MML tags in reply
+In-Reply-To: <test-emacs-mml-quoting@message.id>
+Fcc: ${MAIL_DIR}/sent
+--text follows this line--
+On Tue, 05 Jan 2001 15:43:57 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+> <#!part disposition=inline>
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH v6 2/3] emacs: quote MML tags in replies
  2012-02-03 10:22     ` Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 1/3] test: add tests for quoting of MML tags in replies Pieter Praet
@ 2012-02-03 10:24       ` Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 3/3] post-merge fixes Pieter Praet
  2012-02-03 12:54       ` MML Quoting patches David Bremner
  3 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 10:24 UTC (permalink / raw)
  To: David Bremner; +Cc: Notmuch Mail

From: Aaron Ecay <aaronecay@gmail.com>

Emacs message-mode uses certain text strings to indicate how to attach
files to outgoing mail.  If these are present in the text of an email,
and a user is tricked into replying to the message, the user’s files
could be exposed.

Edited-by: Pieter Praet <pieter@praet.org>:  Rebased to release branch.
---
 NEWS                 |   11 +++++++++++
 emacs/notmuch-mua.el |    7 ++++++-
 test/emacs           |    1 -
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 3d2c2a8..a089e67 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,17 @@ Fix error handling in python bindings.
   exceptions to indicate the error condition. Any subsequent calls
   into libnotmuch caused segmentation faults.
 
+Quote MML tags in replies
+
+  MML tags are text codes that Emacs uses to indicate attachments
+  (among other things) in messages being composed.  The Emacs
+  interface did not quote MML tags in the quoted text of a reply.
+  User could be tricked into replying to a maliciously formatted
+  message and not editing out the MML tags from the quoted text.  This
+  could lead to files from the user's machine being attached to the
+  outgoing message.  The Emacs interface now quotes these tags in
+  reply text, so that they do not effect outgoing messages.
+
 
 Notmuch 0.11 (2012-01-13)
 =========================
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 7114e48..3e93d7c 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -111,7 +111,12 @@ list."
     (insert body))
   (set-buffer-modified-p nil)
 
-  (message-goto-body))
+  (message-goto-body)
+  ;; Original message may contain (malicious) MML tags.  We must
+  ;; properly quote them in the reply.  Note that using `point-max'
+  ;; instead of `mark' here is wrong.  The buffer may include user's
+  ;; signature which should not be MML-quoted.
+  (mml-quote-region (point) (point-max)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
diff --git a/test/emacs b/test/emacs
index db8e4ad..2d066ed 100755
--- a/test/emacs
+++ b/test/emacs
@@ -274,7 +274,6 @@ EOF
 test_expect_equal_file OUTPUT EXPECTED
 
 test_begin_subtest "Quote MML tags in reply"
-test_subtest_known_broken
 message_id='test-emacs-mml-quoting@message.id'
 add_message [id]="$message_id" \
 	    "[subject]='$test_subtest_name'" \
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [PATCH v6 3/3] post-merge fixes
  2012-02-03 10:22     ` Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 1/3] test: add tests for quoting of MML tags in replies Pieter Praet
  2012-02-03 10:24       ` [PATCH v6 2/3] emacs: quote " Pieter Praet
@ 2012-02-03 10:24       ` Pieter Praet
  2012-02-04 19:05         ` David Bremner
  2012-02-03 12:54       ` MML Quoting patches David Bremner
  3 siblings, 1 reply; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 10:24 UTC (permalink / raw)
  To: David Bremner; +Cc: Notmuch Mail

---
 emacs/notmuch-mua.el |    2 +-
 test/emacs           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 3e93d7c..768b693 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -116,7 +116,7 @@ list."
   ;; properly quote them in the reply.  Note that using `point-max'
   ;; instead of `mark' here is wrong.  The buffer may include user's
   ;; signature which should not be MML-quoted.
-  (mml-quote-region (point) (point-max)))
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)
diff --git a/test/emacs b/test/emacs
index 2d066ed..f4955fe 100755
--- a/test/emacs
+++ b/test/emacs
@@ -288,7 +288,7 @@ Subject: Re: Quote MML tags in reply
 In-Reply-To: <test-emacs-mml-quoting@message.id>
 Fcc: ${MAIL_DIR}/sent
 --text follows this line--
-On Tue, 05 Jan 2001 15:43:57 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
+On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
 > <#!part disposition=inline>
 EOF
 test_expect_equal_file OUTPUT EXPECTED
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable
  2012-02-03 10:20             ` Pieter Praet
@ 2012-02-03 10:28               ` Dmitry Kurochkin
  0 siblings, 0 replies; 65+ messages in thread
From: Dmitry Kurochkin @ 2012-02-03 10:28 UTC (permalink / raw)
  To: Pieter Praet; +Cc: Notmuch Mail

On Fri, 03 Feb 2012 11:20:58 +0100, Pieter Praet <pieter@praet.org> wrote:
> On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> > [...]
> > I would prefer to put the whole second argument inside the quotes, not
> > just the variable.
> > [...]
> > 
> 
> I felt the same way initially, but then decided to leave the extra
> quotes in place because the resulting fontification helps differentiate
> between the vars and actual strings.
> 

I still prefer it without quotes.

> I assume that was the reason for the extra quotes' presence in the first
> place?  I might be wrong though...
> 

Interesting theory.

> So with that in mind, do I submit a new patch without the quotes, or leave
> it as it is?
> 

I would not insist on another patch, taking into account that it was
this way already.

Regards,
  Dmitry

> > Regards,
> >   Dmitry
> > 
> > >  mkdir -p "$(dirname "$external_msg_filename")"
> > >  mv "$gen_msg_filename" "$external_msg_filename"
> > >  ln -s "$external_msg_filename" "$gen_msg_filename"
> > > -- 
> > > 1.7.8.1
> 
> 
> Peace
> 
> -- 
> Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: MML Quoting patches.
  2012-02-03 10:22     ` Pieter Praet
                         ` (2 preceding siblings ...)
  2012-02-03 10:24       ` [PATCH v6 3/3] post-merge fixes Pieter Praet
@ 2012-02-03 12:54       ` David Bremner
  2012-02-03 14:28         ` Pieter Praet
  3 siblings, 1 reply; 65+ messages in thread
From: David Bremner @ 2012-02-03 12:54 UTC (permalink / raw)
  To: Pieter Praet, notmuch

On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet <pieter@praet.org> wrote:

> That mark was introduced in commit 03146f20, so isn't available in the
> release branch yet.  Let's just use `point-max' instead, merge 'release'
> into 'master', and change it back to `mark' there.  It's better to break
> MML tags in the user's sig for a little while than leave this security
> hole wide open.

Thanks Pieter.

I have pushed these both to release.

I'll have a look at the 3rd patch when I merge into master (after
release is tagged).  At a glance, I suspect it would be better off to
make it real commit with a real commit message, since it does change
functionality.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: MML Quoting patches.
  2012-02-03 12:54       ` MML Quoting patches David Bremner
@ 2012-02-03 14:28         ` Pieter Praet
  0 siblings, 0 replies; 65+ messages in thread
From: Pieter Praet @ 2012-02-03 14:28 UTC (permalink / raw)
  To: David Bremner, notmuch

On Fri, 03 Feb 2012 08:54:48 -0400, David Bremner <david@tethera.net> wrote:
> On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet <pieter@praet.org> wrote:
> 
> > That mark was introduced in commit 03146f20, so isn't available in the
> > release branch yet.  Let's just use `point-max' instead, merge 'release'
> > into 'master', and change it back to `mark' there.  It's better to break
> > MML tags in the user's sig for a little while than leave this security
> > hole wide open.
> 
> Thanks Pieter.
> 
> I have pushed these both to release.
> 

Thanks to you as well!


> I'll have a look at the 3rd patch when I merge into master (after
> release is tagged).  At a glance, I suspect it would be better off to
> make it real commit with a real commit message, since it does change
> functionality.
> 

Agreed.


> d
> 


Peace

-- 
Pieter

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH v6 3/3] post-merge fixes
  2012-02-03 10:24       ` [PATCH v6 3/3] post-merge fixes Pieter Praet
@ 2012-02-04 19:05         ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-02-04 19:05 UTC (permalink / raw)
  To: Pieter Praet; +Cc: Notmuch Mail

On Fri,  3 Feb 2012 11:24:09 +0100, Pieter Praet <pieter@praet.org> wrote:
> ---
>  emacs/notmuch-mua.el |    2 +-
>  test/emacs           |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

split into two commits and pushed,

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable
  2012-02-01 20:37         ` [PATCH] test: replace occurrences of $PWD with vars that are more stable Pieter Praet
  2012-02-01 23:09           ` Dmitry Kurochkin
@ 2012-02-25 13:54           ` David Bremner
  1 sibling, 0 replies; 65+ messages in thread
From: David Bremner @ 2012-02-25 13:54 UTC (permalink / raw)
  To: Pieter Praet; +Cc: Notmuch Mail

On Wed,  1 Feb 2012 21:37:21 +0100, Pieter Praet <pieter@praet.org> wrote:
> Thanks to Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
> for pointing this out:  id:"87d39ymyb4.fsf@gmail.com"

Pushed.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2012-12-11  9:00 Damien Cassou
@ 2012-12-13 11:45 ` Mark Walters
  0 siblings, 0 replies; 65+ messages in thread
From: Mark Walters @ 2012-12-13 11:45 UTC (permalink / raw)
  To: Damien Cassou, notmuch

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]


Hi

This is looking good: I have two comments the second of which is significant.

The first is do you want to sort (alphabetically) the headerline tags?
As it stands they are in the order they appear in the thread which is
probably not what is wanted.

The second is that there is a notmuch-show-tag-all functions to tag all
messages in the thread. Your patch is quadratic for the update (as it
calculates the list of thread tags once for each message). The attached
patch would avoid this and doesn't look too bad. (Note I retained
no-headerline-update as an optional argument in case there are out of
tree callers, eg users' .emacs files)

[Note this is not purely of academic interest: on my test large thread
(178 messages) updating the display after tagging all messages took some
seconds without my patch and almost no time with it.]

Best wishes 

Mark


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-mjw-tweak.patch --]
[-- Type: text/x-diff, Size: 2186 bytes --]

From ab15a4bdb50bcf6b2851806195bbe8bea3b099dc Mon Sep 17 00:00:00 2001
From: Mark Walters <markwalters1009@gmail.com>
Date: Thu, 13 Dec 2012 11:23:09 +0000
Subject: [PATCH] Avoid quadratic update

---
 emacs/notmuch-show.el |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 93bce07..8dd6010 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -356,7 +356,7 @@ operation on the contents of the current buffer."
   "Return a string comprised of `n' spaces."
   (make-string n ? ))
 
-(defun notmuch-show-update-tags (tags)
+(defun notmuch-show-update-tags (tags &optional no-headerline-update)
   "Update the displayed tags of the current message."
   (save-excursion
     (goto-char (notmuch-show-message-top))
@@ -364,7 +364,8 @@ operation on the contents of the current buffer."
 	(let ((inhibit-read-only t))
 	  (replace-match (propertize (notmuch-tagger-format-tags tags)
 				     'face 'notmuch-tag-face)))))
-  (notmuch-show-update-header-line))
+  (unless no-headerline-update
+    (notmuch-show-update-header-line)))
 
 (defun notmuch-clean-address (address)
   "Try to clean a single email ADDRESS for display. Return a cons
@@ -1461,10 +1462,10 @@ current thread."
 (defun notmuch-show-get-depth ()
   (notmuch-show-get-prop :depth))
 
-(defun notmuch-show-set-tags (tags)
+(defun notmuch-show-set-tags (tags &optional no-headerline-update)
   "Set the tags of the current message."
   (notmuch-show-set-prop :tags tags)
-  (notmuch-show-update-tags tags))
+  (notmuch-show-update-tags tags no-headerline-update))
 
 (defun notmuch-show-get-tags ()
   "Return the tags of the current message."
@@ -1778,7 +1779,8 @@ See `notmuch-tag' for information on the format of TAG-CHANGES."
      (let* ((current-tags (notmuch-show-get-tags))
 	    (new-tags (notmuch-update-tags current-tags tag-changes)))
        (unless (equal current-tags new-tags)
-	 (notmuch-show-set-tags new-tags))))))
+	 (notmuch-show-set-tags new-tags t)))))
+  (notmuch-show-update-header-line))
 
 (defun notmuch-show-add-tag ()
   "Same as `notmuch-show-tag' but sets initial input to '+'."
-- 
1.7.9.1


[-- Attachment #3: Type: text/plain, Size: 1489 bytes --]




On Tue, 11 Dec 2012, Damien Cassou <damien.cassou@gmail.com> wrote:
> From: Damien Cassou <damien.cassou@gmail.com>
> Subject: [PATCH v4] emacs: display tags in notmuch-show with links
> In-Reply-To: 
>
> This patch obsoletes:
> id:1355149964-27905-1-git-send-email-damien.cassou@gmail.com
>
> [PATCH 1/4] emacs: Add a thread's tags to notmuch-show header-line
> [PATCH 2/4] emacs: Make tags in notmuch-show header-line clickable
> [PATCH 3/4] emacs: Make all tags in `notmuch-show' clickable
> [PATCH 4/4] emacs: Add unit-tests for clickable tags
>
> These patches make clickable all tags that appear in notmuch-show
> buffers. Each tag is a link to open a new notmuch-search buffer for
> this tag. Additionally, the buffer's header-line now shows the
> thread's tags (clickable only if the `header-button' library is loaded
> or loadable).
>
> These patches are the first of an upcoming series whose goal is to
> integrate notmuch-labeler into notmuch. See the following for more
> details: https://github.com/DamienCassou/notmuch-labeler
>
> With respect to v3, I took care of the comments you made:
> - the header-line now updates when tags are changed
> - the tags in the body stays clickable when tags are changed
>
> Additionally, I added two unit tests to cover the above two comments
> and fixed some others unit tests of mine.
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* Re:
  2013-01-16 12:44 david
@ 2013-01-17 10:36 ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2013-01-17 10:36 UTC (permalink / raw)
  To: notmuch

david@tethera.net writes:

> Hi Gang;
>
> Here are some proposed changes to the debian packaging for 0.15.
>
> Most will probably be boring to people not familiar with debian
> packaging, with the excepotion of 4/5, which has a shell pipeline with
> two xargs in it, and almost can certainly be improved by several
> readers of this list.

As Tomi suggested, I left this alone and pushed as is for now.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2013-02-25 20:44 Martin Owens
@ 2013-02-25 21:02 ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2013-02-25 21:02 UTC (permalink / raw)
  To: Martin Owens, notmuch

Martin Owens <doctormo@gmail.com> writes:

> Looking at trunk it looks like this code was rewritten completely.
> Should the packages be ignored and should trunk be used instead?

Hi Martin;

Probably somebody needs to poke the folks at Ubuntu to sync from Debian
experimental again; the packages in experimental are very close to that
in git.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-01-28 16:12 ` David Bremner
@ 2014-01-28 22:54   ` Mark Walters
  2014-01-29  2:26     ` Re: David Bremner
  0 siblings, 1 reply; 65+ messages in thread
From: Mark Walters @ 2014-01-28 22:54 UTC (permalink / raw)
  To: David Bremner, notmuch


Hi

I have been playing with this. One thing that is worrying me a little at
the moment is that the man page looks different from before (imo less
nice). More importantly, I can't tweak the rst to get the generated
pages to look like the current ones (this could just be my lack of skill
with rst)

I do like the general approach but would like to make sure we can get
manpages (amongst other things) that we like from it. See below for one
example which I thought looked less nice

Best wishes

Mark



The particular  thing is the indentation for options (eg options in the
notmuch.1 page) In the original pages it looks like

OPTIONS
       Supported global options for notmuch include

           --help

               Print a synopsis of available commands and exit.

and in the new ones

OPTIONS
       Supported global options for notmuch include

       --help

       Print a synopsis of available commands and exit.

I find this makes it more difficult to scan the man page quickly.







On Tue, 28 Jan 2014, David Bremner <david@tethera.net> wrote:
> Here's a second try.
>        
>        - less build system cruft
>
>        - integrate into notmuch's build system
>
>        - optionally build the man pages (but not info) using just
>          python-docutils.
>
> No doubt this could use polishing; I'm still looking for feedback on
> the general approach.
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-01-28 22:54   ` Mark Walters
@ 2014-01-29  2:26     ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2014-01-29  2:26 UTC (permalink / raw)
  To: Mark Walters, notmuch

Mark Walters <markwalters1009@gmail.com> writes:

>
> The particular  thing is the indentation for options (eg options in the
> notmuch.1 page) In the original pages it looks like
>
> OPTIONS
>        Supported global options for notmuch include
>
>            --help
>
>                Print a synopsis of available commands and exit.
>
> and in the new ones
>
> OPTIONS
>        Supported global options for notmuch include
>
>        --help
>
>        Print a synopsis of available commands and exit.
>
> I find this makes it more difficult to scan the man page quickly.

This rst is mainly autogenerated, and hence a bit ugly.

This particular example doesn't seem too hard to fix; try replacing the
relevant bit of notmuch.rst with


Supported global options for \ **notmuch**\  include

  \ --help
    Print a synopsis of available commands and exit.

  \ --version
    Print the installed version of notmuch, and exit.

  \ --config=FILE
    Specify the configuration file to use. This overrides any
    configuration file specified by ${NOTMUCH_CONFIG}.

or

Supported global options for \ **notmuch**\  include

--help         Print a synopsis of available commands and exit.

--version      Print the installed version of notmuch, and exit.

--config=FILE  Specify the configuration file to use. This overrides any
               configuration file specified by ${NOTMUCH_CONFIG}.

--help    Print a synopsis of available commands and exit.


The latter is an "option list" [1], so I guess is the most official way
to do it.

The former is a more generic "definition list" 


[1]
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#option-lists

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-03-13  3:21 ` David Bremner
@ 2014-03-17 10:55   ` Tomi Ollila
  2014-03-18 10:52   ` Re: David Bremner
  1 sibling, 0 replies; 65+ messages in thread
From: Tomi Ollila @ 2014-03-17 10:55 UTC (permalink / raw)
  To: David Bremner, notmuch

On Thu, Mar 13 2014, David Bremner <david@tethera.net> wrote:

> Several people observed a problem with the test T010-help not finding
> the man pages anymore. To fix that, I had change the previous fix:
> instead of flattening the rst2man output into one directory, I had to
> move the sphinx output into a hierarchy.

These patches fix my build and tests pass. +1

Database upgraded (real men don't use backups or how did it go ?).

Tomi


>
> Patches 1 and 3 should be the same as 
>
> 	id:1394539555-28334-1-git-send-email-david@tethera.net
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-03-13  3:21 ` David Bremner
  2014-03-17 10:55   ` Tomi Ollila
@ 2014-03-18 10:52   ` David Bremner
  1 sibling, 0 replies; 65+ messages in thread
From: David Bremner @ 2014-03-18 10:52 UTC (permalink / raw)
  To: notmuch

David Bremner <david@tethera.net> writes:

> Several people observed a problem with the test T010-help not finding
> the man pages anymore. To fix that, I had change the previous fix:
> instead of flattening the rst2man output into one directory, I had to
> move the sphinx output into a hierarchy.
>
> Patches 1 and 3 should be the same as 
>
> 	id:1394539555-28334-1-git-send-email-david@tethera.net
>

pushed this series

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-05-06 13:06 David Bremner
@ 2014-05-06 18:14 ` Jameson Graef Rollins
  2014-05-06 18:26 ` Re: Tomi Ollila
  1 sibling, 0 replies; 65+ messages in thread
From: Jameson Graef Rollins @ 2014-05-06 18:14 UTC (permalink / raw)
  To: David Bremner, notmuch

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]

On Tue, May 06 2014, David Bremner <david@tethera.net> wrote:
> The first of these fixes a build failure on Debian Linux/armhf (and
> OS/X). If the patch seems ok, I'd like to roll it into a bug fix
> release.  The second is more of a suggestion to make that atomicity
> test easier to debug, since it seems to find the dark corners of gdb.

Hey, David.  It looks like Charles's series fixes some of these same
issues and more:

id:1399395748-44920-1-git-send-email-cceleri@cs.stanford.edu

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-05-06 13:06 David Bremner
  2014-05-06 18:14 ` Jameson Graef Rollins
@ 2014-05-06 18:26 ` Tomi Ollila
  1 sibling, 0 replies; 65+ messages in thread
From: Tomi Ollila @ 2014-05-06 18:26 UTC (permalink / raw)
  To: David Bremner, notmuch

On Tue, May 06 2014, David Bremner <david@tethera.net> wrote:

> The first of these fixes a build failure on Debian Linux/armhf (and
> OS/X). If the patch seems ok, I'd like to roll it into a bug fix
> release.  The second is more of a suggestion to make that atomicity
> test easier to debug, since it seems to find the dark corners of gdb.

Series LGTM.

Tomi

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-10-03 21:18 David Bremner
@ 2014-10-03 21:22 ` David Bremner
  2014-10-16 21:14 ` Re: Jani Nikula
  1 sibling, 0 replies; 65+ messages in thread
From: David Bremner @ 2014-10-03 21:22 UTC (permalink / raw)
  To: notmuch

David Bremner <david@tethera.net> writes:

> This is in some sense a successor to 
>
>      id:cover.1411914914.git.jani@nikula.org
>
> It includes the first two patches of that series verbatim, and adds
> some tests.

I should have said _almost_ verbatim; it marks some tests non-broken.

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2014-10-03 21:18 David Bremner
  2014-10-03 21:22 ` David Bremner
@ 2014-10-16 21:14 ` Jani Nikula
  1 sibling, 0 replies; 65+ messages in thread
From: Jani Nikula @ 2014-10-16 21:14 UTC (permalink / raw)
  To: David Bremner, notmuch

On Sat, 04 Oct 2014, David Bremner <david@tethera.net> wrote:
> This is in some sense a successor to 
>
>      id:cover.1411914914.git.jani@nikula.org
>
> It includes the first two patches of that series verbatim, and adds
> some tests.

I like it, very nice. Start pushing and add the post-insert hook patch
from my series on top?  ;)

BR,
Jani.

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2015-02-23 20:05 ` David Bremner
@ 2015-02-24  7:32   ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2015-02-24  7:32 UTC (permalink / raw)
  To: Jani Nikula, notmuch

David Bremner <david@tethera.net> writes:

> This has Jani's suggestions fixed, along with a couple of other trivial patches.
>
> I'll mark them ready at this point.

I pushed these, with Trevor's suggested changes.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2016-10-11 21:24 matt
@ 2016-10-12  7:51 ` Mark Walters
  2016-10-15  7:09   ` Re: Mark Walters
  2016-10-17 12:01 ` Re: David Bremner
  1 sibling, 1 reply; 65+ messages in thread
From: Mark Walters @ 2016-10-12  7:51 UTC (permalink / raw)
  To: matt, notmuch, matt


On Tue, 11 Oct 2016, matt@bubblegen.co.uk wrote:
> From: Matthew Lear <matt@bubblegen.co.uk>
> To: notmuch@notmuchmail.org
> Cc: Matthew Lear <matt@bubblegen.co.uk>
> Subject: [PATCH] Fix reply to encrypted mail when discouraging plain text.
> Date: Tue, 11 Oct 2016 22:24:18 +0100
> Message-Id: <1476221058-10431-1-git-send-email-matt@bubblegen.co.uk>
> X-Mailer: git-send-email 2.4.10
>
> If an encrypted multipart message is received which contains html and
> notmuch-multipart/alternative-discouraged is set to discourage "text/plain",
> any encrypted parts are not decrypted during generation of the reply
> text. This fixes that problem by making sure notmuch-mua-reply does
> that.

Hi

I haven't tested this but it looks correct: more broadly I think this is
needed whenever notmuch-show has to get a part directly rather than just
from the sexp reply.

Best wishes

Mark


> ---
>  emacs/notmuch-mua.el | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index c567173..f333655 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -251,6 +251,10 @@ mutiple parts get a header."
>  		       (notmuch-show-max-text-part-size 0)
>  		       ;; Insert headers for parts as appropriate for replying.
>  		       (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function)
> +		       ;; Ensure that any encrypted parts are
> +		       ;; decrypted during the generation of the reply
> +		       ;; text.
> +		       (notmuch-show-process-crypto process-crypto)
>  		       ;; Don't indent multipart sub-parts.
>  		       (notmuch-show-indent-multipart nil))
>  		    ;; We don't want sigstatus buttons (an information leak and usually wrong anyway).
> -- 
> 2.4.10
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2016-10-13 19:37 Matt Armstrong
@ 2016-10-13 19:42 ` Matt Armstrong
  0 siblings, 0 replies; 65+ messages in thread
From: Matt Armstrong @ 2016-10-13 19:42 UTC (permalink / raw)
  To: notmuch

Matt Armstrong <marmstrong@google.com> writes:

> This supercedes
> id:1476207707-21827-1-git-send-email-marmstrong@google.com with
> changes steming from Mark's helpful feedback.

Apologies for the lack of a subject here.  I'm still learning the ins
and outs of 'git send-email'.  I can't say I'd call it a friendly
facility.  :)

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2016-10-12  7:51 ` Mark Walters
@ 2016-10-15  7:09   ` Mark Walters
  0 siblings, 0 replies; 65+ messages in thread
From: Mark Walters @ 2016-10-15  7:09 UTC (permalink / raw)
  To: matt, notmuch, matt


On Wed, 12 Oct 2016, Mark Walters <markwalters1009@gmail.com> wrote:
> On Tue, 11 Oct 2016, matt@bubblegen.co.uk wrote:
>> From: Matthew Lear <matt@bubblegen.co.uk>
>> To: notmuch@notmuchmail.org
>> Cc: Matthew Lear <matt@bubblegen.co.uk>
>> Subject: [PATCH] Fix reply to encrypted mail when discouraging plain text.
>> Date: Tue, 11 Oct 2016 22:24:18 +0100
>> Message-Id: <1476221058-10431-1-git-send-email-matt@bubblegen.co.uk>
>> X-Mailer: git-send-email 2.4.10
>>
>> If an encrypted multipart message is received which contains html and
>> notmuch-multipart/alternative-discouraged is set to discourage "text/plain",
>> any encrypted parts are not decrypted during generation of the reply
>> text. This fixes that problem by making sure notmuch-mua-reply does
>> that.
>
> Hi
>
> I haven't tested this but it looks correct: more broadly I think this is
> needed whenever notmuch-show has to get a part directly rather than just
> from the sexp reply.

Hi

Just to confirm I have now tested this -- it compiles and test suite
passes. (Note I don't have suitable encrypted messages to test).

Anyway LGTM +1

Best wishes

Mark



>
> Best wishes
>
> Mark
>
>
>> ---
>>  emacs/notmuch-mua.el | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
>> index c567173..f333655 100644
>> --- a/emacs/notmuch-mua.el
>> +++ b/emacs/notmuch-mua.el
>> @@ -251,6 +251,10 @@ mutiple parts get a header."
>>  		       (notmuch-show-max-text-part-size 0)
>>  		       ;; Insert headers for parts as appropriate for replying.
>>  		       (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function)
>> +		       ;; Ensure that any encrypted parts are
>> +		       ;; decrypted during the generation of the reply
>> +		       ;; text.
>> +		       (notmuch-show-process-crypto process-crypto)
>>  		       ;; Don't indent multipart sub-parts.
>>  		       (notmuch-show-indent-multipart nil))
>>  		    ;; We don't want sigstatus buttons (an information leak and usually wrong anyway).
>> -- 
>> 2.4.10
>>
>> _______________________________________________
>> notmuch mailing list
>> notmuch@notmuchmail.org
>> https://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
@ 2016-10-15  8:44 Matthew Lear
  0 siblings, 0 replies; 65+ messages in thread
From: Matthew Lear @ 2016-10-15  8:44 UTC (permalink / raw)
  To: Mark Walters, notmuch

[-- Attachment #1: Type: text/plain, Size: 2594 bytes --]

Hi Mark. Excellent :-) I'll look out for it in the repository at some point soon. Cheers,   Matt 
-------- Original message --------From: Mark Walters <markwalters1009@gmail.com> Date: 15/10/2016  08:09  (GMT+00:00) To: matt@bubblegen.co.uk, notmuch@notmuchmail.org, matt@bubblegen.co.uk Subject: Re: 

On Wed, 12 Oct 2016, Mark Walters <markwalters1009@gmail.com> wrote:
> On Tue, 11 Oct 2016, matt@bubblegen.co.uk wrote:
>> From: Matthew Lear <matt@bubblegen.co.uk>
>> To: notmuch@notmuchmail.org
>> Cc: Matthew Lear <matt@bubblegen.co.uk>
>> Subject: [PATCH] Fix reply to encrypted mail when discouraging plain text.
>> Date: Tue, 11 Oct 2016 22:24:18 +0100
>> Message-Id: <1476221058-10431-1-git-send-email-matt@bubblegen.co.uk>
>> X-Mailer: git-send-email 2.4.10
>>
>> If an encrypted multipart message is received which contains html and
>> notmuch-multipart/alternative-discouraged is set to discourage "text/plain",
>> any encrypted parts are not decrypted during generation of the reply
>> text. This fixes that problem by making sure notmuch-mua-reply does
>> that.
>
> Hi
>
> I haven't tested this but it looks correct: more broadly I think this is
> needed whenever notmuch-show has to get a part directly rather than just
> from the sexp reply.

Hi

Just to confirm I have now tested this -- it compiles and test suite
passes. (Note I don't have suitable encrypted messages to test).

Anyway LGTM +1

Best wishes

Mark



>
> Best wishes
>
> Mark
>
>
>> ---
>>  emacs/notmuch-mua.el | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
>> index c567173..f333655 100644
>> --- a/emacs/notmuch-mua.el
>> +++ b/emacs/notmuch-mua.el
>> @@ -251,6 +251,10 @@ mutiple parts get a header."
>>  		       (notmuch-show-max-text-part-size 0)
>>  		       ;; Insert headers for parts as appropriate for replying.
>>  		       (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function)
>> +		       ;; Ensure that any encrypted parts are
>> +		       ;; decrypted during the generation of the reply
>> +		       ;; text.
>> +		       (notmuch-show-process-crypto process-crypto)
>>  		       ;; Don't indent multipart sub-parts.
>>  		       (notmuch-show-indent-multipart nil))
>>  		    ;; We don't want sigstatus buttons (an information leak and usually wrong anyway).
>> -- 
>> 2.4.10
>>
>> _______________________________________________
>> notmuch mailing list
>> notmuch@notmuchmail.org
>> https://notmuchmail.org/mailman/listinfo/notmuch

[-- Attachment #2: Type: text/html, Size: 3660 bytes --]

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2016-10-11 21:24 matt
  2016-10-12  7:51 ` Mark Walters
@ 2016-10-17 12:01 ` David Bremner
  1 sibling, 0 replies; 65+ messages in thread
From: David Bremner @ 2016-10-17 12:01 UTC (permalink / raw)
  To: matt, notmuch, matt

matt@bubblegen.co.uk writes:

> From: Matthew Lear <matt@bubblegen.co.uk>
> To: notmuch@notmuchmail.org
> Cc: Matthew Lear <matt@bubblegen.co.uk>
> Subject: [PATCH] Fix reply to encrypted mail when discouraging plain text.
> Date: Tue, 11 Oct 2016 22:24:18 +0100
> Message-Id: <1476221058-10431-1-git-send-email-matt@bubblegen.co.uk>
> X-Mailer: git-send-email 2.4.10

Pushed to master. For future reference it would be nice if the actual
git send-email output made to the list, so I don't have to fix up the
commit message by hand.

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2017-05-23 18:54 Tomi Ollila
@ 2017-05-26 10:40 ` David Bremner
  0 siblings, 0 replies; 65+ messages in thread
From: David Bremner @ 2017-05-26 10:40 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> This implementation adds add_exit_function (and rm_exit_function)
> which can also be used for other things in the future.
>

Pushed to master.

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2017-06-12 13:30 ` Damien Cassou
@ 2017-06-14  1:22   ` David Bremner
  2017-06-14  9:44     ` Re: David Bremner
  0 siblings, 1 reply; 65+ messages in thread
From: David Bremner @ 2017-06-14  1:22 UTC (permalink / raw)
  To: Damien Cassou, Damien Cassou, notmuch

Damien Cassou <damien@cassou.me> writes:

>> OK, I see with counsel-imenu the current indexing by header lines is
>> reasonable. It might be improvable by adding the subject, but I'm
>> not sure about line lengths.
>> - maybe the docstrings should recomment counsel-imenu?
>
> I'm not sure as the function
> `notmuch-show-imenu-extract-index-name-function` is private and there
> are other imenu frontends available. What about a NEWS entry instead
> along those lines:
>
>     * Add Emacs' imenu support in notmuch-show and notmuch-search
>
>     Emacs' major modes can facilitate navigation in their buffers by
>     supporting Imenu. In such major modes, launching Imenu (M-x imenu)
>     makes Emacs display a list of items (e.g., function definitions in
>     a code buffer). Selecting an item from this list moves point to
>     this item.
>
>     This release adds Imenu support to both notmuch-show and
>     notmuch-search buffers:
>
>        * in notmuch-show, Imenu will present a list of all messages in
>          the currently visible thread;
>
>        * in notmuch-search, Imenu will present a list of all messages in the
>          search buffer.
>
>     We recommand an external imenu frontend, such as counsel-imenu,
>     which will make the experience much better that the default `M-x
>     imenu`.

That sounds fine.

>> I think the indentation should probably go to make it more usable
>> with the builtin imenu
>
> I did that in the patch even though I liked it with indentation better.

I haven't had a chance to test the new version yet, but I think I know
what you mean from testing counsel-imenu. Is it worth adding a
customization variable so that the user can choose indentation if they
have a more sophisticated imenu front end?

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2017-06-14  1:22   ` David Bremner
@ 2017-06-14  9:44     ` David Bremner
  2017-06-14  9:54       ` Re: Damien Cassou
  0 siblings, 1 reply; 65+ messages in thread
From: David Bremner @ 2017-06-14  9:44 UTC (permalink / raw)
  To: Damien Cassou, Damien Cassou, notmuch

David Bremner <david@tethera.net> writes:

>> I did that in the patch even though I liked it with indentation better.
>
> I haven't had a chance to test the new version yet, but I think I know
> what you mean from testing counsel-imenu. Is it worth adding a
> customization variable so that the user can choose indentation if they
> have a more sophisticated imenu front end?

So this version is ok with both builtin and counsel imenu front
ends. It's up to you. Do you want to leave the question of controllable
indentation for a later commit or add it now?

d

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2017-06-14  9:44     ` Re: David Bremner
@ 2017-06-14  9:54       ` Damien Cassou
  0 siblings, 0 replies; 65+ messages in thread
From: Damien Cassou @ 2017-06-14  9:54 UTC (permalink / raw)
  To: David Bremner, notmuch

David Bremner <david@tethera.net> writes:

> David Bremner <david@tethera.net> writes: 
> 
>>> I did that in the patch even though I liked it with 
>>> indentation better. 
>> 
>> I haven't had a chance to test the new version yet, but I think 
>> I know what you mean from testing counsel-imenu. Is it worth 
>> adding a customization variable so that the user can choose 
>> indentation if they have a more sophisticated imenu front end? 
> 
> So this version is ok with both builtin and counsel imenu front 
> ends. It's up to you. Do you want to leave the question of 
> controllable indentation for a later commit or add it now? 

if you are ok to merge that right now, that would be perfect for 
me. Thanks. 

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

^ permalink raw reply	[flat|nested] 65+ messages in thread

* Re:
  2018-02-01 20:53 Matthew Lear
@ 2018-02-03 22:38 ` Jani Nikula
  0 siblings, 0 replies; 65+ messages in thread
From: Jani Nikula @ 2018-02-03 22:38 UTC (permalink / raw)
  To: Matthew Lear, notmuch, matt

On Thu, 01 Feb 2018, Matthew Lear <matt@bubblegen.co.uk> wrote:
> From: Matthew Lear <matt@bubblegen.co.uk>
> To: notmuch@notmuchmail.org
> Cc: Matthew Lear <matt@bubblegen.co.uk>
> Subject: [PATCH] Update date search syntax.
> Date: Thu,  1 Feb 2018 20:52:18 +0000
> Message-Id: <20180201205218.4368-1-matt@bubblegen.co.uk>
> X-Mailer: git-send-email 2.14.1
>
> If searching using the date prefix and timestamps, each timestamp
> is required to be prefixed with an @
> Legacy syntax of <initial-timestamp>..<final-timestamp> without the
> date prefix is still honoured, only without the @ specifiers.
> ---
>  doc/man7/notmuch-search-terms.rst | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/doc/man7/notmuch-search-terms.rst b/doc/man7/notmuch-search-terms.rst
> index 6d2bf62a..b6e7079a 100644
> --- a/doc/man7/notmuch-search-terms.rst
> +++ b/doc/man7/notmuch-search-terms.rst
> @@ -124,10 +124,13 @@ date:<since>..<until> or date:<date>
>      The time range can also be specified using timestamps with a
>      syntax of:
>  
> -    <initial-timestamp>..<final-timestamp>
> +    @<initial-timestamp>..@<final-timestamp>

So I think I'd add the @ syntax in the DATE AND TIME SEARCH section,
maybe under a separate new heading, and just emphasize this here is
about the non-date prefixed thing.

BR,
Jani.
  
>      Each timestamp is a number representing the number of seconds
> -    since 1970-01-01 00:00:00 UTC.
> +    since 1970-01-01 00:00:00 UTC. A date range search using
> +    timestamps is also permitted without using the date prefix and
> +    @ specifiers, although this is considered legacy and pre-dates
> +    the date prefix.
>  
>  lastmod:<initial-revision>..<final-revision>
>      The **lastmod:** prefix can be used to restrict the result by the
> -- 
> 2.14.1
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 65+ messages in thread

end of thread, other threads:[~2018-02-03 22:38 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-19 18:43 [PATCH] emacs: Quote MML tags in replies Aaron Ecay
2012-01-19 22:23 ` Pieter Praet
2012-01-19 22:46   ` Austin Clements
2012-01-19 22:52     ` Aaron Ecay
2012-01-19 23:19       ` Pieter Praet
2012-01-19 22:48 ` Austin Clements
2012-01-19 22:56   ` Aaron Ecay
2012-01-19 23:21     ` Pieter Praet
2012-01-20  3:26       ` Aaron Ecay
2012-01-22  6:39         ` Pieter Praet
2012-01-26 19:16     ` Austin Clements
2012-01-29  6:07       ` [PATCH 1/2] emacs: Add tests for quoting of " Aaron Ecay
2012-01-29  6:07         ` [PATCH 2/2] emacs: Quote " Aaron Ecay
2012-01-30  8:23           ` Tomi Ollila
2012-01-30 21:15         ` [PATCH 1/2] emacs: Add tests for quoting of " David Bremner
2012-01-20  7:33 ` [PATCH] emacs: Quote " David Edmondson
2012-01-20 12:14 ` David Bremner
2012-02-01  2:49 ` emacs: quote " Dmitry Kurochkin
2012-02-01  2:49   ` [PATCH v3 1/2] test: add tests for quoting of " Dmitry Kurochkin
2012-02-01 13:54     ` [PATCH v4 " Pieter Praet
2012-02-01 20:36       ` [PATCH v5 " Pieter Praet
2012-02-01  2:49   ` [PATCH v3 2/2] emacs: quote " Dmitry Kurochkin
2012-02-01 13:51   ` Pieter Praet
2012-02-01 14:18     ` Dmitry Kurochkin
2012-02-01 20:35       ` Pieter Praet
2012-02-01 20:37         ` [PATCH] test: replace occurrences of $PWD with vars that are more stable Pieter Praet
2012-02-01 23:09           ` Dmitry Kurochkin
2012-02-03 10:20             ` Pieter Praet
2012-02-03 10:28               ` Dmitry Kurochkin
2012-02-25 13:54           ` David Bremner
2012-02-02  4:01   ` David Bremner
2012-02-02  4:01     ` [PATCH v4 1/2] test: add tests for quoting of MML tags in replies David Bremner
2012-02-02  4:01     ` [PATCH v4 2/2] emacs: quote " David Bremner
2012-02-03 10:22     ` Pieter Praet
2012-02-03 10:24       ` [PATCH v6 1/3] test: add tests for quoting of MML tags in replies Pieter Praet
2012-02-03 10:24       ` [PATCH v6 2/3] emacs: quote " Pieter Praet
2012-02-03 10:24       ` [PATCH v6 3/3] post-merge fixes Pieter Praet
2012-02-04 19:05         ` David Bremner
2012-02-03 12:54       ` MML Quoting patches David Bremner
2012-02-03 14:28         ` Pieter Praet
  -- strict thread matches above, loose matches on Subject: below --
2018-02-01 20:53 Matthew Lear
2018-02-03 22:38 ` Jani Nikula
2017-06-11 11:00 [PATCH] Add Emacs' imenu support in notmuch-show and notmuch-search David Bremner
2017-06-12 13:30 ` Damien Cassou
2017-06-14  1:22   ` David Bremner
2017-06-14  9:44     ` Re: David Bremner
2017-06-14  9:54       ` Re: Damien Cassou
2017-05-23 18:54 Tomi Ollila
2017-05-26 10:40 ` David Bremner
2016-10-15  8:44 Re: Matthew Lear
2016-10-13 19:37 Matt Armstrong
2016-10-13 19:42 ` Matt Armstrong
2016-10-11 21:24 matt
2016-10-12  7:51 ` Mark Walters
2016-10-15  7:09   ` Re: Mark Walters
2016-10-17 12:01 ` Re: David Bremner
2015-01-25 17:58 [PATCH 1/3] doc: add details about Xapian search syntax David Bremner
2015-02-23 20:05 ` David Bremner
2015-02-24  7:32   ` David Bremner
2014-10-03 21:18 David Bremner
2014-10-03 21:22 ` David Bremner
2014-10-16 21:14 ` Re: Jani Nikula
2014-05-06 13:06 David Bremner
2014-05-06 18:14 ` Jameson Graef Rollins
2014-05-06 18:26 ` Re: Tomi Ollila
2014-03-11 18:16 v2 man page build fixups Tomi Ollila
2014-03-13  3:21 ` David Bremner
2014-03-17 10:55   ` Tomi Ollila
2014-03-18 10:52   ` Re: David Bremner
2014-01-19 18:57 [RFC Patch] start of sphinx based docs David Bremner
2014-01-28 16:12 ` David Bremner
2014-01-28 22:54   ` Mark Walters
2014-01-29  2:26     ` Re: David Bremner
2013-02-25 20:44 Martin Owens
2013-02-25 21:02 ` David Bremner
2013-01-16 12:44 david
2013-01-17 10:36 ` David Bremner
2012-12-11  9:00 Damien Cassou
2012-12-13 11:45 ` Mark Walters
2012-01-23  8:33 show-mode message/thread archiving improvements Jameson Graef Rollins
2012-01-25  0:06 ` Jameson Graef Rollins
2012-01-31  3:28   ` David Bremner
2011-10-09 16:01 output file argument to notmuch dump David Bremner
2011-10-10 13:49 ` david
2011-10-16 20:34   ` Thomas Schwinge
2011-10-16 23:25     ` Re: David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).