diff options
| author | Sam Steingold | 2003-06-11 21:44:12 +0000 |
|---|---|---|
| committer | Sam Steingold | 2003-06-11 21:44:12 +0000 |
| commit | 3e7b210cdd35ca4049f791ffce6b727f6fe4bbd7 (patch) | |
| tree | c561242a388295f5610a7f83f21b294489934f2b | |
| parent | b23c0a83dce8ac43d8005a4eb7c09e5675e7c864 (diff) | |
| download | emacs-3e7b210cdd35ca4049f791ffce6b727f6fe4bbd7.tar.gz emacs-3e7b210cdd35ca4049f791ffce6b727f6fe4bbd7.zip | |
(pop3-leave-mail-on-server): New user variable.
(pop3-movemail): Delete mail only when it is nil.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/pop3.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 59fa1ac2993..d60cd62a9b8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-06-11 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * pop3.el (pop3-leave-mail-on-server): New user variable. | ||
| 4 | (pop3-movemail): Delete mail only when it is nil. | ||
| 5 | |||
| 1 | 2003-05-10 Juanma Barranquero <lektu@terra.es> | 6 | 2003-05-10 Juanma Barranquero <lektu@terra.es> |
| 2 | 7 | ||
| 3 | * message.el (message-buffer-naming-style): Fix typo. | 8 | * message.el (message-buffer-naming-style): Fix typo. |
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index 192c8f332dd..479aa519976 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el | |||
| @@ -54,6 +54,9 @@ | |||
| 54 | Defaults to 'pass, for the standard USER/PASS authentication. Other valid | 54 | Defaults to 'pass, for the standard USER/PASS authentication. Other valid |
| 55 | values are 'apop.") | 55 | values are 'apop.") |
| 56 | 56 | ||
| 57 | (defvar pop3-leave-mail-on-server nil | ||
| 58 | "*Non-nil if the mail is to be left on the POP server after fetching.") | ||
| 59 | |||
| 57 | (defvar pop3-timestamp nil | 60 | (defvar pop3-timestamp nil |
| 58 | "Timestamp returned when initially connected to the POP server. | 61 | "Timestamp returned when initially connected to the POP server. |
| 59 | Used for APOP authentication.") | 62 | Used for APOP authentication.") |
| @@ -97,7 +100,8 @@ Used for APOP authentication.") | |||
| 97 | (goto-char (point-min)) | 100 | (goto-char (point-min)) |
| 98 | (forward-line 50) | 101 | (forward-line 50) |
| 99 | (delete-region (point-min) (point)))) | 102 | (delete-region (point-min) (point)))) |
| 100 | (pop3-dele process n) | 103 | (unless pop3-leave-mail-on-server |
| 104 | (pop3-dele process n)) | ||
| 101 | (setq n (+ 1 n)) | 105 | (setq n (+ 1 n)) |
| 102 | (if pop3-debug (sit-for 1) (sit-for 0.1)) | 106 | (if pop3-debug (sit-for 1) (sit-for 0.1)) |
| 103 | ) | 107 | ) |