Mercurial > emacs
comparison lisp/gnus/rfc2047.el @ 35838:53eebdb81828 zsh-sync-ognus-3
2001-02-01 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnus-score.el (gnus-summary-score-entry): match may be an integer.
* gnus-art.el (gnus-summary-save-in-pipe): Prompt for saving
command if there is not last-saver.
* rfc2047.el (rfc2047-encode): MIME charset is not coding system.
(rfc2047-charset-encoding-alist): Add big5.
* mm-util.el (mm-mime-mule-charset-alist): Preferred MIME names
GB2312 and Big5.
* gnus-score.el (gnus-score-lower-thread): Fix a doc typo.
* gnus-sum.el (gnus-summary-print-article): Remove process mark.
* gnus-sum.el (gnus-summary-print-article): Take one prefix
argument. Allow to print several articles in one file.
* webmail.el (webmail-type-definition): netaddress changes.
author | ShengHuo ZHU <zsh@cs.rochester.edu> |
---|---|
date | Fri, 02 Feb 2001 03:15:52 +0000 |
parents | 26726eff41ca |
children | b9c371244b90 |
comparison
equal
deleted
inserted
replaced
35837:eda9214571fb | 35838:53eebdb81828 |
---|---|
68 (iso-8859-14 . Q) | 68 (iso-8859-14 . Q) |
69 (iso-8859-15 . Q) | 69 (iso-8859-15 . Q) |
70 (iso-2022-jp . B) | 70 (iso-2022-jp . B) |
71 (iso-2022-kr . B) | 71 (iso-2022-kr . B) |
72 (gb2312 . B) | 72 (gb2312 . B) |
73 (big5 . B) | |
74 (cn-big5 . B) | |
73 (cn-gb . B) | 75 (cn-gb . B) |
74 (cn-gb-2312 . B) | 76 (cn-gb-2312 . B) |
75 (euc-kr . B) | 77 (euc-kr . B) |
76 (iso-2022-jp-2 . B) | 78 (iso-2022-jp-2 . B) |
77 (iso-2022-int-1 . B)) | 79 (iso-2022-int-1 . B)) |
256 (buffer-string))) | 258 (buffer-string))) |
257 | 259 |
258 (defun rfc2047-encode (b e charset) | 260 (defun rfc2047-encode (b e charset) |
259 "Encode the word in the region B to E with CHARSET." | 261 "Encode the word in the region B to E with CHARSET." |
260 (let* ((mime-charset (mm-mime-charset charset)) | 262 (let* ((mime-charset (mm-mime-charset charset)) |
263 (cs (mm-charset-to-coding-system mime-charset)) | |
261 (encoding (or (cdr (assq mime-charset | 264 (encoding (or (cdr (assq mime-charset |
262 rfc2047-charset-encoding-alist)) | 265 rfc2047-charset-encoding-alist)) |
263 'B)) | 266 'B)) |
264 (start (concat | 267 (start (concat |
265 "=?" (downcase (symbol-name mime-charset)) "?" | 268 "=?" (downcase (symbol-name mime-charset)) "?" |
273 (while (not (eobp)) | 276 (while (not (eobp)) |
274 (goto-char (min (point-max) (+ 15 (point)))) | 277 (goto-char (min (point-max) (+ 15 (point)))) |
275 (unless (eobp) | 278 (unless (eobp) |
276 (insert "\n")))) | 279 (insert "\n")))) |
277 (if (and (mm-multibyte-p) | 280 (if (and (mm-multibyte-p) |
278 (mm-coding-system-p mime-charset)) | 281 (mm-coding-system-p cs)) |
279 (mm-encode-coding-region (point-min) (point-max) mime-charset)) | 282 (mm-encode-coding-region (point-min) (point-max) cs)) |
280 (funcall (cdr (assq encoding rfc2047-encoding-function-alist)) | 283 (funcall (cdr (assq encoding rfc2047-encoding-function-alist)) |
281 (point-min) (point-max)) | 284 (point-min) (point-max)) |
282 (goto-char (point-min)) | 285 (goto-char (point-min)) |
283 (while (not (eobp)) | 286 (while (not (eobp)) |
284 (unless first | 287 (unless first |