aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-08-21 22:10:49 +0000
committerKatsumi Yamaoka2011-08-21 22:10:49 +0000
commit138c0212ac4bc4708210ba4b3e0a4fad00a4dc5f (patch)
tree5a7f31c0c23d4167e8b73986f100294c915a0a00
parent7185da524d81acaaa872f8f803870d8c57c8b4c9 (diff)
downloademacs-138c0212ac4bc4708210ba4b3e0a4fad00a4dc5f.tar.gz
emacs-138c0212ac4bc4708210ba4b3e0a4fad00a4dc5f.zip
Merge changes made in Gnus trunk.
nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out, continue on and do the clean-up phase (bug#9188). gnus-sum.el (gnus-summary-expire-articles): When expiring articles, just ignore groups that can't be opened instead of erroring out (bug#9225). gnus-art.el (gnus-article-update-date-headers): Flip the default to nil since some many people are fuddy-duddies. gnus-html.el (gnus-html-image-fetched): Don't cache zero-length images.
-rw-r--r--lisp/gnus/ChangeLog13
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-html.el15
-rw-r--r--lisp/gnus/gnus-sum.el55
-rw-r--r--lisp/gnus/nnmail.el29
5 files changed, 66 insertions, 48 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 4fc144b81b9..ad3e26f0f51 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,18 @@
12011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out,
4 continue on and do the clean-up phase (bug#9188).
5
6 * gnus-sum.el (gnus-summary-expire-articles): When expiring articles,
7 just ignore groups that can't be opened instead of erroring out
8 (bug#9225).
9
10 * gnus-art.el (gnus-article-update-date-headers): Flip the default to
11 nil since some many people are fuddy-duddies.
12
13 * gnus-html.el (gnus-html-image-fetched): Don't cache zero-length
14 images.
15
3 * nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source 16 * nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source
4 instead. 17 instead.
5 18
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c6e0180dadc..eaf0ed52f51 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1039,7 +1039,7 @@ Some of these headers are updated automatically. See
1039 (item :tag "ISO8601 format" :value 'iso8601) 1039 (item :tag "ISO8601 format" :value 'iso8601)
1040 (item :tag "User-defined" :value 'user-defined))) 1040 (item :tag "User-defined" :value 'user-defined)))
1041 1041
1042(defcustom gnus-article-update-date-headers 1 1042(defcustom gnus-article-update-date-headers nil
1043 "A number that says how often to update the date header (in seconds). 1043 "A number that says how often to update the date header (in seconds).
1044If nil, don't update it at all." 1044If nil, don't update it at all."
1045 :version "24.1" 1045 :version "24.1"
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index d3da6aab1b7..f443c4021e2 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -399,15 +399,16 @@ Use ALT-TEXT for the image string."
399(defun gnus-html-image-fetched (status buffer image) 399(defun gnus-html-image-fetched (status buffer image)
400 "Callback function called when image has been fetched." 400 "Callback function called when image has been fetched."
401 (unless (plist-get status :error) 401 (unless (plist-get status :error)
402 (when gnus-html-image-automatic-caching
403 (url-store-in-cache (current-buffer)))
404 (when (and (or (search-forward "\n\n" nil t) 402 (when (and (or (search-forward "\n\n" nil t)
405 (search-forward "\r\n\r\n" nil t)) 403 (search-forward "\r\n\r\n" nil t))
406 (buffer-live-p buffer)) 404 (not (eobp)))
407 (let ((data (buffer-substring (point) (point-max)))) 405 (when gnus-html-image-automatic-caching
408 (with-current-buffer buffer 406 (url-store-in-cache (current-buffer)))
409 (let ((inhibit-read-only t)) 407 (when (buffer-live-p buffer)
410 (gnus-html-put-image data (car image) (cadr image))))))) 408 (let ((data (buffer-substring (point) (point-max))))
409 (with-current-buffer buffer
410 (let ((inhibit-read-only t))
411 (gnus-html-put-image data (car image) (cadr image))))))))
411 (kill-buffer (current-buffer))) 412 (kill-buffer (current-buffer)))
412 413
413(defun gnus-html-get-image-data (url) 414(defun gnus-html-get-image-data (url)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 73ecffb090e..c01f91973a0 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -10287,34 +10287,33 @@ This will be the case if the article has both been mailed and posted."
10287 ;; There are expirable articles in this group, so we run them 10287 ;; There are expirable articles in this group, so we run them
10288 ;; through the expiry process. 10288 ;; through the expiry process.
10289 (gnus-message 6 "Expiring articles...") 10289 (gnus-message 6 "Expiring articles...")
10290 (unless (gnus-check-group gnus-newsgroup-name) 10290 (when (gnus-check-group gnus-newsgroup-name)
10291 (error "Can't open server for %s" gnus-newsgroup-name)) 10291 ;; The list of articles that weren't expired is returned.
10292 ;; The list of articles that weren't expired is returned. 10292 (save-excursion
10293 (save-excursion 10293 (if expiry-wait
10294 (if expiry-wait 10294 (let ((nnmail-expiry-wait-function nil)
10295 (let ((nnmail-expiry-wait-function nil) 10295 (nnmail-expiry-wait expiry-wait))
10296 (nnmail-expiry-wait expiry-wait)) 10296 (setq es (gnus-request-expire-articles
10297 (setq es (gnus-request-expire-articles 10297 expirable gnus-newsgroup-name)))
10298 expirable gnus-newsgroup-name))) 10298 (setq es (gnus-request-expire-articles
10299 (setq es (gnus-request-expire-articles 10299 expirable gnus-newsgroup-name)))
10300 expirable gnus-newsgroup-name))) 10300 (unless total
10301 (unless total 10301 (setq gnus-newsgroup-expirable es))
10302 (setq gnus-newsgroup-expirable es)) 10302 ;; We go through the old list of expirable, and mark all
10303 ;; We go through the old list of expirable, and mark all 10303 ;; really expired articles as nonexistent.
10304 ;; really expired articles as nonexistent. 10304 (unless (eq es expirable) ;If nothing was expired, we don't mark.
10305 (unless (eq es expirable) ;If nothing was expired, we don't mark. 10305 (let ((gnus-use-cache nil))
10306 (let ((gnus-use-cache nil)) 10306 (dolist (article expirable)
10307 (dolist (article expirable) 10307 (when (and (not (memq article es))
10308 (when (and (not (memq article es)) 10308 (gnus-data-find article))
10309 (gnus-data-find article)) 10309 (gnus-summary-mark-article article gnus-canceled-mark)
10310 (gnus-summary-mark-article article gnus-canceled-mark) 10310 (run-hook-with-args 'gnus-summary-article-expire-hook
10311 (run-hook-with-args 'gnus-summary-article-expire-hook 10311 'delete
10312 'delete 10312 (gnus-data-header
10313 (gnus-data-header 10313 (assoc article (gnus-data-list nil)))
10314 (assoc article (gnus-data-list nil))) 10314 gnus-newsgroup-name
10315 gnus-newsgroup-name 10315 nil
10316 nil 10316 nil)))))))
10317 nil))))))
10318 (gnus-message 6 "Expiring articles...done"))))) 10317 (gnus-message 6 "Expiring articles...done")))))
10319 10318
10320(defun gnus-summary-expire-articles-now () 10319(defun gnus-summary-expire-articles-now ()
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index dc2080dee1a..d83467a1ed5 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1842,18 +1842,23 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1842 ;; and fetch the mail from each. 1842 ;; and fetch the mail from each.
1843 (while (setq source (pop fetching-sources)) 1843 (while (setq source (pop fetching-sources))
1844 (when (setq new 1844 (when (setq new
1845 (mail-source-fetch 1845 (condition-case cond
1846 source 1846 (mail-source-fetch
1847 (gnus-byte-compile 1847 source
1848 `(lambda (file orig-file) 1848 (gnus-byte-compile
1849 (nnmail-split-incoming 1849 `(lambda (file orig-file)
1850 file ',(intern (format "%s-save-mail" method)) 1850 (nnmail-split-incoming
1851 ',spool-func 1851 file ',(intern (format "%s-save-mail" method))
1852 (or in-group 1852 ',spool-func
1853 (if (equal file orig-file) 1853 (or in-group
1854 nil 1854 (if (equal file orig-file)
1855 (nnmail-get-split-group orig-file ',source))) 1855 nil
1856 ',(intern (format "%s-active-number" method))))))) 1856 (nnmail-get-split-group orig-file
1857 ',source)))
1858 ',(intern (format "%s-active-number" method))))))
1859 ((error quit)
1860 (message "Mail source %s failed: %s" source cond)
1861 0)))
1857 (incf total new) 1862 (incf total new)
1858 (incf i))) 1863 (incf i)))
1859 ;; If we did indeed read any incoming spools, we save all info. 1864 ;; If we did indeed read any incoming spools, we save all info.