[Top][All Lists]

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

Re: Escaping carets?

From: Jesper Harder
Subject: Re: Escaping carets?
Date: Thu, 02 Oct 2003 01:51:28 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) (Björn Lindström) writes:

> That was just a part of the whole thing. The whole should look like
> this:
> (setq gnus-message-archive-group '((if (equal group "")
>                                        (if (message-news-p)
>                                            "outgoing"
>                                          "misc")
>                                      (if (string-match "nnfolder:" group)
>                                          group
>                                        "outgoing")
>                                      "outgoing")))

But this will never return the group name -- unless `group' is the
empty string it will always return "outgoing",

(let ((group ""))
  (if (equal group "")
      (if (message-news-p)
    (if (string-match "nnfolder:" group)

=> "outgoing"

You need to remove the last "outgoing".

reply via email to

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