]> git.cworth.org Git - notmuch/commit
notmuch-emacs-mua: avoid extra separators at the end of the line
authorJani Nikula <jani@nikula.org>
Thu, 30 Nov 2023 16:13:19 +0000 (18:13 +0200)
committerDavid Bremner <david@tethera.net>
Fri, 1 Dec 2023 11:22:26 +0000 (07:22 -0400)
commit67990376b7e03f2ca4b78569b143713b76b6e946
tree89a2418d6e3aee34f568dfdd8d1795a6089392ed
parent4f82acce17ca51b03bea2abe3eefb7c3026138fe
notmuch-emacs-mua: avoid extra separators at the end of the line

Currently the --to/--cc/--bcc options add "user@example.com, " to the
message headers, with the the unnecessary ", " separator after the
last address, regardless of how many addresses are being added.

This used to be fine, but with recent emacs mm, trying to send the
email with the trailing commas leads to prompt:

  Email address  looks invalid; send anyway? (y or n)

Fix this by only adding the commas between addresses, avoiding the
trailing commas.
emacs/notmuch-emacs-mua