unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* disturbing possible bug in notmuch-emacs
@ 2019-03-29 19:14 Rollins, Jameson
  2019-03-30 11:11 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Rollins, Jameson @ 2019-03-29 19:14 UTC (permalink / raw)
  To: notmuch@notmuchmail.org

Hi, all.  I encountered a very disturbing bug in my mail configuration
yesterday.  I'm pretty sure the problem is in notmuch-emacs.  I am
looking for help in debugging and fixing the issue.

Yesterday I sent an email with the following To: header as composed in
notmuch-emacs (individual strings have been changed but all punctuation
and spacing is preserved):

  To: John Doe <johndoe@example.com>, "Smith, Bob" <bsmith@example.edu>

What you see above is what the header looked like in the notmuch emacs
"Message[Notmuch]" compose buffer, and is how it is displayed when I
view the sent message in a notmuch-show buffer.  The addresses were
filled in with the notmuch-address company auto completion.

However, if I view the raw text of the sent message, the To: header
looks like this:

  To: John Doe <johndoe@example.com>, Smith, Bob <bsmith@example.edu>

Notice the lack of quotes around the second name.

The outgoing mail was then sent by my local postfix to the following
*THREE* addresses:

Smith@caltech.edu
bsmith@example.edu
johndoe@example.com

Note the first address was NOT in the original recipient list at all,
and was completely constructed, probably by postfix, since it appended
the "@caltech.edu" which is configured as the "myhostname" in my postfix
configuration?  I don't know.  In any event, there was an actual person
on the other side of that address and they received what was intended to
be a private email.

Obviously the issue is related to the quoting of the second name in the
To:.  Something in notmuch-emacs is not parsing the quotes correctly.
Does anyone know where the problem is coming from?  Obviously this is
quite a serious issue, so I would like to help get it resolved ASAP.
Thanks.

jamie.

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

* Re: disturbing possible bug in notmuch-emacs
  2019-03-29 19:14 disturbing possible bug in notmuch-emacs Rollins, Jameson
@ 2019-03-30 11:11 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2019-03-30 11:11 UTC (permalink / raw)
  To: Rollins, Jameson, notmuch@notmuchmail.org

"Rollins, Jameson" <jrollins@caltech.edu> writes:

> Hi, all.  I encountered a very disturbing bug in my mail configuration
> yesterday.  I'm pretty sure the problem is in notmuch-emacs.  I am
> looking for help in debugging and fixing the issue.
>
> Yesterday I sent an email with the following To: header as composed in
> notmuch-emacs (individual strings have been changed but all punctuation
> and spacing is preserved):
>
>   To: John Doe <johndoe@example.com>, "Smith, Bob" <bsmith@example.edu>
>

I copied this header, and replaced the addresses with routable ones, but
I can't duplicate the problem.  It would be great if you could come up
with a recipe for duplicating this problem starting from "emacs -Q". I
guess by using bouncing addresses it should be safe enough.

> However, if I view the raw text of the sent message, the To: header
> looks like this:
>
>   To: John Doe <johndoe@example.com>, Smith, Bob <bsmith@example.edu>
>
> Notice the lack of quotes around the second name.

I would start by verifying the the message was correct (or not)
when it left emacs.

1) How do you get the raw text, via BCC, via FCC, or some other way?
2) What is your mail sending configuration in emacs, in particular what
   is the value of message-send-mail-function?

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

end of thread, other threads:[~2019-03-30 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29 19:14 disturbing possible bug in notmuch-emacs Rollins, Jameson
2019-03-30 11:11 ` 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).