* lisp/gnus/rfc2047.el: Ditto (bug#22648).
* lisp/gnus/rfc2231.el: Fix problem created by the
mm-replace-in-string conversion.
(if (eq 'OpenPGP protocol)
(epg-sign-string context (buffer-string) mode)
(epg-sign-string context
- (replace-regexp-in-string (buffer-string)
- "\n" "\r\n")
+ (replace-regexp-in-string
+ "\n" "\r\n" (buffer-string))
t))
mml-secure-secret-key-id-list nil)
(error
(mm-set-handle-multipart-parameter
mm-security-handle 'gnus-info "Corrupted")
(throw 'error handle))
- (setq part (replace-regexp-in-string part "\n" "\r\n")
+ (setq part (replace-regexp-in-string "\n" "\r\n" part)
context (epg-make-context 'CMS))
(condition-case error
(setq plain (epg-verify-string context (mm-get-part signature) part))
(mm-set-handle-multipart-parameter
mm-security-handle 'gnus-info "Corrupted")
(throw 'error handle))
- (setq part (replace-regexp-in-string part "\n" "\r\n")
+ (setq part (replace-regexp-in-string "\n" "\r\n" part)
signature (mm-get-part signature)
context (epg-make-context))
(condition-case error
(if (or debug-on-quit debug-on-error)
(signal (car err) (cdr err))
(error "Invalid data for rfc2047 encoding: %s"
- (replace-regexp-in-string orig-text "[ \t\n]+" " "))))))))
+ (replace-regexp-in-string "[ \t\n]+" " " orig-text))))))))
(unless dont-fold
(rfc2047-fold-region b (point)))
(goto-char (point-max))))
(setq eword (rfc2047-encode-1
(- b (point-at-bol))
(replace-regexp-in-string
- (buffer-substring-no-properties b e)
- "\n\\([ \t]?\\)" "\\1")
+ "\n\\([ \t]?\\)" "\\1"
+ (buffer-substring-no-properties b e))
cs
(or (cdr (assq encoding
rfc2047-encode-function-alist))
(let (mod)
(when (and (string-match "\\\\\"" string)
(not (string-match "\\`\"\\|[^\\]\"" string)))
- (setq string (replace-regexp-in-string string "\\\\\"" "\"")
+ (setq string (replace-regexp-in-string "\\\\\"" "\"" string)
mod t))
(when (and (string-match "\\\\(" string)
(string-match "\\\\)" string)
(not (string-match "\\`(\\|[^\\][()]" string)))
- (setq string (replace-regexp-in-string string
- "\\\\\\([()]\\)" "\\1")
+ (setq string (replace-regexp-in-string
+ "\\\\\\([()]\\)" "\\1" string)
mod t))
(or (and mod
(ignore-errors