Re: Bug in notmuch-emacs: inconsistent rendering for messages with multiple From: headers
David Bremner writes: >> But the first message in notmuch-show doesn't show Bob at all: >> --- >> Alice (8 mins. ago) () >> Subject: a test from alice and bob >> To: Daniel Kahn Gillmor >> Date: Mon, 23 Oct 2017 01:37:56 -0400 >> >> here we go > > This on the other hand seems to be the fault of the emacs front end, as > both addresses are present in the sexp / json output. The issue is specifically the function notmuch-clean-address. Evaluate the following (notmuch-clean-address "Alice , b...@fifthhorseman.net") (notmuch-clean-address "Alice , Bob ") In my opininion both should fail to parse (which would tell the rest of the code to use the raw string, afaik. But notmuch-clean-address is using regex to tackle the problem, so bugs are not exactly a surprise. On the other hand, I also tried the fancier function ietf-drums-parse-address, and it does something similarly inconsistent between the two cases. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Bug in notmuch-emacs: inconsistent rendering for messages with multiple From: headers
Daniel Kahn Gillmor writes: > All three messags below are "From:" both alice and bob, and alice is > always listed first. the difference in how notmuch-emacs displays them > is in how the sending address shows up. In notmuch-search, it only > shows the first address: > > --- > 1 mins. ago [1/1] al...@fifthhorseman.net a final test () > 5 mins. ago [1/1] al...@fifthhorseman.net a third message () > 23 mins. ago [1/1] Alicea second test from Alice and Bob () > 24 mins. ago [1/1] Alicea test from alice and bob () > End of search results. > --- This inconsistency (whether it's a bug or not) is present in the output from "notmuch search" on the CLI, so not emacs specific. > > But the first message in notmuch-show doesn't show Bob at all: > --- > Alice (8 mins. ago) () > Subject: a test from alice and bob > To: Daniel Kahn Gillmor > Date: Mon, 23 Oct 2017 01:37:56 -0400 > > here we go This on the other hand seems to be the fault of the emacs front end, as both addresses are present in the sexp / json output. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Bug in notmuch-emacs: inconsistent rendering for messages with multiple From: headers
I'm experimenting with e-mail messages with multiple addresses in the From: line. i know, it's dirty, but e-mail is a dirty world. I noticed that notmuch-emacs renders such messages differently depending on the order of the recipients, and whether or not they are an addr-spec or a mail-addr (see https://tools.ietf.org/html/rfc5322#section-3.4). All three messags below are "From:" both alice and bob, and alice is always listed first. the difference in how notmuch-emacs displays them is in how the sending address shows up. In notmuch-search, it only shows the first address: --- 1 mins. ago [1/1] al...@fifthhorseman.net a final test () 5 mins. ago [1/1] al...@fifthhorseman.net a third message () 23 mins. ago [1/1] Alicea second test from Alice and Bob () 24 mins. ago [1/1] Alicea test from alice and bob () End of search results. --- But the first message in notmuch-show doesn't show Bob at all: --- Alice (8 mins. ago) () Subject: a test from alice and bob To: Daniel Kahn Gillmor Date: Mon, 23 Oct 2017 01:37:56 -0400 here we go --- --- Begin Message --- here we go --- End Message --- While the rest of them do: --- Alice , Bob (0 mins. ago) () Subject: a second test from Alice and Bob To: Daniel Kahn Gillmor Date: Mon, 23 Oct 2017 01:38:43 -0400 how about now? --- --- Begin Message --- how about now? --- End Message --- --- al...@fifthhorseman.net, Bob (0 mins. ago) () Subject: a third message To: Daniel Kahn Gillmor Date: Mon, 23 Oct 2017 01:56:46 -0400 another try --- --- Begin Message --- another try --- End Message --- --- al...@fifthhorseman.net, b...@fifthhorseman.net (0 mins. ago) () Subject: a final test To: Daniel Kahn Gillmor Date: Mon, 23 Oct 2017 02:00:36 -0400 and where does this leave us? --- --- Begin Message --- and where does this leave us? --- End Message --- Maybe someone with better emacs-fu could figure out why the first of the four is different? --dkg signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch