diff options
| author | Joakim Verona | 2015-02-08 21:55:28 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-02-08 21:55:28 +0100 |
| commit | 5e1d5ef39ca0d2fbff26d659f2ec6ce863b14529 (patch) | |
| tree | 860e0d53399626aee6249ebb5f972879f403b228 /lisp/gnus | |
| parent | 148262ce3db990ed16989341345e232570b3a338 (diff) | |
| parent | 7d631aa0ffab875e4979727f632703ad5b4100a2 (diff) | |
| download | emacs-5e1d5ef39ca0d2fbff26d659f2ec6ce863b14529.tar.gz emacs-5e1d5ef39ca0d2fbff26d659f2ec6ce863b14529.zip | |
merge masterxwidget
Diffstat (limited to 'lisp/gnus')
| -rw-r--r-- | lisp/gnus/ChangeLog | 30 | ||||
| -rw-r--r-- | lisp/gnus/gnus-int.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 34 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 15 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 65 |
6 files changed, 88 insertions, 64 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 841cff57ea2..32d3f08f586 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2015-02-05 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * gnus-start.el (gnus-save-newsrc-file-check-timestamp): Remove | ||
| 4 | variable; always check the newrc timestamp. | ||
| 5 | (gnus-save-newsrc-file): Always check timestamp. | ||
| 6 | |||
| 7 | 2015-02-05 Timo Lilja <timo.lilja@iki.fi> (tiny change) | ||
| 8 | |||
| 9 | * mail-source.el (mail-source-call-script): If scripts exit with an | ||
| 10 | error, pop up an error buffer. | ||
| 11 | |||
| 12 | 2015-02-05 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 13 | |||
| 14 | * gnus-sum.el (gnus-extra-headers): Add the popular Gmail X-GM-LABELS | ||
| 15 | as a default. | ||
| 16 | |||
| 17 | * nnimap.el (nnimap-request-group-scan): Ensure that we've selected the | ||
| 18 | correct server. | ||
| 19 | |||
| 20 | 2015-02-05 Vincent Bernat <bernat@luffy.cx> (tiny change) | ||
| 21 | |||
| 22 | * nnimap.el (nnimap-request-group-scan): Fix the function name. | ||
| 23 | |||
| 24 | * gnus-int.el (gnus-request-group-scan): Use the correct function name. | ||
| 25 | |||
| 26 | 2015-02-05 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 27 | |||
| 28 | * gnus-sum.el (gnus-select-newsgroup): Pass the group info along so | ||
| 29 | that nnimap works for non-activated backends. | ||
| 30 | |||
| 1 | 2015-02-04 Stefan Monnier <monnier@iro.umontreal.ca> | 31 | 2015-02-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 32 | ||
| 3 | * mm-util.el (mm-with-unibyte-current-buffer): Don't emit a warning | 33 | * mm-util.el (mm-with-unibyte-current-buffer): Don't emit a warning |
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el index dd938ce0758..4e870bb84bb 100644 --- a/lisp/gnus/gnus-int.el +++ b/lisp/gnus/gnus-int.el | |||
| @@ -442,7 +442,7 @@ If it is down, start it up (again)." | |||
| 442 | (defun gnus-request-group-scan (group info) | 442 | (defun gnus-request-group-scan (group info) |
| 443 | "Request that GROUP get a complete rescan." | 443 | "Request that GROUP get a complete rescan." |
| 444 | (let ((gnus-command-method (gnus-find-method-for-group group)) | 444 | (let ((gnus-command-method (gnus-find-method-for-group group)) |
| 445 | (func 'request-group-description)) | 445 | (func 'request-group-scan)) |
| 446 | (when (gnus-check-backend-function func group) | 446 | (when (gnus-check-backend-function func group) |
| 447 | (funcall (gnus-get-function gnus-command-method func) | 447 | (funcall (gnus-get-function gnus-command-method func) |
| 448 | (gnus-group-real-name group) (nth 1 gnus-command-method) info)))) | 448 | (gnus-group-real-name group) (nth 1 gnus-command-method) info)))) |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index aa2568d5559..0c0246a4e14 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -442,15 +442,6 @@ See also `gnus-before-startup-hook'." | |||
| 442 | :group 'gnus-newsrc | 442 | :group 'gnus-newsrc |
| 443 | :type 'hook) | 443 | :type 'hook) |
| 444 | 444 | ||
| 445 | (defcustom gnus-save-newsrc-file-check-timestamp nil | ||
| 446 | "Check the modification time of the newsrc.eld file before saving it. | ||
| 447 | When the newsrc.eld file is updated by multiple machines, | ||
| 448 | checking the file's modification time is a good way to avoid | ||
| 449 | overwriting updated data." | ||
| 450 | :version "25.1" | ||
| 451 | :group 'gnus-newsrc | ||
| 452 | :type 'boolean) | ||
| 453 | |||
| 454 | (defcustom gnus-save-newsrc-hook nil | 445 | (defcustom gnus-save-newsrc-hook nil |
| 455 | "A hook called before saving any of the newsrc files." | 446 | "A hook called before saving any of the newsrc files." |
| 456 | :group 'gnus-newsrc | 447 | :group 'gnus-newsrc |
| @@ -2833,19 +2824,18 @@ If FORCE is non-nil, the .newsrc file is read." | |||
| 2833 | 2824 | ||
| 2834 | ;; check timestamp of `gnus-current-startup-file'.eld against | 2825 | ;; check timestamp of `gnus-current-startup-file'.eld against |
| 2835 | ;; `gnus-save-newsrc-file-last-timestamp' | 2826 | ;; `gnus-save-newsrc-file-last-timestamp' |
| 2836 | (when gnus-save-newsrc-file-check-timestamp | 2827 | (let* ((checkfile (concat gnus-current-startup-file ".eld")) |
| 2837 | (let* ((checkfile (concat gnus-current-startup-file ".eld")) | 2828 | (mtime (nth 5 (file-attributes checkfile)))) |
| 2838 | (mtime (nth 5 (file-attributes checkfile)))) | 2829 | (when (and gnus-save-newsrc-file-last-timestamp |
| 2839 | (when (and gnus-save-newsrc-file-last-timestamp | 2830 | (time-less-p gnus-save-newsrc-file-last-timestamp |
| 2840 | (time-less-p gnus-save-newsrc-file-last-timestamp | 2831 | mtime)) |
| 2841 | mtime)) | 2832 | (unless (y-or-n-p |
| 2842 | (unless (y-or-n-p | 2833 | (format "%s was updated externally after %s, save?" |
| 2843 | (format "%s was updated externally after %s, save?" | 2834 | checkfile |
| 2844 | checkfile | 2835 | (format-time-string |
| 2845 | (format-time-string | 2836 | "%c" |
| 2846 | "%c" | 2837 | gnus-save-newsrc-file-last-timestamp))) |
| 2847 | gnus-save-newsrc-file-last-timestamp))) | 2838 | (error "Couldn't save %s: updated externally" checkfile)))) |
| 2848 | (error "Couldn't save %s: updated externally" checkfile))))) | ||
| 2849 | 2839 | ||
| 2850 | (if gnus-save-startup-file-via-temp-buffer | 2840 | (if gnus-save-startup-file-via-temp-buffer |
| 2851 | (let ((coding-system-for-write gnus-ding-file-coding-system) | 2841 | (let ((coding-system-for-write gnus-ding-file-coding-system) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index efe7a4d3d65..66b1050acc4 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -1160,9 +1160,9 @@ which it may alter in any way." | |||
| 1160 | 'mail-decode-encoded-address-string | 1160 | 'mail-decode-encoded-address-string |
| 1161 | "Function used to decode addresses with encoded words.") | 1161 | "Function used to decode addresses with encoded words.") |
| 1162 | 1162 | ||
| 1163 | (defcustom gnus-extra-headers '(To Cc Keywords Gcc Newsgroups) | 1163 | (defcustom gnus-extra-headers '(To Cc Keywords Gcc Newsgroups X-GM-LABELS) |
| 1164 | "*Extra headers to parse." | 1164 | "*Extra headers to parse." |
| 1165 | :version "24.1" ; added Cc Keywords Gcc | 1165 | :version "25.1" |
| 1166 | :group 'gnus-summary | 1166 | :group 'gnus-summary |
| 1167 | :type '(repeat symbol)) | 1167 | :type '(repeat symbol)) |
| 1168 | 1168 | ||
| @@ -5620,7 +5620,7 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 5620 | (mm-decode-coding-string group charset) | 5620 | (mm-decode-coding-string group charset) |
| 5621 | (mm-decode-coding-string (gnus-status-message group) charset)))) | 5621 | (mm-decode-coding-string (gnus-status-message group) charset)))) |
| 5622 | 5622 | ||
| 5623 | (unless (gnus-request-group group t) | 5623 | (unless (gnus-request-group group t nil (gnus-get-info group)) |
| 5624 | (when (derived-mode-p 'gnus-summary-mode) | 5624 | (when (derived-mode-p 'gnus-summary-mode) |
| 5625 | (gnus-kill-buffer (current-buffer))) | 5625 | (gnus-kill-buffer (current-buffer))) |
| 5626 | (error "Couldn't request group %s: %s" | 5626 | (error "Couldn't request group %s: %s" |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index eb05d714aba..94c8950988d 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -750,13 +750,16 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 750 | (setq script (substring script 0 (match-beginning 0)) | 750 | (setq script (substring script 0 (match-beginning 0)) |
| 751 | background 0)) | 751 | background 0)) |
| 752 | (setq result | 752 | (setq result |
| 753 | (call-process shell-file-name nil background nil | 753 | (call-process shell-file-name nil stderr nil |
| 754 | shell-command-switch script)) | 754 | shell-command-switch script)) |
| 755 | (when (and result | 755 | (if (and result |
| 756 | (not (zerop result))) | 756 | (not (zerop result))) |
| 757 | (set-buffer stderr) | 757 | (progn |
| 758 | (message "Mail source error: %s" (buffer-string))) | 758 | (split-window-vertically) |
| 759 | (kill-buffer stderr))) | 759 | (other-window 1) |
| 760 | (switch-to-buffer stderr) | ||
| 761 | (message "Mail source error: %s " (buffer-string))) | ||
| 762 | (kill-buffer stderr)))) | ||
| 760 | 763 | ||
| 761 | ;;; | 764 | ;;; |
| 762 | ;;; Different fetchers | 765 | ;;; Different fetchers |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index e619c0f13c2..e7f91b7cc33 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -820,39 +820,40 @@ textual parts.") | |||
| 820 | group)) | 820 | group)) |
| 821 | t)))) | 821 | t)))) |
| 822 | 822 | ||
| 823 | (deffoo nnimap-request-scan-group (group &optional server info) | 823 | (deffoo nnimap-request-group-scan (group &optional server info) |
| 824 | (setq group (nnimap-decode-gnus-group group)) | 824 | (setq group (nnimap-decode-gnus-group group)) |
| 825 | (let (marks high low) | 825 | (when (nnimap-change-group nil server) |
| 826 | (with-current-buffer (nnimap-buffer) | 826 | (let (marks high low) |
| 827 | (erase-buffer) | 827 | (with-current-buffer (nnimap-buffer) |
| 828 | (let ((group-sequence | 828 | (erase-buffer) |
| 829 | (nnimap-send-command "SELECT %S" (utf7-encode group t))) | 829 | (let ((group-sequence |
| 830 | (flag-sequence | 830 | (nnimap-send-command "SELECT %S" (utf7-encode group t))) |
| 831 | (nnimap-send-command "UID FETCH 1:* FLAGS"))) | 831 | (flag-sequence |
| 832 | (setf (nnimap-group nnimap-object) group) | 832 | (nnimap-send-command "UID FETCH 1:* FLAGS"))) |
| 833 | (nnimap-wait-for-response flag-sequence) | 833 | (setf (nnimap-group nnimap-object) group) |
| 834 | (setq marks | 834 | (nnimap-wait-for-response flag-sequence) |
| 835 | (nnimap-flags-to-marks | 835 | (setq marks |
| 836 | (nnimap-parse-flags | 836 | (nnimap-flags-to-marks |
| 837 | (list (list group-sequence flag-sequence | 837 | (nnimap-parse-flags |
| 838 | 1 group "SELECT"))))) | 838 | (list (list group-sequence flag-sequence |
| 839 | (when (and info | 839 | 1 group "SELECT"))))) |
| 840 | marks) | 840 | (when (and info |
| 841 | (nnimap-update-infos marks (list info)) | 841 | marks) |
| 842 | (nnimap-store-info info (gnus-active (gnus-info-group info)))) | 842 | (nnimap-update-infos marks (list info)) |
| 843 | (goto-char (point-max)) | 843 | (nnimap-store-info info (gnus-active (gnus-info-group info)))) |
| 844 | (let ((uidnext (nth 5 (car marks)))) | 844 | (goto-char (point-max)) |
| 845 | (setq high (or (if uidnext | 845 | (let ((uidnext (nth 5 (car marks)))) |
| 846 | (1- uidnext) | 846 | (setq high (or (if uidnext |
| 847 | (nth 3 (car marks))) | 847 | (1- uidnext) |
| 848 | 0) | 848 | (nth 3 (car marks))) |
| 849 | low (or (nth 4 (car marks)) uidnext 1))))) | 849 | 0) |
| 850 | (with-current-buffer nntp-server-buffer | 850 | low (or (nth 4 (car marks)) uidnext 1))))) |
| 851 | (erase-buffer) | 851 | (with-current-buffer nntp-server-buffer |
| 852 | (insert | 852 | (erase-buffer) |
| 853 | (format | 853 | (insert |
| 854 | "211 %d %d %d %S\n" (1+ (- high low)) low high group)) | 854 | (format |
| 855 | t))) | 855 | "211 %d %d %d %S\n" (1+ (- high low)) low high group)) |
| 856 | t)))) | ||
| 856 | 857 | ||
| 857 | (deffoo nnimap-request-create-group (group &optional server args) | 858 | (deffoo nnimap-request-create-group (group &optional server args) |
| 858 | (setq group (nnimap-decode-gnus-group group)) | 859 | (setq group (nnimap-decode-gnus-group group)) |