diff options
Diffstat (limited to 'lisp/mail')
| -rw-r--r-- | lisp/mail/ietf-drums.el | 11 | ||||
| -rw-r--r-- | lisp/mail/rfc2047.el | 12 |
2 files changed, 12 insertions, 11 deletions
diff --git a/lisp/mail/ietf-drums.el b/lisp/mail/ietf-drums.el index a3e53cfe793..fd793a28309 100644 --- a/lisp/mail/ietf-drums.el +++ b/lisp/mail/ietf-drums.el | |||
| @@ -192,6 +192,17 @@ the Content-Transfer-Encoding header of a mail." | |||
| 192 | (ietf-drums-init string) | 192 | (ietf-drums-init string) |
| 193 | (while (not (eobp)) | 193 | (while (not (eobp)) |
| 194 | (setq c (char-after)) | 194 | (setq c (char-after)) |
| 195 | ;; If we have an uneven number of quote characters, | ||
| 196 | ;; `forward-sexp' will fail. In these cases, just delete the | ||
| 197 | ;; final of these quote characters. | ||
| 198 | (when (and (eq c ?\") | ||
| 199 | (not | ||
| 200 | (save-excursion | ||
| 201 | (ignore-errors | ||
| 202 | (forward-sexp 1) | ||
| 203 | t)))) | ||
| 204 | (delete-char 1) | ||
| 205 | (setq c (char-after))) | ||
| 195 | (cond | 206 | (cond |
| 196 | ((or (eq c ? ) | 207 | ((or (eq c ? ) |
| 197 | (eq c ?\t)) | 208 | (eq c ?\t)) |
diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el index 2a8160921a6..bcbdc17631d 100644 --- a/lisp/mail/rfc2047.el +++ b/lisp/mail/rfc2047.el | |||
| @@ -281,17 +281,7 @@ Should be called narrowed to the head of the message." | |||
| 281 | (encode-coding-region | 281 | (encode-coding-region |
| 282 | (point-min) (point-max) | 282 | (point-min) (point-max) |
| 283 | (mm-charset-to-coding-system | 283 | (mm-charset-to-coding-system |
| 284 | (car message-posting-charset)))) | 284 | (car message-posting-charset))))) |
| 285 | ;; No encoding necessary, but folding is nice | ||
| 286 | (when nil | ||
| 287 | (rfc2047-fold-region | ||
| 288 | (save-excursion | ||
| 289 | (goto-char (point-min)) | ||
| 290 | (skip-chars-forward "^:") | ||
| 291 | (when (looking-at ": ") | ||
| 292 | (forward-char 2)) | ||
| 293 | (point)) | ||
| 294 | (point-max)))) | ||
| 295 | ;; We found something that may perhaps be encoded. | 285 | ;; We found something that may perhaps be encoded. |
| 296 | (re-search-forward "^[^:]+: *" nil t) | 286 | (re-search-forward "^[^:]+: *" nil t) |
| 297 | (cond | 287 | (cond |