Subject: Re: bug#17488: 24.3; mail-sendmail-undelimit-header doesn't respect mail-header-separator

From: Katsumi Yamaoka <[email-masked]>
Date: Tue, 17 Apr 2018 15:26:18 +0900

On Mon, 16 Apr 2018 13:42:02 -0400, Lars Ingebrigtsen wrote:
> branch: scratch/prop-search
> commit e1a0cbbcf8389c76f67048e69139b5b0adf2cf38
> Author: Lars Ingebrigtsen <[email-masked]>
> Commit: Lars Ingebrigtsen <[email-masked]>

>     Make mail-sendmail-undelimit-header actually remove the delimiter

>     * lisp/mail/sendmail.el (mail-sendmail-undelimit-header): Actually
>     remove the mail header separator (bug#17488).  In all the cases
>     where this is called, the separator will probably already have
>     been removed, so the only thing this does is place point at the
>     end of the headers.

This change caused the following error:

Debugger entered--Lisp error: (search-failed "^--text follows this line--\n")
  re-search-forward("^--text follows this line--\n")
  mail-sendmail-undelimit-header()
  smtpmail-send-it()
  message-smtpmail-send-it()

So, I've added ``nil t'' to the re-search form.  ;-)