aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2010-10-16 01:55:08 +0000
committerKatsumi Yamaoka2010-10-16 01:55:08 +0000
commit283f7b939efc51946f8474601163c43182417a48 (patch)
tree5ae0a5a8c4d980228ac38f036cf2d4e8c7257395
parentda16abfc7e8b83dea385f717c50a58a3b458c35c (diff)
downloademacs-283f7b939efc51946f8474601163c43182417a48.tar.gz
emacs-283f7b939efc51946f8474601163c43182417a48.zip
Merge changes made in Gnus trunk.
nnimap.el: Use nnheader-message throughout. gnus.el: Autoload gnus-html-show-images. mml.el (mml-generate-mime-1): Add `mml-enable-flow' variable to add a possibility to disable format=flow encoding when using hard newlines. gnus-diary.el (gnus-diary-check-message): Fix gnus-completing-read call. gnus-sum.el (gnus-summary-refer-thread): unconditionally ignore duplicates.
-rw-r--r--lisp/gnus/ChangeLog24
-rw-r--r--lisp/gnus/gnus-diary.el2
-rw-r--r--lisp/gnus/gnus-sum.el1
-rw-r--r--lisp/gnus/gnus.el1
-rw-r--r--lisp/gnus/mml.el11
-rw-r--r--lisp/gnus/nnimap.el21
6 files changed, 46 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 765309e28a0..5242947c2f5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,12 +1,30 @@
12010-10-15 Andrew Cohen <cohen@andy.bu.edu>
2
3 * gnus-sum.el (gnus-summary-refer-thread): unconditionally ignore
4 duplicates.
5
62010-10-15 Kan-Ru Chen <kanru@kanru.info> (tiny change)
7
8 * gnus-diary.el (gnus-diary-check-message): Fix gnus-completing-read
9 call.
10
12010-10-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 112010-10-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 12
13 * gnus.el: Autoload gnus-html-show-images.
14
15 * nnimap.el: Use nnheader-message throughout.
16
3 * shr.el (shr-tag-img): Ignore images with no data. 17 * shr.el (shr-tag-img): Ignore images with no data.
4 18
192010-10-15 Julien Danjou <julien@danjou.info>
20
21 * mml.el (mml-generate-mime-1): Add `mml-enable-flow' variable to add a
22 possibility to disable format=flow encoding when using hard newlines.
23
52010-10-15 Katsumi Yamaoka <yamaoka@jpl.org> 242010-10-15 Katsumi Yamaoka <yamaoka@jpl.org>
6 25
7 * shr.el (shr-generic): Remove trailing space. 26 * shr.el (shr-insert): Remove space inserted before or after a
8 (shr-insert): Remove space inserted before or after a breakable 27 breakable character or at the beginning or the end of a line.
9 character or at the beginning or the end of a line.
10 (shr-find-fill-point): Do kinsoku; find the second best point or give 28 (shr-find-fill-point): Do kinsoku; find the second best point or give
11 it up if there's no breakable point. 29 it up if there's no breakable point.
12 30
diff --git a/lisp/gnus/gnus-diary.el b/lisp/gnus/gnus-diary.el
index 76d469b66f9..c2b95c7099b 100644
--- a/lisp/gnus/gnus-diary.el
+++ b/lisp/gnus/gnus-diary.el
@@ -368,7 +368,7 @@ If ARG (or prefix) is non-nil, force prompting for all fields."
368 header ": "))) 368 header ": ")))
369 (setq value 369 (setq value
370 (if (listp (nth 1 head)) 370 (if (listp (nth 1 head))
371 (gnus-completing-read prompt (cons '("*" nil) (nth 1 head)) 371 (gnus-completing-read prompt (cons "*" (mapcar 'car (nth 1 head)))
372 t value 372 t value
373 'gnus-diary-header-value-history) 373 'gnus-diary-header-value-history)
374 (read-string prompt value 374 (read-string prompt value
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 568e2976268..c50d8aabf7b 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -8830,6 +8830,7 @@ fetch what's specified by the `gnus-refer-thread-limit'
8830variable." 8830variable."
8831 (interactive "P") 8831 (interactive "P")
8832 (let ((id (mail-header-id (gnus-summary-article-header))) 8832 (let ((id (mail-header-id (gnus-summary-article-header)))
8833 (gnus-summary-ignore-duplicates t)
8833 (limit (if limit (prefix-numeric-value limit) 8834 (limit (if limit (prefix-numeric-value limit)
8834 gnus-refer-thread-limit))) 8835 gnus-refer-thread-limit)))
8835 (if (gnus-check-backend-function 'request-thread gnus-newsgroup-name) 8836 (if (gnus-check-backend-function 'request-thread gnus-newsgroup-name)
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index c944f4a307d..19b71551c14 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -2911,6 +2911,7 @@ gnus-registry.el will populate this if it's loaded.")
2911 gnus-start-date-timer gnus-stop-date-timer 2911 gnus-start-date-timer gnus-stop-date-timer
2912 gnus-mime-view-all-parts) 2912 gnus-mime-view-all-parts)
2913 ("gnus-int" gnus-request-type) 2913 ("gnus-int" gnus-request-type)
2914 ("gnus-html" gnus-html-show-images)
2914 ("gnus-start" gnus-newsrc-parse-options gnus-1 gnus-no-server-1 2915 ("gnus-start" gnus-newsrc-parse-options gnus-1 gnus-no-server-1
2915 gnus-dribble-enter gnus-read-init-file gnus-dribble-touch 2916 gnus-dribble-enter gnus-read-init-file gnus-dribble-touch
2916 gnus-check-reasonable-setup) 2917 gnus-check-reasonable-setup)
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 43e86cb6c34..1975af4183a 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -128,6 +128,14 @@ It is necessary to work against a bug in certain clients."
128 :type 'boolean 128 :type 'boolean
129 :group 'message) 129 :group 'message)
130 130
131(defcustom mml-enable-flowed t
132 "If non-nil, enable format=flowed usage when encoding a message.
133This is only performed when filling on text/plain with hard
134newlines in the text."
135 :version "24.1"
136 :type 'boolean
137 :group 'message)
138
131(defvar mml-tweak-type-alist nil 139(defvar mml-tweak-type-alist nil
132 "A list of (TYPE . FUNCTION) for tweaking MML parts. 140 "A list of (TYPE . FUNCTION) for tweaking MML parts.
133TYPE is a string containing a regexp to match the MIME type. FUNCTION 141TYPE is a string containing a regexp to match the MIME type. FUNCTION
@@ -546,7 +554,8 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
546 ;; in the mml tag or it says "flowed" and there 554 ;; in the mml tag or it says "flowed" and there
547 ;; actually are hard newlines in the text. 555 ;; actually are hard newlines in the text.
548 (let (use-hard-newlines) 556 (let (use-hard-newlines)
549 (when (and (string= type "text/plain") 557 (when (and mml-enable-flowed
558 (string= type "text/plain")
550 (not (string= (cdr (assq 'sign cont)) "pgp")) 559 (not (string= (cdr (assq 'sign cont)) "pgp"))
551 (or (null (assq 'format cont)) 560 (or (null (assq 'format cont))
552 (string= (cdr (assq 'format cont)) 561 (string= (cdr (assq 'format cont))
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index bb9f5691984..8f0a112c7f3 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -304,7 +304,8 @@ textual parts.")
304 ((or (eq nnimap-stream 'network) 304 ((or (eq nnimap-stream 'network)
305 (and (eq nnimap-stream 'starttls) 305 (and (eq nnimap-stream 'starttls)
306 (fboundp 'open-gnutls-stream))) 306 (fboundp 'open-gnutls-stream)))
307 (message "Opening connection to %s..." nnimap-address) 307 (nnheader-message 7 "Opening connection to %s..."
308 nnimap-address)
308 (open-network-stream 309 (open-network-stream
309 "*nnimap*" (current-buffer) nnimap-address 310 "*nnimap*" (current-buffer) nnimap-address
310 (setq port 311 (setq port
@@ -314,13 +315,14 @@ textual parts.")
314 "143")))) 315 "143"))))
315 '("143" "imap")) 316 '("143" "imap"))
316 ((eq nnimap-stream 'shell) 317 ((eq nnimap-stream 'shell)
317 (message "Opening connection to %s via shell..." nnimap-address) 318 (nnheader-message 7 "Opening connection to %s via shell..."
319 nnimap-address)
318 (nnimap-open-shell-stream 320 (nnimap-open-shell-stream
319 "*nnimap*" (current-buffer) nnimap-address 321 "*nnimap*" (current-buffer) nnimap-address
320 (setq port (or nnimap-server-port "imap"))) 322 (setq port (or nnimap-server-port "imap")))
321 '("imap")) 323 '("imap"))
322 ((eq nnimap-stream 'starttls) 324 ((eq nnimap-stream 'starttls)
323 (message "Opening connection to %s via starttls..." 325 (nnheader-message 7 "Opening connection to %s via starttls..."
324 nnimap-address) 326 nnimap-address)
325 (let ((tls-program 327 (let ((tls-program
326 '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof -starttls imap"))) 328 '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof -starttls imap")))
@@ -329,7 +331,8 @@ textual parts.")
329 (setq port (or nnimap-server-port "imap")))) 331 (setq port (or nnimap-server-port "imap"))))
330 '("imap")) 332 '("imap"))
331 ((memq nnimap-stream '(ssl tls)) 333 ((memq nnimap-stream '(ssl tls))
332 (message "Opening connection to %s via tls..." nnimap-address) 334 (nnheader-message 7 "Opening connection to %s via tls..."
335 nnimap-address)
333 (funcall (if (fboundp 'open-gnutls-stream) 336 (funcall (if (fboundp 'open-gnutls-stream)
334 'open-gnutls-stream 337 'open-gnutls-stream
335 'open-tls-stream) 338 'open-tls-stream)
@@ -734,7 +737,7 @@ textual parts.")
734 ((and force 737 ((and force
735 (eq nnmail-expiry-target 'delete)) 738 (eq nnmail-expiry-target 'delete))
736 (unless (nnimap-delete-article (gnus-compress-sequence articles)) 739 (unless (nnimap-delete-article (gnus-compress-sequence articles))
737 (message "Article marked for deletion, but not expunged.")) 740 (nnheader-message 7 "Article marked for deletion, but not expunged."))
738 nil) 741 nil)
739 (t 742 (t
740 (let ((deletable-articles 743 (let ((deletable-articles
@@ -760,7 +763,7 @@ textual parts.")
760 (let ((target nnmail-expiry-target)) 763 (let ((target nnmail-expiry-target))
761 (with-temp-buffer 764 (with-temp-buffer
762 (when (nnimap-request-article article group server (current-buffer)) 765 (when (nnimap-request-article article group server (current-buffer))
763 (message "Expiring article %s:%d" group article) 766 (nnheader-message 7 "Expiring article %s:%d" group article)
764 (when (functionp target) 767 (when (functionp target)
765 (setq target (funcall target group))) 768 (setq target (funcall target group)))
766 (when (and target 769 (when (and target
@@ -830,7 +833,7 @@ textual parts.")
830 (when (and (nnimap-possibly-change-group nil server) 833 (when (and (nnimap-possibly-change-group nil server)
831 nnimap-inbox 834 nnimap-inbox
832 nnimap-split-methods) 835 nnimap-split-methods)
833 (message "nnimap %s splitting mail..." server) 836 (nnheader-message 7 "nnimap %s splitting mail..." server)
834 (nnimap-split-incoming-mail))) 837 (nnimap-split-incoming-mail)))
835 838
836(defun nnimap-marks-to-flags (marks) 839(defun nnimap-marks-to-flags (marks)
@@ -882,7 +885,7 @@ textual parts.")
882 (let ((result (nnimap-get-response sequence))) 885 (let ((result (nnimap-get-response sequence)))
883 (if (not (car result)) 886 (if (not (car result))
884 (progn 887 (progn
885 (message "%s" (nnheader-get-report-string 'nnimap)) 888 (nnheader-message 7 "%s" (nnheader-get-report-string 'nnimap))
886 nil) 889 nil)
887 (cons group 890 (cons group
888 (nnimap-find-article-by-message-id group message-id)))))))) 891 (nnimap-find-article-by-message-id group message-id))))))))
@@ -1431,7 +1434,7 @@ textual parts.")
1431 (point-min)) 1434 (point-min))
1432 t))) 1435 t)))
1433 (when messagep 1436 (when messagep
1434 (message "nnimap read %dk" (/ (buffer-size) 1000))) 1437 (nnheader-message 7 "nnimap read %dk" (/ (buffer-size) 1000)))
1435 (nnheader-accept-process-output process) 1438 (nnheader-accept-process-output process)
1436 (goto-char (point-max))) 1439 (goto-char (point-max)))
1437 openp) 1440 openp)