[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wl-dispose-folder-alist regexes
- To: wl-en@lists.airs.net
- Subject: Re: wl-dispose-folder-alist regexes
- From: Erik Hetzner <ehetzner@gmail.com>
- Date: Tue, 28 Sep 2010 08:30:31 -0700
- Delivered-to: wl-en@lists.airs.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=cmRtbYuNX0GI2ExWXWvTjBflLEFiKithpHkDkWhVik4=; b=h+JqGf4i1RtT/ggBWiJkKoQO6qGj/y+M35hotLE+RbICdZp8s1WmK26NEjW0w8fDOJ WCQscPHZXl/LP+/lXkQTO3un7QXl0HlNUXs3AAFnlGLo9HNFhrM5K7wOtn7FchI54wQ0 iuxQyG/jKnBMeRInXD+NAnwBV29Gn/G5QkFFM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; b=QhxcyRFr9l4EhJDA1Rk6N4NDXXHHC2Ak+0cTWUMILJUCczvU6sfuh5e1EeXSIwkoQ3 VSMKPMjLi9wWMJRLDCovQyDoFBQvtNeld9YBuQdFaC1ExZkODh/M3o5spKnkczXkCTG+ +2j0D4U+uOkjeyRGmUd9/vrmp+qzHni3NrR8c=
- In-reply-to: <87r5gdaoas.wl%richard.lewis@gold.ac.uk>
- List-help: <mailto:wl-en-ctl@lists.airs.net?body=help>
- List-id: wl-en.lists.airs.net
- List-owner: <mailto:wl-en-admin@lists.airs.net>
- List-post: <mailto:wl-en@lists.airs.net>
- List-software: fml [fml stable 20011102.2100]
- List-unsubscribe: <mailto:wl-en-ctl@lists.airs.net?body=unsubscribe>
- References: <87r5gdaoas.wl%richard.lewis@gold.ac.uk>
- Reply-to: wl-en@lists.airs.net
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
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