aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengHuo ZHU2001-01-21 05:33:42 +0000
committerShengHuo ZHU2001-01-21 05:33:42 +0000
commit619ac84f4659e950b2595d34d23562e527bc7ec7 (patch)
tree25c2ac9544db5bebaa0e83670c73984a4fbe4e9e
parent2f169c3858dd33cd049f4f62887b42e2577daaad (diff)
downloademacs-619ac84f4659e950b2595d34d23562e527bc7ec7.tar.gz
emacs-619ac84f4659e950b2595d34d23562e527bc7ec7.zip
2001-01-21 ShengHuo ZHU <zsh@cs.rochester.edu>
* message.el (message-forward): Use mule4. * mm-util.el (mm-string-as-unibyte): New. * message.el (message-forward): Use it. * message.el (message-cite-original-without-signature): Don't peel off the blank line. (message-get-reply-headers): Add Cc if it is not in follow-to. * message.el (message-send-mail): Content-Type may not be there. By Alberto Lusiani. * gnus-art.el (article-display-x-face): Insert X-Face if there is not. * rfc2047.el (rfc2047-fold-region): Don't insert LWSP if there is one. * gnus-win.el (gnus-configure-windows): switch-to-buffer in XEmacs. (gnus-remove-some-windows): Ditto. * mm-decode.el (mm-interactively-view-part): Don't copy-sequence handle. * gnus-art.el (gnus-mime-view-part): Copy it. (gnus-mime-view-part-as-type): Add into gnus-article-mime-handles. * nnmail.el (nnmail-get-new-mail): Find group only if file is not orig-file. Use ',source. * nnslashdot.el (nnslashdot-request-list): Get the right year. By Lars Magne Ingebrigtsen. * pop3.el (pop3-get-message-count): Andrew Innes <andrewi@gnu.org>'s patch of 1999-12-01 was not fully committed.
-rw-r--r--lisp/gnus/ChangeLog27
-rw-r--r--lisp/gnus/gnus-art.el3
-rw-r--r--lisp/gnus/gnus-win.el12
-rw-r--r--lisp/gnus/message.el51
-rw-r--r--lisp/gnus/mm-decode.el2
-rw-r--r--lisp/gnus/mm-util.el4
-rw-r--r--lisp/gnus/nnmail.el4
-rw-r--r--lisp/gnus/nnslashdot.el4
-rw-r--r--lisp/gnus/pop3.el22
-rw-r--r--lisp/gnus/rfc2047.el8
10 files changed, 101 insertions, 36 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 068d07833d9..4ab66970c8b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,30 @@
12001-01-21 ShengHuo ZHU <zsh@cs.rochester.edu>
2
3 * message.el (message-forward): Use mule4.
4 * mm-util.el (mm-string-as-unibyte): New.
5 * message.el (message-forward): Use it.
6 * message.el (message-cite-original-without-signature): Don't peel
7 off the blank line.
8 (message-get-reply-headers): Add Cc if it is not in follow-to.
9 * message.el (message-send-mail): Content-Type may not be there.
10 By Alberto Lusiani.
11 * gnus-art.el (article-display-x-face): Insert X-Face if there is
12 not.
13 * rfc2047.el (rfc2047-fold-region): Don't insert LWSP if there is
14 one.
15 * gnus-win.el (gnus-configure-windows): switch-to-buffer in XEmacs.
16 (gnus-remove-some-windows): Ditto.
17 * mm-decode.el (mm-interactively-view-part): Don't copy-sequence
18 handle.
19 * gnus-art.el (gnus-mime-view-part): Copy it.
20 (gnus-mime-view-part-as-type): Add into gnus-article-mime-handles.
21 * nnmail.el (nnmail-get-new-mail): Find group only if file is not
22 orig-file. Use ',source.
23 * nnslashdot.el (nnslashdot-request-list): Get the right year. By
24 Lars Magne Ingebrigtsen.
25 * pop3.el (pop3-get-message-count): Andrew Innes
26 <andrewi@gnu.org>'s patch of 1999-12-01 was not fully committed.
27
12001-01-08 Dave Love <fx@gnu.org> 282001-01-08 Dave Love <fx@gnu.org>
2 29
3 * mm-encode.el (mm-qp-or-base64): Don't base64 for the sake of a 30 * mm-encode.el (mm-qp-or-base64): Don't base64 for the sake of a
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 52c6b3bd63e..b64e335a0bc 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -3015,6 +3015,7 @@ If ALL-HEADERS is non-nil, no headers are hidden."
3015 (interactive) 3015 (interactive)
3016 (gnus-article-check-buffer) 3016 (gnus-article-check-buffer)
3017 (let ((data (get-text-property (point) 'gnus-data))) 3017 (let ((data (get-text-property (point) 'gnus-data)))
3018 (push (setq data (copy-sequence data)) gnus-article-mime-handles)
3018 (mm-interactively-view-part data))) 3019 (mm-interactively-view-part data)))
3019 3020
3020(defun gnus-mime-view-part-as-type-internal () 3021(defun gnus-mime-view-part-as-type-internal ()
@@ -3050,7 +3051,7 @@ If ALL-HEADERS is non-nil, no headers are hidden."
3050 (interactive) 3051 (interactive)
3051 (gnus-article-check-buffer) 3052 (gnus-article-check-buffer)
3052 (let* ((handle (or handle (get-text-property (point) 'gnus-data))) 3053 (let* ((handle (or handle (get-text-property (point) 'gnus-data)))
3053 (contents (mm-get-part handle))| 3054 (contents (mm-get-part handle))
3054 (base (file-name-nondirectory 3055 (base (file-name-nondirectory
3055 (or 3056 (or
3056 (mail-content-type-get (mm-handle-type handle) 'name) 3057 (mail-content-type-get (mm-handle-type handle) 'name)
diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el
index 51934fd9b5f..07e693e793e 100644
--- a/lisp/gnus/gnus-win.el
+++ b/lisp/gnus/gnus-win.el
@@ -452,11 +452,15 @@ See the Gnus manual for an explanation of the syntax used.")
452 (gnus-delete-windows-in-gnusey-frames)) 452 (gnus-delete-windows-in-gnusey-frames))
453 ;; Just remove some windows. 453 ;; Just remove some windows.
454 (gnus-remove-some-windows) 454 (gnus-remove-some-windows)
455 (set-buffer nntp-server-buffer)) 455 (if (featurep 'xemacs)
456 (switch-to-buffer nntp-server-buffer)
457 (set-buffer nntp-server-buffer)))
456 (select-frame frame))) 458 (select-frame frame)))
457 459
458 (let (gnus-window-frame-focus) 460 (let (gnus-window-frame-focus)
459 (set-buffer nntp-server-buffer) 461 (if (featurep 'xemacs)
462 (switch-to-buffer nntp-server-buffer)
463 (set-buffer nntp-server-buffer))
460 (gnus-configure-frame split) 464 (gnus-configure-frame split)
461 (when gnus-window-frame-focus 465 (when gnus-window-frame-focus
462 (select-frame (window-frame gnus-window-frame-focus)))))))) 466 (select-frame (window-frame gnus-window-frame-focus))))))))
@@ -541,7 +545,9 @@ should have point."
541 lowest-buf buf)))) 545 lowest-buf buf))))
542 (when lowest-buf 546 (when lowest-buf
543 (pop-to-buffer lowest-buf) 547 (pop-to-buffer lowest-buf)
544 (set-buffer nntp-server-buffer)) 548 (if (featurep 'xemacs)
549 (switch-to-buffer nntp-server-buffer)
550 (set-buffer nntp-server-buffer)))
545 (mapcar (lambda (b) (delete-windows-on b t)) bufs)))) 551 (mapcar (lambda (b) (delete-windows-on b t)) bufs))))
546 552
547(provide 'gnus-win) 553(provide 'gnus-win)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 673c949a9ae..7cfd964e650 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1,5 +1,5 @@
1;;; message.el --- composing mail and news messages -*- coding: iso-latin-1 -*- 1;;; message.el --- composing mail and news messages -*- coding: iso-latin-1 -*-
2;; Copyright (C) 1996, 1997, 1998, 1999, 2000 2;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3;; Free Software Foundation, Inc. 3;; Free Software Foundation, Inc.
4 4
5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
@@ -1975,7 +1975,8 @@ prefix, and don't delete any headers."
1975 message-cite-function) 1975 message-cite-function)
1976 (delete-windows-on message-reply-buffer t) 1976 (delete-windows-on message-reply-buffer t)
1977 (insert-buffer message-reply-buffer) 1977 (insert-buffer message-reply-buffer)
1978 (funcall message-cite-function) 1978 (unless arg
1979 (funcall message-cite-function))
1979 (message-exchange-point-and-mark) 1980 (message-exchange-point-and-mark)
1980 (unless (bolp) 1981 (unless (bolp)
1981 (insert ?\n)) 1982 (insert ?\n))
@@ -2019,7 +2020,10 @@ prefix, and don't delete any headers."
2019 (while (looking-at "^[ \t]*$") 2020 (while (looking-at "^[ \t]*$")
2020 (forward-line -1)) 2021 (forward-line -1))
2021 (forward-line 1) 2022 (forward-line 1)
2022 (delete-region (point) end)) 2023 (delete-region (point) end)
2024 (unless (search-backward "\n\n" start t)
2025 ;; Insert a blank line if it is peeled off.
2026 (insert "\n")))
2023 (goto-char start) 2027 (goto-char start)
2024 (while functions 2028 (while functions
2025 (funcall (pop functions))) 2029 (funcall (pop functions)))
@@ -2373,10 +2377,13 @@ It should typically alter the sending method in some way or other."
2373 (and news 2377 (and news
2374 (or (message-fetch-field "cc") 2378 (or (message-fetch-field "cc")
2375 (message-fetch-field "to")) 2379 (message-fetch-field "to"))
2376 (string= "text/plain" 2380 (let ((content-type (message-fetch-field "content-type")))
2377 (car 2381 (or
2378 (mail-header-parse-content-type 2382 (not content-type)
2379 (message-fetch-field "content-type")))))) 2383 (string= "text/plain"
2384 (car
2385 (mail-header-parse-content-type
2386 content-type)))))))
2380 (message-insert-courtesy-copy)) 2387 (message-insert-courtesy-copy))
2381 (if (or (not message-send-mail-partially-limit) 2388 (if (or (not message-send-mail-partially-limit)
2382 (< (point-max) message-send-mail-partially-limit) 2389 (< (point-max) message-send-mail-partially-limit)
@@ -4208,24 +4215,18 @@ Optional DIGEST will use digest to forward."
4208 (insert-buffer-substring cur) 4215 (insert-buffer-substring cur)
4209 (mml-insert-buffer cur)) 4216 (mml-insert-buffer cur))
4210 (if message-forward-show-mml 4217 (if message-forward-show-mml
4211 (let ((target (current-buffer)) tmp) 4218 (insert
4212 (with-temp-buffer 4219 (with-temp-buffer
4213 (mm-disable-multibyte) ;; Must copy buffer in unibyte mode 4220 (mm-disable-multibyte-mule4) ;; Must copy buffer in unibyte mode
4214 (setq tmp (current-buffer)) 4221 (insert
4215 (set-buffer cur) 4222 (with-current-buffer cur
4216 (mm-with-unibyte-current-buffer 4223 (mm-string-as-unibyte (buffer-string))))
4217 (set-buffer tmp) 4224 (mm-enable-multibyte-mule4)
4218 (insert-buffer-substring cur) 4225 (mime-to-mml)
4219 (set-buffer cur)) 4226 (goto-char (point-min))
4220 (set-buffer tmp) 4227 (when (looking-at "From ")
4221 (mm-enable-multibyte) 4228 (replace-match "X-From-Line: "))
4222 (mime-to-mml) 4229 (buffer-string)))
4223 (goto-char (point-min))
4224 (when (looking-at "From ")
4225 (replace-match "X-From-Line: "))
4226 (set-buffer target)
4227 (insert-buffer-substring tmp)
4228 (set-buffer tmp)))
4229 (save-restriction 4230 (save-restriction
4230 (narrow-to-region (point) (point)) 4231 (narrow-to-region (point) (point))
4231 (mml-insert-buffer cur) 4232 (mml-insert-buffer cur)
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 63c6c2e9f5f..e27200700c1 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -730,7 +730,7 @@ external if displayed external."
730 (error "No method given")) 730 (error "No method given"))
731 (if (string-match "^[^% \t]+$" method) 731 (if (string-match "^[^% \t]+$" method)
732 (setq method (concat method " %s"))) 732 (setq method (concat method " %s")))
733 (mm-display-external (copy-sequence handle) method))) 733 (mm-display-external handle method)))
734 734
735(defun mm-preferred-alternative (handles &optional preferred) 735(defun mm-preferred-alternative (handles &optional preferred)
736 "Say which of HANDLES are preferred." 736 "Say which of HANDLES are preferred."
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index ea4509cd38f..c258a515dde 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -108,7 +108,9 @@
108 prompt 108 prompt
109 (mapcar (lambda (e) (list (symbol-name (car e)))) 109 (mapcar (lambda (e) (list (symbol-name (car e))))
110 mm-mime-mule-charset-alist) 110 mm-mime-mule-charset-alist)
111 nil t))))))) 111 nil t))))
112 (string-as-unibyte . identity)
113 )))
112 114
113(eval-and-compile 115(eval-and-compile
114 (defalias 'mm-char-or-char-int-p 116 (defalias 'mm-char-or-char-int-p
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index 7cd75c0dac2..504c8083b8a 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1572,7 +1572,9 @@ See the documentation for the variable `nnmail-split-fancy' for documentation."
1572 (nnmail-split-incoming 1572 (nnmail-split-incoming
1573 file ',(intern (format "%s-save-mail" method)) 1573 file ',(intern (format "%s-save-mail" method))
1574 ',spool-func 1574 ',spool-func
1575 (nnmail-get-split-group orig-file source) 1575 (if (equal file orig-file)
1576 nil
1577 (nnmail-get-split-group orig-file ',source))
1576 ',(intern (format "%s-active-number" method)))))) 1578 ',(intern (format "%s-active-number" method))))))
1577 (incf total new) 1579 (incf total new)
1578 (incf i))) 1580 (incf i)))
diff --git a/lisp/gnus/nnslashdot.el b/lisp/gnus/nnslashdot.el
index 37629277350..246a3613a81 100644
--- a/lisp/gnus/nnslashdot.el
+++ b/lisp/gnus/nnslashdot.el
@@ -397,8 +397,8 @@
397 (nnweb-decode-entities-string (match-string 1))) 397 (nnweb-decode-entities-string (match-string 1)))
398 (re-search-forward "<url>\\([^<]+\\)</url>") 398 (re-search-forward "<url>\\([^<]+\\)</url>")
399 (setq sid (match-string 1)) 399 (setq sid (match-string 1))
400 (string-match "/\\([0-9/]+\\)\\(.shtml\\|$\\)" sid) 400 (string-match "sid=\\([0-9/]+\\)\\(.shtml\\|$\\)" sid)
401 (setq sid (concat "00/" (match-string 1 sid))) 401 (setq sid (match-string 1 sid))
402 (re-search-forward "<comments>\\([^<]+\\)</comments>") 402 (re-search-forward "<comments>\\([^<]+\\)</comments>")
403 (setq articles (string-to-number (match-string 1))) 403 (setq articles (string-to-number (match-string 1)))
404 (setq gname (concat description " (" sid ")")) 404 (setq gname (concat description " (" sid ")"))
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index aa040d228f0..ed265af8dee 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -106,6 +106,28 @@ Used for APOP authentication.")
106 ) 106 )
107 t) 107 t)
108 108
109(defun pop3-get-message-count ()
110 "Return the number of messages in the maildrop."
111 (let* ((process (pop3-open-server pop3-mailhost pop3-port))
112 message-count
113 (pop3-password pop3-password)
114 )
115 ;; for debugging only
116 (if pop3-debug (switch-to-buffer (process-buffer process)))
117 ;; query for password
118 (if (and pop3-password-required (not pop3-password))
119 (setq pop3-password
120 (pop3-read-passwd (format "Password for %s: " pop3-maildrop))))
121 (cond ((equal 'apop pop3-authentication-scheme)
122 (pop3-apop process pop3-maildrop))
123 ((equal 'pass pop3-authentication-scheme)
124 (pop3-user process pop3-maildrop)
125 (pop3-pass process))
126 (t (error "Invalid POP3 authentication scheme.")))
127 (setq message-count (car (pop3-stat process)))
128 (pop3-quit process)
129 message-count))
130
109(defun pop3-open-server (mailhost port) 131(defun pop3-open-server (mailhost port)
110 "Open TCP connection to MAILHOST on PORT. 132 "Open TCP connection to MAILHOST on PORT.
111Returns the process associated with the connection." 133Returns the process associated with the connection."
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el
index 1f9ae1d2ce0..f171ba4e068 100644
--- a/lisp/gnus/rfc2047.el
+++ b/lisp/gnus/rfc2047.el
@@ -304,7 +304,9 @@ The buffer may be narrowed."
304 (goto-char (or break qword-break)) 304 (goto-char (or break qword-break))
305 (setq break nil 305 (setq break nil
306 qword-break nil) 306 qword-break nil)
307 (insert "\n ") 307 (if (looking-at " \t")
308 (insert "\n")
309 (insert "\n "))
308 (setq bol (1- (point))) 310 (setq bol (1- (point)))
309 ;; Don't break before the first non-LWSP characters. 311 ;; Don't break before the first non-LWSP characters.
310 (skip-chars-forward " \t") 312 (skip-chars-forward " \t")
@@ -336,7 +338,9 @@ The buffer may be narrowed."
336 (goto-char (or break qword-break)) 338 (goto-char (or break qword-break))
337 (setq break nil 339 (setq break nil
338 qword-break nil) 340 qword-break nil)
339 (insert "\n ") 341 (if (looking-at " \t")
342 (insert "\n")
343 (insert "\n "))
340 (setq bol (1- (point))) 344 (setq bol (1- (point)))
341 ;; Don't break before the first non-LWSP characters. 345 ;; Don't break before the first non-LWSP characters.
342 (skip-chars-forward " \t") 346 (skip-chars-forward " \t")