diff options
| author | Dave Love | 2000-10-09 13:35:39 +0000 |
|---|---|---|
| committer | Dave Love | 2000-10-09 13:35:39 +0000 |
| commit | 126cbb422adc756d37ddf9eeac9df71537c75b39 (patch) | |
| tree | 4db56e2e643eabc3b4fc1d63f8a83f3ffdc430f4 | |
| parent | adf7d3a8749e306916f082648f190b1f378a4220 (diff) | |
| download | emacs-126cbb422adc756d37ddf9eeac9df71537c75b39.tar.gz emacs-126cbb422adc756d37ddf9eeac9df71537c75b39.zip | |
(mail-source-fetch-imap): Bind
default-enable-multibyte-characters rather than using
mm-disable-multibyte.
| -rw-r--r-- | lisp/gnus/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 21 |
2 files changed, 23 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c03ebda6822..79c325d9d4a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2000-10-09 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * mail-source.el (mail-source-fetch-imap): Bind | ||
| 4 | default-enable-multibyte-characters rather than using | ||
| 5 | mm-disable-multibyte. | ||
| 6 | |||
| 7 | 2000-10-03 ShengHuo ZHU <zsh@cs.rochester.edu> | ||
| 8 | |||
| 9 | * mail-source.el (mail-source-fetch-maildir): Don't insert | ||
| 10 | newlines. | ||
| 11 | |||
| 1 | 2000-10-06 Stefan Monnier <monnier@cs.yale.edu> | 12 | 2000-10-06 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 13 | ||
| 3 | * mm-encode.el: Require CL. At least, for `incf'. | 14 | * mm-encode.el: Require CL. At least, for `incf'. |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 1702ca2b7bc..613038aa03b 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -688,7 +688,10 @@ If ARGS, PROMPT is used as an argument to `format'." | |||
| 688 | (defvar mail-source-report-new-mail-timer nil) | 688 | (defvar mail-source-report-new-mail-timer nil) |
| 689 | (defvar mail-source-report-new-mail-idle-timer nil) | 689 | (defvar mail-source-report-new-mail-idle-timer nil) |
| 690 | 690 | ||
| 691 | (eval-when-compile (require 'timer)) | 691 | (eval-when-compile |
| 692 | (if (featurep 'xemacs) | ||
| 693 | (require 'itimer) | ||
| 694 | (require 'timer))) | ||
| 692 | 695 | ||
| 693 | (defun mail-source-start-idle-timer () | 696 | (defun mail-source-start-idle-timer () |
| 694 | ;; Start our idle timer if necessary, so we delay the check until the | 697 | ;; Start our idle timer if necessary, so we delay the check until the |
| @@ -769,10 +772,10 @@ This only works when `display-time' is enabled." | |||
| 769 | ;;; (current-time-string) "\n")) | 772 | ;;; (current-time-string) "\n")) |
| 770 | ;;; (while (re-search-forward "^From " nil t) | 773 | ;;; (while (re-search-forward "^From " nil t) |
| 771 | ;;; (replace-match ">From ")) | 774 | ;;; (replace-match ">From ")) |
| 775 | ;;; (goto-char (point-max)) | ||
| 776 | ;;; (insert "\n\n") | ||
| 772 | ;; MMDF mail format | 777 | ;; MMDF mail format |
| 773 | (insert "\001\001\001\001\n") | 778 | (insert "\001\001\001\001\n")) |
| 774 | (goto-char (point-max)) | ||
| 775 | (insert "\n\n")) | ||
| 776 | (delete-file file))))) | 779 | (delete-file file))))) |
| 777 | (incf found (mail-source-callback callback file)))))) | 780 | (incf found (mail-source-callback callback file)))))) |
| 778 | found))) | 781 | found))) |
| @@ -808,12 +811,12 @@ This only works when `display-time' is enabled." | |||
| 808 | user (or (cdr (assoc from mail-source-password-cache)) | 811 | user (or (cdr (assoc from mail-source-password-cache)) |
| 809 | password) buf) | 812 | password) buf) |
| 810 | (imap-mailbox-select mailbox nil buf)) | 813 | (imap-mailbox-select mailbox nil buf)) |
| 811 | (let (str (coding-system-for-write mail-source-imap-file-coding-system)) | 814 | (let ((coding-system-for-write mail-source-imap-file-coding-system) |
| 815 | ;; Avoid converting 8-bit chars from inserted strings to | ||
| 816 | ;; multibyte. | ||
| 817 | default-enable-multibyte-characters | ||
| 818 | str) | ||
| 812 | (with-temp-file mail-source-crash-box | 819 | (with-temp-file mail-source-crash-box |
| 813 | ;; In some versions of FSF Emacs, inserting unibyte | ||
| 814 | ;; string into multibyte buffer may convert 8-bit chars | ||
| 815 | ;; into latin-iso8859-1 chars, which results \201's. | ||
| 816 | (mm-disable-multibyte) | ||
| 817 | ;; remember password | 820 | ;; remember password |
| 818 | (with-current-buffer buf | 821 | (with-current-buffer buf |
| 819 | (when (or imap-password | 822 | (when (or imap-password |