diff options
| author | Miles Bader | 2004-10-17 14:29:01 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-10-17 14:29:01 +0000 |
| commit | 8903a9c8e8500ba635dd91f144d5038b9c0aca4f (patch) | |
| tree | 2b83df9d7fb4cf6a87c3ef1e1e537459e63772bf | |
| parent | 90665a8192762fe5a380a77f7bcb3eb6c5fdc593 (diff) | |
| download | emacs-8903a9c8e8500ba635dd91f144d5038b9c0aca4f.tar.gz emacs-8903a9c8e8500ba635dd91f144d5038b9c0aca4f.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-621
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-51
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-52
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-53
Merge from emacs--cvs-trunk--0
2004-10-15 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/pop3.el (pop3-leave-mail-on-server): Describe possible problems
in the doc string.
* lisp/gnus/message.el (message-ignored-news-headers)
(message-ignored-supersedes-headers)
(message-ignored-resent-headers)
(message-forward-ignored-headers): Improve custom type.
2004-10-15 Simon Josefsson <jas@extundo.com>
* lisp/gnus/pop3.el (top-level): Don't require nnheader.
(pop3-read-timeout): Add.
(pop3-accept-process-output): Add.
(pop3-read-response, pop3-retr): Use it.
2004-10-11 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/message.el (message-bury): Use `window-dedicated-p'.
2004-10-15 Reiner Steib <Reiner.Steib@gmx.de>
* man/gnus.texi (New Features): Add 5.11.
* man/message.texi (Resending): Remove wrong default value.
* man/gnus.texi (Mail Source Specifiers): Describe possible problems
of `pop3-leave-mail-on-server'. Add `pop3-movemail' and
`pop3-leave-mail-on-server' to the index.
2004-10-15 Katsumi Yamaoka <yamaoka@jpl.org>
* man/message.texi (Canceling News): Add how to set a password.
| -rw-r--r-- | lisp/gnus/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 27 | ||||
| -rw-r--r-- | lisp/gnus/pop3.el | 40 | ||||
| -rw-r--r-- | man/ChangeLog | 14 | ||||
| -rw-r--r-- | man/gnus.texi | 12 | ||||
| -rw-r--r-- | man/message.texi | 11 |
6 files changed, 111 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 15b23311787..70f43183e28 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -11,6 +11,23 @@ | |||
| 11 | * spam.el: Delete duplicate `provide'. | 11 | * spam.el: Delete duplicate `provide'. |
| 12 | (spam-unload-hook): Set as a variable with add-hook. | 12 | (spam-unload-hook): Set as a variable with add-hook. |
| 13 | 13 | ||
| 14 | 2004-10-15 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 15 | |||
| 16 | * pop3.el (pop3-leave-mail-on-server): Describe possible problems | ||
| 17 | in the doc string. | ||
| 18 | |||
| 19 | * message.el (message-ignored-news-headers) | ||
| 20 | (message-ignored-supersedes-headers) | ||
| 21 | (message-ignored-resent-headers) | ||
| 22 | (message-forward-ignored-headers): Improve custom type. | ||
| 23 | |||
| 24 | 2004-10-15 Simon Josefsson <jas@extundo.com> | ||
| 25 | |||
| 26 | * pop3.el (top-level): Don't require nnheader. | ||
| 27 | (pop3-read-timeout): Add. | ||
| 28 | (pop3-accept-process-output): Add. | ||
| 29 | (pop3-read-response, pop3-retr): Use it. | ||
| 30 | |||
| 14 | 2004-10-13 Katsumi Yamaoka <yamaoka@jpl.org> | 31 | 2004-10-13 Katsumi Yamaoka <yamaoka@jpl.org> |
| 15 | 32 | ||
| 16 | * message.el (message-tokenize-header): Fix 2004-09-06 change | 33 | * message.el (message-tokenize-header): Fix 2004-09-06 change |
| @@ -22,6 +39,10 @@ | |||
| 22 | (tls-certificate-information): New function, based on | 39 | (tls-certificate-information): New function, based on |
| 23 | ssl-certificate-information. | 40 | ssl-certificate-information. |
| 24 | 41 | ||
| 42 | 2004-10-11 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 43 | |||
| 44 | * message.el (message-bury): Use `window-dedicated-p'. | ||
| 45 | |||
| 25 | 2004-10-10 Reiner Steib <Reiner.Steib@gmx.de> | 46 | 2004-10-10 Reiner Steib <Reiner.Steib@gmx.de> |
| 26 | 47 | ||
| 27 | * gnus-sum.el: Mention that multibyte characters don't work as marks. | 48 | * gnus-sum.el: Mention that multibyte characters don't work as marks. |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index c9d05d1a0fe..9e61e007a3e 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -255,7 +255,12 @@ included. Organization and User-Agent are optional." | |||
| 255 | :group 'message-news | 255 | :group 'message-news |
| 256 | :group 'message-headers | 256 | :group 'message-headers |
| 257 | :link '(custom-manual "(message)Message Headers") | 257 | :link '(custom-manual "(message)Message Headers") |
| 258 | :type 'regexp) | 258 | :type '(repeat :value-to-internal (lambda (widget value) |
| 259 | (custom-split-regexp-maybe value)) | ||
| 260 | :match (lambda (widget value) | ||
| 261 | (or (stringp value) | ||
| 262 | (widget-editable-list-match widget value))) | ||
| 263 | regexp)) | ||
| 259 | 264 | ||
| 260 | (defcustom message-ignored-mail-headers | 265 | (defcustom message-ignored-mail-headers |
| 261 | "^[GF]cc:\\|^Resent-Fcc:\\|^Xref:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:" | 266 | "^[GF]cc:\\|^Resent-Fcc:\\|^Xref:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:" |
| @@ -271,7 +276,12 @@ It's best to delete old Path and Date headers before posting to avoid | |||
| 271 | any confusion." | 276 | any confusion." |
| 272 | :group 'message-interface | 277 | :group 'message-interface |
| 273 | :link '(custom-manual "(message)Superseding") | 278 | :link '(custom-manual "(message)Superseding") |
| 274 | :type 'regexp) | 279 | :type '(repeat :value-to-internal (lambda (widget value) |
| 280 | (custom-split-regexp-maybe value)) | ||
| 281 | :match (lambda (widget value) | ||
| 282 | (or (stringp value) | ||
| 283 | (widget-editable-list-match widget value))) | ||
| 284 | regexp)) | ||
| 275 | 285 | ||
| 276 | (defcustom message-subject-re-regexp | 286 | (defcustom message-subject-re-regexp |
| 277 | "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*" | 287 | "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*" |
| @@ -534,13 +544,22 @@ Done before generating the new subject of a forward." | |||
| 534 | "*All headers that match this regexp will be deleted when resending a message." | 544 | "*All headers that match this regexp will be deleted when resending a message." |
| 535 | :group 'message-interface | 545 | :group 'message-interface |
| 536 | :link '(custom-manual "(message)Resending") | 546 | :link '(custom-manual "(message)Resending") |
| 537 | :type 'regexp) | 547 | :type '(repeat :value-to-internal (lambda (widget value) |
| 548 | (custom-split-regexp-maybe value)) | ||
| 549 | :match (lambda (widget value) | ||
| 550 | (or (stringp value) | ||
| 551 | (widget-editable-list-match widget value))) | ||
| 552 | regexp)) | ||
| 538 | 553 | ||
| 539 | (defcustom message-forward-ignored-headers "^Content-Transfer-Encoding:\\|^X-Gnus" | 554 | (defcustom message-forward-ignored-headers "^Content-Transfer-Encoding:\\|^X-Gnus" |
| 540 | "*All headers that match this regexp will be deleted when forwarding a message." | 555 | "*All headers that match this regexp will be deleted when forwarding a message." |
| 541 | :version "21.1" | 556 | :version "21.1" |
| 542 | :group 'message-forwarding | 557 | :group 'message-forwarding |
| 543 | :type '(choice (const :tag "None" nil) | 558 | :type '(repeat :value-to-internal (lambda (widget value) |
| 559 | (custom-split-regexp-maybe value)) | ||
| 560 | :match (lambda (widget value) | ||
| 561 | (or (stringp value) | ||
| 562 | (widget-editable-list-match widget value))) | ||
| 544 | regexp)) | 563 | regexp)) |
| 545 | 564 | ||
| 546 | (defcustom message-ignored-cited-headers "." | 565 | (defcustom message-ignored-cited-headers "." |
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index e288f6cace2..db8753057d6 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el | |||
| @@ -83,7 +83,14 @@ values are 'apop." | |||
| 83 | :group 'pop3) | 83 | :group 'pop3) |
| 84 | 84 | ||
| 85 | (defcustom pop3-leave-mail-on-server nil | 85 | (defcustom pop3-leave-mail-on-server nil |
| 86 | "*Non-nil if the mail is to be left on the POP server after fetching." | 86 | "*Non-nil if the mail is to be left on the POP server after fetching. |
| 87 | |||
| 88 | If the `pop3-leave-mail-on-server' is non-`nil' the mail is to be | ||
| 89 | left on the POP server after fetching. Note that POP servers | ||
| 90 | maintain no state information between sessions, so what the | ||
| 91 | client believes is there and what is actually there may not match | ||
| 92 | up. If they do not, then the whole thing can fall apart and | ||
| 93 | leave you with a corrupt mailbox." | ||
| 87 | :version "21.4" ;; Oort Gnus | 94 | :version "21.4" ;; Oort Gnus |
| 88 | :type 'boolean | 95 | :type 'boolean |
| 89 | :group 'pop3) | 96 | :group 'pop3) |
| @@ -95,6 +102,32 @@ Used for APOP authentication.") | |||
| 95 | (defvar pop3-read-point nil) | 102 | (defvar pop3-read-point nil) |
| 96 | (defvar pop3-debug nil) | 103 | (defvar pop3-debug nil) |
| 97 | 104 | ||
| 105 | ;; Borrowed from nnheader-accept-process-output in nnheader.el. | ||
| 106 | (defvar pop3-read-timeout | ||
| 107 | (if (string-match "windows-nt\\|os/2\\|emx\\|cygwin" | ||
| 108 | (symbol-name system-type)) | ||
| 109 | ;; http://thread.gmane.org/v9655t3pjo.fsf@marauder.physik.uni-ulm.de | ||
| 110 | ;; | ||
| 111 | ;; IIRC, values lower than 1.0 didn't/don't work on Windows/DOS. | ||
| 112 | ;; | ||
| 113 | ;; There should probably be a runtime test to determine the timing | ||
| 114 | ;; resolution, or a primitive to report it. I don't know off-hand | ||
| 115 | ;; what's possible. Perhaps better, maybe the Windows/DOS primitive | ||
| 116 | ;; could round up non-zero timeouts to a minimum of 1.0? | ||
| 117 | 1.0 | ||
| 118 | 0.1) | ||
| 119 | "How long pop3 should wait between checking for the end of output. | ||
| 120 | Shorter values mean quicker response, but are more CPU intensive.") | ||
| 121 | |||
| 122 | ;; Borrowed from nnheader-accept-process-output in nnheader.el. | ||
| 123 | (defun pop3-accept-process-output (process) | ||
| 124 | (accept-process-output | ||
| 125 | process | ||
| 126 | (truncate pop3-read-timeout) | ||
| 127 | (truncate (* (- pop3-read-timeout | ||
| 128 | (truncate pop3-read-timeout)) | ||
| 129 | 1000)))) | ||
| 130 | |||
| 98 | (defun pop3-movemail (&optional crashbox) | 131 | (defun pop3-movemail (&optional crashbox) |
| 99 | "Transfer contents of a maildrop to the specified CRASHBOX." | 132 | "Transfer contents of a maildrop to the specified CRASHBOX." |
| 100 | (or crashbox (setq crashbox (expand-file-name "~/.crashbox"))) | 133 | (or crashbox (setq crashbox (expand-file-name "~/.crashbox"))) |
| @@ -207,7 +240,7 @@ Return the response string if optional second argument is non-nil." | |||
| 207 | (goto-char pop3-read-point) | 240 | (goto-char pop3-read-point) |
| 208 | (while (and (memq (process-status process) '(open run)) | 241 | (while (and (memq (process-status process) '(open run)) |
| 209 | (not (search-forward "\r\n" nil t))) | 242 | (not (search-forward "\r\n" nil t))) |
| 210 | (nnheader-accept-process-output process) | 243 | (pop3-accept-process-output process) |
| 211 | (goto-char pop3-read-point)) | 244 | (goto-char pop3-read-point)) |
| 212 | (setq match-end (point)) | 245 | (setq match-end (point)) |
| 213 | (goto-char pop3-read-point) | 246 | (goto-char pop3-read-point) |
| @@ -381,8 +414,7 @@ This function currently does nothing.") | |||
| 381 | (save-excursion | 414 | (save-excursion |
| 382 | (set-buffer (process-buffer process)) | 415 | (set-buffer (process-buffer process)) |
| 383 | (while (not (re-search-forward "^\\.\r\n" nil t)) | 416 | (while (not (re-search-forward "^\\.\r\n" nil t)) |
| 384 | ;; Fixme: Shouldn't depend on nnheader. | 417 | (pop3-accept-process-output process) |
| 385 | (nnheader-accept-process-output process) | ||
| 386 | (goto-char start)) | 418 | (goto-char start)) |
| 387 | (setq pop3-read-point (point-marker)) | 419 | (setq pop3-read-point (point-marker)) |
| 388 | ;; this code does not seem to work for some POP servers... | 420 | ;; this code does not seem to work for some POP servers... |
diff --git a/man/ChangeLog b/man/ChangeLog index 8aec01712ef..784dd505f9a 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2004-10-15 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * gnus.texi (New Features): Add 5.11. | ||
| 4 | |||
| 5 | * message.texi (Resending): Remove wrong default value. | ||
| 6 | |||
| 7 | * gnus.texi (Mail Source Specifiers): Describe possible problems | ||
| 8 | of `pop3-leave-mail-on-server'. Add `pop3-movemail' and | ||
| 9 | `pop3-leave-mail-on-server' to the index. | ||
| 10 | |||
| 11 | 2004-10-15 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 12 | |||
| 13 | * message.texi (Canceling News): Add how to set a password. | ||
| 14 | |||
| 1 | 2004-10-12 Reiner Steib <Reiner.Steib@gmx.de> | 15 | 2004-10-12 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 16 | ||
| 3 | * gnus-faq.texi ([5.9]): Improve code for reply-in-news. | 17 | * gnus-faq.texi ([5.9]): Improve code for reply-in-news. |
diff --git a/man/gnus.texi b/man/gnus.texi index a62e9bcf149..ca9045bf5b9 100644 --- a/man/gnus.texi +++ b/man/gnus.texi | |||
| @@ -885,7 +885,7 @@ New Features | |||
| 885 | * Red Gnus:: Third time best---Gnus 5.4/5.5. | 885 | * Red Gnus:: Third time best---Gnus 5.4/5.5. |
| 886 | * Quassia Gnus:: Two times two is four, or Gnus 5.6/5.7. | 886 | * Quassia Gnus:: Two times two is four, or Gnus 5.6/5.7. |
| 887 | * Pterodactyl Gnus:: Pentad also starts with P, AKA Gnus 5.8/5.9. | 887 | * Pterodactyl Gnus:: Pentad also starts with P, AKA Gnus 5.8/5.9. |
| 888 | * Oort Gnus:: It's big. It's far out. Gnus 5.10. | 888 | * Oort Gnus:: It's big. It's far out. Gnus 5.10/5.11. |
| 889 | 889 | ||
| 890 | Customization | 890 | Customization |
| 891 | 891 | ||
| @@ -13538,10 +13538,16 @@ and says what authentication scheme to use. The default is | |||
| 13538 | 13538 | ||
| 13539 | @end table | 13539 | @end table |
| 13540 | 13540 | ||
| 13541 | @vindex pop3-movemail | ||
| 13542 | @vindex pop3-leave-mail-on-server | ||
| 13541 | If the @code{:program} and @code{:function} keywords aren't specified, | 13543 | If the @code{:program} and @code{:function} keywords aren't specified, |
| 13542 | @code{pop3-movemail} will be used. If the | 13544 | @code{pop3-movemail} will be used. If the |
| 13543 | @code{pop3-leave-mail-on-server} is non-@code{nil} the mail is to be | 13545 | @code{pop3-leave-mail-on-server} is non-@code{nil} the mail is to be |
| 13544 | left on the POP server after fetching. | 13546 | left on the @acronym{POP} server after fetching when using |
| 13547 | @code{pop3-movemail}. Note that POP servers maintain no state | ||
| 13548 | information between sessions, so what the client believes is there and | ||
| 13549 | what is actually there may not match up. If they do not, then the whole | ||
| 13550 | thing can fall apart and leave you with a corrupt mailbox. | ||
| 13545 | 13551 | ||
| 13546 | Here are some examples. Fetch from the default @acronym{POP} server, | 13552 | Here are some examples. Fetch from the default @acronym{POP} server, |
| 13547 | using the default user name, and default fetcher: | 13553 | using the default user name, and default fetcher: |
| @@ -25050,7 +25056,7 @@ actually are people who are using Gnus. Who'd'a thunk it! | |||
| 25050 | * Red Gnus:: Third time best---Gnus 5.4/5.5. | 25056 | * Red Gnus:: Third time best---Gnus 5.4/5.5. |
| 25051 | * Quassia Gnus:: Two times two is four, or Gnus 5.6/5.7. | 25057 | * Quassia Gnus:: Two times two is four, or Gnus 5.6/5.7. |
| 25052 | * Pterodactyl Gnus:: Pentad also starts with P, AKA Gnus 5.8/5.9. | 25058 | * Pterodactyl Gnus:: Pentad also starts with P, AKA Gnus 5.8/5.9. |
| 25053 | * Oort Gnus:: It's big. It's far out. Gnus 5.10. | 25059 | * Oort Gnus:: It's big. It's far out. Gnus 5.10/5.11. |
| 25054 | @end menu | 25060 | @end menu |
| 25055 | 25061 | ||
| 25056 | These lists are, of course, just @emph{short} overviews of the | 25062 | These lists are, of course, just @emph{short} overviews of the |
diff --git a/man/message.texi b/man/message.texi index 6a52698ddb5..25f1d12d33b 100644 --- a/man/message.texi +++ b/man/message.texi | |||
| @@ -224,7 +224,13 @@ only you can cancel your own messages, which is nice. The downside | |||
| 224 | is that if you lose your @file{.emacs} file (which is where Gnus | 224 | is that if you lose your @file{.emacs} file (which is where Gnus |
| 225 | stores the secret cancel lock password (which is generated | 225 | stores the secret cancel lock password (which is generated |
| 226 | automatically the first time you use this feature)), you won't be | 226 | automatically the first time you use this feature)), you won't be |
| 227 | able to cancel your message. | 227 | able to cancel your message. If you yourself want to manage a password, |
| 228 | you can put something like the following in your @file{~/.gnus.el} file: | ||
| 229 | |||
| 230 | @lisp | ||
| 231 | (setq canlock-password "Salam Shalom" | ||
| 232 | canlock-password-for-verify canlock-password) | ||
| 233 | @end lisp | ||
| 228 | 234 | ||
| 229 | Whether to insert the header or not is controlled by the | 235 | Whether to insert the header or not is controlled by the |
| 230 | @code{message-insert-canlock} variable. | 236 | @code{message-insert-canlock} variable. |
| @@ -309,8 +315,7 @@ and resend the message in the current buffer to that address. | |||
| 309 | 315 | ||
| 310 | @vindex message-ignored-resent-headers | 316 | @vindex message-ignored-resent-headers |
| 311 | Headers that match the @code{message-ignored-resent-headers} regexp will | 317 | Headers that match the @code{message-ignored-resent-headers} regexp will |
| 312 | be removed before sending the message. The default is | 318 | be removed before sending the message. |
| 313 | @samp{^Return-receipt}. | ||
| 314 | 319 | ||
| 315 | 320 | ||
| 316 | @node Bouncing | 321 | @node Bouncing |