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

Re: wl-dispose-folder-alist regexes



Hi Richard,

At Tue, 28 Sep 2010 16:19:23 +0100,
Richard Lewis wrote:
> 
> Hi there,
>
> […]
>
> So far I have:
> 
> (setq wl-dispose-folder-alist
>       '(("^%system\\|junk\\|spam" . remove)

This will work but will match string contains “junk” or “spam”; if you
just want to match strings that start with %junk or %spam or %system
use:

  "^%\\(system\\|junk\\|spam\\)"

> which I guess might work.
> 
> But now I need a way of selecting all-other-folders. A negative
> lookahead assertion might work but they require fixed-length patterns,
> and also aren't available in Emacs regexes (afaik).
> 
> Can anyone think of such a regex? Or of another way of getting all the
> other folders to dispose into "%junk"?

wl-dispose-folder-alist is tested in order, so:

(setq wl-dispose-folder-alist
  '(("^%\\(system\\|junk\\|spam\\)" . remove)
    ("^%" . "%junk")))

should do the trick.

best, Erik

Attachment: pgpeu0ekks7QP.pgp
Description: PGP signature