;;; smtpmail.el --- SMTP interface for mail-mode
-;; Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+;; Copyright (C) 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp>
;; Keywords: mail
(insert ?\n))
;; Change header-delimiter to be what sendmail expects.
(goto-char (point-min))
- (re-search-forward
- (concat "^" (regexp-quote mail-header-separator) "\n"))
- (replace-match "\n")
+ (if (re-search-forward
+ (concat "^\\(" (regexp-quote mail-header-separator) "\\)?\n"))
+ (replace-match "\n"))
(backward-char 1)
(setq delimline (point-marker))
;; (sendmail-synch-aliases)