This commit was manufactured by cvs2svn to create tag 'gnus-5_10_6'.
[elisp/gnus.git-] / lisp / mml-smime.el
index bccc8a1..45e06d7 100644 (file)
 
 (require 'smime)
 (require 'mm-decode)
+(autoload 'message-narrow-to-headers "message")
 
 (defun mml-smime-sign (cont)
   (when (null smime-keys)
     (customize-variable 'smime-keys)
     (error "No S/MIME keys configured, use customize to add your key"))
   (smime-sign-buffer (cdr (assq 'keyfile cont)))
+  (goto-char (point-min))
+  (while (search-forward "\r\n" nil t)
+    (replace-match "\n" t t))
   (goto-char (point-max)))
 
 (defun mml-smime-encrypt (cont)