emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/gnus/sieve-manage.el,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/gnus/sieve-manage.el,v
Date: Thu, 24 Apr 2008 17:56:55 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        08/04/24 17:56:55

Index: sieve-manage.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/gnus/sieve-manage.el,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- sieve-manage.el     10 Apr 2008 14:10:06 -0000      1.16
+++ sieve-manage.el     24 Apr 2008 17:56:54 -0000      1.17
@@ -570,15 +570,14 @@
     (sieve-manage-send (format "HAVESPACE \"%s\" %s" name size))
     (sieve-manage-parse-okno)))
 
-(eval-and-compile
-  (if (fboundp 'string-bytes)
-      (defalias 'sieve-string-bytes 'string-bytes)
-    (defalias 'sieve-string-bytes 'length)))
-
 (defun sieve-manage-putscript (name content &optional buffer)
   (with-current-buffer (or buffer (current-buffer))
     (sieve-manage-send (format "PUTSCRIPT \"%s\" {%d+}%s%s" name
-                              (sieve-string-bytes content)
+                               ;; Here we assume that the coding-system will
+                               ;; replace each char with a single byte.
+                               ;; This is always the case if `content' is
+                               ;; a unibyte string.
+                              (length content)
                               sieve-manage-client-eol content))
     (sieve-manage-parse-okno)))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]