(require 'sendmail)
(require 'mail-utils)
(require 'mel)
+(require 'semi-def)
(require 'mime-view)
(require 'signature)
(require 'alist)
(require 'invisible)
-;; Avoid byte-compile warning.
-(defvar mc-default-scheme)
-
;;; @ version
;;;
(mime-edit-translate-region beg end boundary))
(ctype (car ret))
(encoding (nth 1 ret))
- pgp-boundary)
+ (pgp-boundary (concat (if (eq 'gpg pgp-version)
+ "gpg-"
+ "pgp-")
+ boundary)))
(goto-char beg)
(insert header)
(insert (format "Content-Type: %s\n" ctype))
recipients (point-min) (point-max) from)
(throw 'mime-edit-error 'pgp-error)
)
- (setq pgp-boundary
- (format "%s-%s"
- (if (eq 'mc-scheme-gpg mc-default-scheme)
- "gpg"
- "pgp")
- boundary))
(goto-char beg)
(insert (format "--[[multipart/encrypted;
boundary=\"%s\";
(goto-char (point-min))
(while (re-search-forward regexp nil t)
(delete-region (match-beginning 0)
- (progn (forward-line 1) (point)))
- )))
+ (1+ (std11-field-end))))))
\f
;;;
(buf-name (buffer-name))
(temp-buf-name (concat "*temp-article:" buf-name "*"))
(buf (get-buffer temp-buf-name))
+ (pgp-processing mime-edit-pgp-processing)
)
(if buf
(progn
(setq mail-header-separator separator)
(make-local-variable 'mime-edit-buffer)
(setq mime-edit-buffer the-buf)
+ (setq mime-edit-pgp-processing pgp-processing)
(run-hooks 'mime-edit-translate-hook)
(mime-edit-translate-buffer)
encoding nil)
)))))))
(if (or encoded (not not-decode-text))
- (decode-mime-charset-region (point-min)(point-max)
- (or charset default-mime-charset))
- )
+ (progn
+ (save-excursion
+ (goto-char (point-min))
+ (while (re-search-forward "\r\n" nil t)
+ (replace-match "\n")
+ ))
+ (decode-mime-charset-region (point-min)(point-max)
+ (or charset default-mime-charset))
+ ))
(let ((he (if (re-search-forward "^$" nil t)
(match-end 0)
(point-min)