* nnimap.el (nnimap-split-fancy): Ditto.
[gnus] / lisp / gnus-sieve.el
index 36c99d0..d4e557c 100644 (file)
@@ -1,5 +1,5 @@
 ;;; gnus-sieve.el --- Utilities to manage sieve scripts for Gnus
-;; Copyright (C) 2001 Free Software Foundation, Inc.
+;; Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
 ;; Author: NAGY Andras <nagya@inf.elte.hu>,
 ;;     Simon Josefsson <simon@josefsson.org>
@@ -118,7 +118,7 @@ See the documentation for these variables and functions for details."
   "Guess a sieve rule based on RFC822 article in buffer.
 Return nil if no rule could be guessed."
   (when (message-fetch-field "sender")
-    `(sieve address "sender" ,(regexp-quote (message-fetch-field "sender")))))
+    `(sieve address "sender" ,(message-fetch-field "sender"))))
 
 ;;;###autoload
 (defun gnus-sieve-article-add-rule ()
@@ -219,14 +219,14 @@ This is returned as a string."
   (let* ((newsrc (cdr gnus-newsrc-alist))
         script)
     (dolist (info newsrc)
-      (when (or (not method) 
+      (when (or (not method)
                (gnus-server-equal method (gnus-info-method info)))
        (let* ((group (gnus-info-group info))
               (spec (gnus-group-find-parameter group 'sieve t)))
          (when spec
            (push (concat "if " (gnus-sieve-test spec) " {\n"
                          "\tfileinto \"" (gnus-group-real-name group) "\";\n"
-                         (if gnus-sieve-crosspost
+                         (if crosspost
                              ""
                            "\tstop;\n")
                          "}")