diff options
| author | Katsumi Yamaoka | 2010-09-18 10:21:30 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-18 10:21:30 +0000 |
| commit | 88ed5ce8a653a870fd4f723ee550ffbb0f90626b (patch) | |
| tree | d031340a171facc1e997b3e358510ae7e0ab6e02 | |
| parent | 20a673b2d0ed2b2f75ab5d7d6e4930fdea0e1a5f (diff) | |
| download | emacs-88ed5ce8a653a870fd4f723ee550ffbb0f90626b.tar.gz emacs-88ed5ce8a653a870fd4f723ee550ffbb0f90626b.zip | |
Fix previous merge from Gnus trunk.
| -rw-r--r-- | lisp/gnus/ChangeLog | 100 | ||||
| -rw-r--r-- | lisp/gnus/pop3.el | 21 |
2 files changed, 108 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1e6b9f23295..ee623eba37f 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,103 @@ | |||
| 1 | 2010-09-18 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-select-newsgroup): Indent. | ||
| 4 | |||
| 5 | * nnimap.el (nnimap-possibly-change-group): Return nil if we can't log | ||
| 6 | in. | ||
| 7 | (nnimap-finish-retrieve-group-infos): Make sure we're not waiting for | ||
| 8 | nothing. | ||
| 9 | |||
| 10 | * gnus-start.el (gnus-get-unread-articles): Don't try to scan groups | ||
| 11 | from methods that are denied. | ||
| 12 | |||
| 13 | * gnus-int.el (gnus-method-denied-p): New function. | ||
| 14 | |||
| 15 | * nnimap.el (nnimap-open-connection): Use auth-sources to query and | ||
| 16 | store the password instead of netrc. | ||
| 17 | (nnimap-open-connection): Don't error out when we can't make a | ||
| 18 | connections. | ||
| 19 | |||
| 20 | * auth-source.el (auth-source-create): In the password prompt, say what | ||
| 21 | we're querying for. Also prompt for user name if that hasn't been | ||
| 22 | given. | ||
| 23 | |||
| 24 | * nnimap.el (nnimap-with-process-buffer): Removed. | ||
| 25 | |||
| 26 | 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 27 | |||
| 28 | * gnus-start.el (gnus-read-active-for-groups): Don't use the "finish" | ||
| 29 | method when we're reading from the agent. | ||
| 30 | |||
| 31 | * nnagent.el (nnagent-retrieve-group-data-early): New dummy method. | ||
| 32 | |||
| 33 | * auth-source.el (auth-sources): Add ~/.authinfo to the default, since | ||
| 34 | that's probably most useful for users. | ||
| 35 | |||
| 36 | * gnus-int.el (gnus-check-server): Save result so that it doesn't say | ||
| 37 | "failed" all the time. | ||
| 38 | |||
| 39 | * gnus.el: Throughout all files, replace (save-excursion (set-buffer | ||
| 40 | ...)) with (with-current-buffer ... ). | ||
| 41 | |||
| 42 | * nntp.el (nntp-open-server): Return whether the open was successful or | ||
| 43 | not. | ||
| 44 | |||
| 45 | * gnus-sum.el (gnus-summary-first-subject): Have `unseen-or-unread' | ||
| 46 | select an unread unseen article first. | ||
| 47 | |||
| 48 | * nnimap.el (nnimap-open-connection): If the user doesn't have a | ||
| 49 | /etc/services, supply some sensible port defaults. | ||
| 50 | |||
| 51 | * dgnushack.el: Define netrc-credentials. | ||
| 52 | |||
| 53 | 2010-09-17 Julien Danjou <julien@danjou.info> (tiny fix) | ||
| 54 | |||
| 55 | * mm-decode.el (mm-text-html-renderer): Document gnus-article-html. | ||
| 56 | |||
| 57 | 2010-09-17 Knut Anders Hatlen <kahatlen@gmail.com> (tiny change) | ||
| 58 | |||
| 59 | * nnimap.el (nnimap-get-groups): Don't bug out if the LIST command | ||
| 60 | doesn't have any parameters. | ||
| 61 | |||
| 62 | 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 63 | |||
| 64 | * nnimap.el (nnimap-open-connection): Upcase all capabilities, and use | ||
| 65 | only upcased checks. | ||
| 66 | |||
| 67 | * nnmail.el (nnmail-article-group): Fix typo in "bogus" section. | ||
| 68 | |||
| 69 | * nnimap.el (nnimap-open-shell-stream): New function. | ||
| 70 | (nnimap-open-connection): Use it. | ||
| 71 | (nnimap-transform-headers): Get the number of lines in each message. | ||
| 72 | (nnimap-retrieve-headers): Query for BODYSTRUCTURE so that we get the | ||
| 73 | number of lines. | ||
| 74 | (nnimap-request-list): Not all servers return UIDNEXT. Work past this | ||
| 75 | problem. | ||
| 76 | |||
| 77 | * utf7.el (utf7-encode): Autoload. | ||
| 78 | |||
| 79 | * nnmail.el (nnmail-inhibit-default-split-group): New internal variable | ||
| 80 | to allow the mail splitting to not return a default group. This is | ||
| 81 | useful for nnimap, which will leave unmatched mail in the inbox. | ||
| 82 | |||
| 83 | * nnimap.el: Rewritten. | ||
| 84 | |||
| 85 | * gnus.el (gnus-article-special-mark-lists): Add uid/active tuples, for | ||
| 86 | nnimap usage. | ||
| 87 | |||
| 88 | * gnus-sum.el (gnus-summary-move-article): Pass the move-to group name | ||
| 89 | if the move is internal, so that nnimap can do fast internal moves. | ||
| 90 | |||
| 91 | * gnus-start.el (gnus-get-unread-articles): Support early retrieval of | ||
| 92 | data. | ||
| 93 | (gnus-read-active-for-groups): Support finishing the early retrieval of | ||
| 94 | data. | ||
| 95 | |||
| 96 | * gnus-range.el (gnus-range-nconcat): New function. | ||
| 97 | |||
| 98 | * gnus-int.el (gnus-finish-retrieve-group-infos) | ||
| 99 | (gnus-retrieve-group-data-early): New functions. | ||
| 100 | |||
| 1 | 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca> | 101 | 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 102 | ||
| 3 | * nnrss.el (nnrss-retrieve-headers, nnrss-request-list-newsgroups) | 103 | * nnrss.el (nnrss-retrieve-headers, nnrss-request-list-newsgroups) |
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index 63ed8004a9f..950cae25c4e 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el | |||
| @@ -279,9 +279,9 @@ Returns the process associated with the connection." | |||
| 279 | (let ((coding-system-for-read 'binary) | 279 | (let ((coding-system-for-read 'binary) |
| 280 | (coding-system-for-write 'binary) | 280 | (coding-system-for-write 'binary) |
| 281 | process) | 281 | process) |
| 282 | (save-excursion | 282 | (with-current-buffer |
| 283 | (set-buffer (get-buffer-create (concat " trace of POP session to " | 283 | (get-buffer-create (concat " trace of POP session to " |
| 284 | mailhost))) | 284 | mailhost)) |
| 285 | (erase-buffer) | 285 | (erase-buffer) |
| 286 | (setq pop3-read-point (point-min)) | 286 | (setq pop3-read-point (point-min)) |
| 287 | (setq process | 287 | (setq process |
| @@ -353,8 +353,7 @@ Returns the process associated with the connection." | |||
| 353 | Return the response string if optional second argument is non-nil." | 353 | Return the response string if optional second argument is non-nil." |
| 354 | (let ((case-fold-search nil) | 354 | (let ((case-fold-search nil) |
| 355 | match-end) | 355 | match-end) |
| 356 | (save-excursion | 356 | (with-current-buffer (process-buffer process) |
| 357 | (set-buffer (process-buffer process)) | ||
| 358 | (goto-char pop3-read-point) | 357 | (goto-char pop3-read-point) |
| 359 | (while (and (memq (process-status process) '(open run)) | 358 | (while (and (memq (process-status process) '(open run)) |
| 360 | (not (search-forward "\r\n" nil t))) | 359 | (not (search-forward "\r\n" nil t))) |
| @@ -511,8 +510,7 @@ Otherwise, return the size of the message-id MSG" | |||
| 511 | (if msg | 510 | (if msg |
| 512 | (string-to-number (nth 2 (split-string response " "))) | 511 | (string-to-number (nth 2 (split-string response " "))) |
| 513 | (let ((start pop3-read-point) end) | 512 | (let ((start pop3-read-point) end) |
| 514 | (save-excursion | 513 | (with-current-buffer (process-buffer process) |
| 515 | (set-buffer (process-buffer process)) | ||
| 516 | (while (not (re-search-forward "^\\.\r\n" nil t)) | 514 | (while (not (re-search-forward "^\\.\r\n" nil t)) |
| 517 | (pop3-accept-process-output process) | 515 | (pop3-accept-process-output process) |
| 518 | (goto-char start)) | 516 | (goto-char start)) |
| @@ -530,8 +528,7 @@ Otherwise, return the size of the message-id MSG" | |||
| 530 | (pop3-send-command process (format "RETR %s" msg)) | 528 | (pop3-send-command process (format "RETR %s" msg)) |
| 531 | (pop3-read-response process) | 529 | (pop3-read-response process) |
| 532 | (let ((start pop3-read-point) end) | 530 | (let ((start pop3-read-point) end) |
| 533 | (save-excursion | 531 | (with-current-buffer (process-buffer process) |
| 534 | (set-buffer (process-buffer process)) | ||
| 535 | (while (not (re-search-forward "^\\.\r\n" nil t)) | 532 | (while (not (re-search-forward "^\\.\r\n" nil t)) |
| 536 | (pop3-accept-process-output process) | 533 | (pop3-accept-process-output process) |
| 537 | (goto-char start)) | 534 | (goto-char start)) |
| @@ -547,8 +544,7 @@ Otherwise, return the size of the message-id MSG" | |||
| 547 | (setq end (point-marker)) | 544 | (setq end (point-marker)) |
| 548 | (pop3-clean-region start end) | 545 | (pop3-clean-region start end) |
| 549 | (pop3-munge-message-separator start end) | 546 | (pop3-munge-message-separator start end) |
| 550 | (save-excursion | 547 | (with-current-buffer crashbuf |
| 551 | (set-buffer crashbuf) | ||
| 552 | (erase-buffer)) | 548 | (erase-buffer)) |
| 553 | (copy-to-buffer crashbuf start end) | 549 | (copy-to-buffer crashbuf start end) |
| 554 | (delete-region start end) | 550 | (delete-region start end) |
| @@ -585,8 +581,7 @@ and close the connection." | |||
| 585 | (pop3-send-command process "QUIT") | 581 | (pop3-send-command process "QUIT") |
| 586 | (pop3-read-response process t) | 582 | (pop3-read-response process t) |
| 587 | (if process | 583 | (if process |
| 588 | (save-excursion | 584 | (with-current-buffer (process-buffer process) |
| 589 | (set-buffer (process-buffer process)) | ||
| 590 | (goto-char (point-max)) | 585 | (goto-char (point-max)) |
| 591 | (delete-process process)))) | 586 | (delete-process process)))) |
| 592 | 587 | ||