]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-source-fetch-imap): Bind
authorDave Love <fx@gnu.org>
Mon, 9 Oct 2000 13:35:39 +0000 (13:35 +0000)
committerDave Love <fx@gnu.org>
Mon, 9 Oct 2000 13:35:39 +0000 (13:35 +0000)
default-enable-multibyte-characters rather than using
mm-disable-multibyte.

lisp/gnus/ChangeLog
lisp/gnus/mail-source.el

index c03ebda68222916d9e6cbe2ea8e621a55d5e9c76..79c325d9d4a1625e28fafa3e1dc987aea16212e9 100644 (file)
@@ -1,3 +1,14 @@
+2000-10-09  Dave Love  <fx@gnu.org>
+
+       * mail-source.el (mail-source-fetch-imap): Bind
+       default-enable-multibyte-characters rather than using
+       mm-disable-multibyte.
+
+2000-10-03  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mail-source.el (mail-source-fetch-maildir): Don't insert
+       newlines.
+
 2000-10-06  Stefan Monnier  <monnier@cs.yale.edu>
 
        * mm-encode.el: Require CL.  At least, for `incf'.
index 1702ca2b7bc8cc85c33dec54748c99e14515eb71..613038aa03be7c14b0537e61a437a447e43bd610 100644 (file)
@@ -688,7 +688,10 @@ If ARGS, PROMPT is used as an argument to `format'."
 (defvar mail-source-report-new-mail-timer nil)
 (defvar mail-source-report-new-mail-idle-timer nil)
 
-(eval-when-compile (require 'timer))
+(eval-when-compile 
+  (if (featurep 'xemacs)
+      (require 'itimer)
+    (require 'timer)))
 
 (defun mail-source-start-idle-timer ()
   ;; 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."
 ;;;                                        (current-time-string) "\n"))
 ;;;                              (while (re-search-forward "^From " nil t)
 ;;;                                (replace-match ">From "))
+;;;                               (goto-char (point-max))
+;;;                              (insert "\n\n")
                                  ;; MMDF mail format
-                                 (insert "\001\001\001\001\n")
-                                 (goto-char (point-max))
-                                 (insert "\n\n"))
+                                 (insert "\001\001\001\001\n"))
                                (delete-file file)))))
              (incf found (mail-source-callback callback file))))))
       found)))
@@ -808,12 +811,12 @@ This only works when `display-time' is enabled."
                user (or (cdr (assoc from mail-source-password-cache))
                         password) buf)
               (imap-mailbox-select mailbox nil buf))
-         (let (str (coding-system-for-write mail-source-imap-file-coding-system))
+         (let ((coding-system-for-write mail-source-imap-file-coding-system) 
+               ;; Avoid converting 8-bit chars from inserted strings to
+               ;; multibyte.
+               default-enable-multibyte-characters
+               str)
            (with-temp-file mail-source-crash-box
-             ;; In some versions of FSF Emacs, inserting unibyte
-             ;; string into multibyte buffer may convert 8-bit chars
-             ;; into latin-iso8859-1 chars, which results \201's.
-             (mm-disable-multibyte)
              ;; remember password
              (with-current-buffer buf
                (when (or imap-password