summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-remove-hook.el
diff options
context:
space:
mode:
authorKai Tetzlaff <emacs@tetzco.de>2022-02-28 11:08:07 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-09-06 13:33:48 +0200
commitae963e80a79f5a9184daabfc8197f211a39b136d (patch)
treebea2e9347427e3be97f663c6eadd2164aa7f5535 /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-remove-hook.el
parent46963d0bc9058caeb8241abe34b1552bd83e097d (diff)
downloademacs-ae963e80a79f5a9184daabfc8197f211a39b136d.tar.gz
emacs-ae963e80a79f5a9184daabfc8197f211a39b136d.tar.bz2
emacs-ae963e80a79f5a9184daabfc8197f211a39b136d.zip
Fix (mostly multibyte) issues in sieve-manage.el (Bug#54154)
The managesieve protocol (s. RFC5804) requires support for (a sightly restricted variant of) UTF-8 in script content and script names. This commit fixes/improves the handling of multibyte characters. In addition, `sieve-manage-getscript' now properly handles NO responses from the server instead of inflooping. There are also some logging improvements. * lisp/net/sieve-manage.el (sieve-manage--append-to-log): (sieve-manage--message): (sieve-manage--error): (sieve-manage-encode): (sieve-manage-decode): (sieve-manage-no-p): New functions. (sieve-manage-make-process-buffer): Switch process buffer to unibyte. (sieve-manage-open-server): Add `:coding 'raw-text-unix` to `open-network-stream' call. Use unix EOLs in order to keep matching CRLF (aka "\r\n") intact. (sieve-manage-send): Make sure that UTF-8 multibyte characters are properly encoded before sending data to the server. (sieve-manage-getscript): (sieve-manage-putscript): Use the changes above to fix down/uploading scripts containing UTF-8 multibyte characters. (sieve-manage-listscripts): (sieve-manage-havespace) (sieve-manage-getscript) (sieve-manage-putscript): (sieve-manage-deletescript): (sieve-manage-setactive): Use the changes above to fix handling of script names which contain UTF-8 multibyte characters. (sieve-manage-parse-string): (sieve-manage-getscript): Add handling of server responses with type NO. Abort `sieve-manage-getscript' and show error message in message area. (sieve-manage-erase): (sieve-manage-drop-next-answer): (sieve-manage-parse-crlf): Return erased/dropped data (instead of nil). (sieve-sasl-auth): (sieve-manage-getscript): (sieve-manage-erase): (sieve-manage-open-server): (sieve-manage-open): (sieve-manage-send): Improve logging.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-remove-hook.el')
0 files changed, 0 insertions, 0 deletions