hey notmuchers--

I'm using notmuch from close to git master.

I just received an e-mail with headers like this:

------
From: Alice <[email protected]>
To: Daniel Kahn Gillmor <[email protected]>
Cc: Bob <[email protected]>
Subject: wowsers!
cc: Charles <[email protected]>
Message-Id: <[email protected]>
Date: Thu, 16 Jun 2016 22:14:41 -0400

blah blah
------

Note the weirdness about the Cc fields!

 https://tools.ietf.org/html/rfc5322#page-21

Makes it clear that there is supposed to only be zero or one cc header
in an e-mail, but notmuch-emacs is nice enough to show me both.

However, if i do:

  notmuch reply id:[email protected]

then Charles is omitted:

----------
From: Daniel Kahn Gillmor <[email protected]>
Subject: Re: wowsers!
To: Alice <[email protected]>
Cc: Bob <[email protected]>
In-Reply-To: <[email protected]>
References: <[email protected]>

On Thu, 16 Jun 2016 22:14:41 -0400, Alice <[email protected]> wrote:
> blah blah
----------


In json form:

0 dkg@alice:~$ notmuch reply --format=json id:[email protected] | json_pp 
{
   "reply-headers" : {
      "From" : "Daniel Kahn Gillmor <[email protected]>",
      "References" : "<[email protected]>",
      "To" : "Alice <[email protected]>",
      "Cc" : "Bob <[email protected]>",
      "Subject" : "Re: wowsers!",
      "In-reply-to" : "<[email protected]>"
   },
   "original" : {
      "id" : "[email protected]",
      "filename" : "REDACTED",
      "timestamp" : 1466129681,
      "match" : false,
      "headers" : {
         "Cc" : "Bob <[email protected]>, Charles <[email protected]>",
         "Date" : "",
         "Subject" : "wowsers!",
         "From" : "Alice <[email protected]>",
         "To" : "Daniel Kahn Gillmor <[email protected]>"
      },
     "tags" : [],
     "excluded" : false"
   ...



Note that we see Charles in original[headers[Cc]], but not in
reply-headers[Cc].

Seems to me like these two should agree.  We should either decide to
take the strict interpretation of RFC 5322 or not.  I lean toward
including Charles in both sets, fwiw.

Anyway, smells like a bug in a weird corner case, and i haven't had time
to track it down or fix it, but i figured i'd report it so that other
people can see it.

       --dkg

Attachment: signature.asc
Description: PGP signature

_______________________________________________
notmuch mailing list
[email protected]
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to