diff options
| author | Stefan Monnier | 2013-06-13 13:05:22 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-06-13 13:05:22 -0400 |
| commit | 9df2f513ea55d8abd75c379e1c531e5b573965ca (patch) | |
| tree | 485694a582667691e23870cc392110e7095336ac | |
| parent | 11169e6f1a9104182176c67623f7f9579aa96997 (diff) | |
| download | emacs-9df2f513ea55d8abd75c379e1c531e5b573965ca.tar.gz emacs-9df2f513ea55d8abd75c379e1c531e5b573965ca.zip | |
* lisp/gnus/sieve-manage.el (sieve-manage-open-server): Don't quote lambda.
Use plist-get rather than CL's getf.
(sieve-manage-parse-capability): Avoid CL's remove-if.
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/sieve-manage.el | 16 |
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 83831264f58..1b17819fa7e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * sieve-manage.el (sieve-manage-open-server): Don't quote lambda. | ||
| 4 | Use plist-get rather than CL's getf. | ||
| 5 | (sieve-manage-parse-capability): Avoid CL's remove-if. | ||
| 6 | |||
| 1 | 2013-06-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2013-06-13 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * shr.el (shr-expand-url): Expansion should chop off the bits after the | 9 | * shr.el (shr-expand-url): Expansion should chop off the bits after the |
| @@ -29,7 +35,7 @@ | |||
| 29 | 35 | ||
| 30 | 2013-06-10 Albert Krewinkel <krewinkel@moltkeplatz.de> | 36 | 2013-06-10 Albert Krewinkel <krewinkel@moltkeplatz.de> |
| 31 | 37 | ||
| 32 | * sieve-manage.el (sieve-manage-open): work with STARTTLS: shorten | 38 | * sieve-manage.el (sieve-manage-open): Work with STARTTLS: shorten |
| 33 | stream managing functions by using open-protocol-stream to do most of | 39 | stream managing functions by using open-protocol-stream to do most of |
| 34 | the work. Has the nice benefit of enabling STARTTLS. | 40 | the work. Has the nice benefit of enabling STARTTLS. |
| 35 | Wait for capabilities after STARTTLS: following RFC5804, the server | 41 | Wait for capabilities after STARTTLS: following RFC5804, the server |
diff --git a/lisp/gnus/sieve-manage.el b/lisp/gnus/sieve-manage.el index 23ab24152d9..6588f717bcb 100644 --- a/lisp/gnus/sieve-manage.el +++ b/lisp/gnus/sieve-manage.el | |||
| @@ -206,15 +206,15 @@ Return the buffer associated with the connection." | |||
| 206 | :success "^OK.*\n" | 206 | :success "^OK.*\n" |
| 207 | :return-list t | 207 | :return-list t |
| 208 | :starttls-function | 208 | :starttls-function |
| 209 | '(lambda (capabilities) | 209 | (lambda (capabilities) |
| 210 | (when (string-match "\\bSTARTTLS\\b" capabilities) | 210 | (when (string-match "\\bSTARTTLS\\b" capabilities) |
| 211 | "STARTTLS\r\n"))) | 211 | "STARTTLS\r\n"))) |
| 212 | (setq sieve-manage-process proc) | 212 | (setq sieve-manage-process proc) |
| 213 | (setq sieve-manage-capability | 213 | (setq sieve-manage-capability |
| 214 | (sieve-manage-parse-capability (getf props :capabilities))) | 214 | (sieve-manage-parse-capability (plist-get props :capabilities))) |
| 215 | ;; Ignore new capabilities issues after successful STARTTLS | 215 | ;; Ignore new capabilities issues after successful STARTTLS |
| 216 | (when (and (memq stream '(nil network starttls)) | 216 | (when (and (memq stream '(nil network starttls)) |
| 217 | (eq (getf props :type) 'tls)) | 217 | (eq (plist-get props :type) 'tls)) |
| 218 | (sieve-manage-drop-next-answer)) | 218 | (sieve-manage-drop-next-answer)) |
| 219 | (current-buffer)))) | 219 | (current-buffer)))) |
| 220 | 220 | ||
| @@ -502,9 +502,9 @@ If NAME is nil, return the full server list of capabilities." | |||
| 502 | (defun sieve-manage-parse-capability (str) | 502 | (defun sieve-manage-parse-capability (str) |
| 503 | "Parse managesieve capability string `STR'. | 503 | "Parse managesieve capability string `STR'. |
| 504 | Set variable `sieve-manage-capability' to " | 504 | Set variable `sieve-manage-capability' to " |
| 505 | (let ((capas (remove-if #'null | 505 | (let ((capas (delq nil |
| 506 | (mapcar #'split-string-and-unquote | 506 | (mapcar #'split-string-and-unquote |
| 507 | (split-string str "\n"))))) | 507 | (split-string str "\n"))))) |
| 508 | (when (string= "OK" (caar (last capas))) | 508 | (when (string= "OK" (caar (last capas))) |
| 509 | (setq sieve-manage-state 'nonauth)) | 509 | (setq sieve-manage-state 'nonauth)) |
| 510 | capas)) | 510 | capas)) |