[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: folder name syntax
- To: wl-en@lists.airs.net
- Subject: Re: folder name syntax
- From: Erik Hetzner <ehetzner@gmail.com>
- Date: Sun, 27 Sep 2009 18:55:55 -0700
- Cc: Rodrigo Amestica <ramestica@nrao.edu>
- 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:cc :subject:in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=H2eX2q8Vbmf7gqXhEhuYKKIqTErXLHX2eHg8BiXJwLI=; b=w7SPL6qXAfEXNgDs2WeN/HUVy2DYgUsqPkUjsp081csjQ6vnF9BeaAFTBFldk9rgiE A30nJlWtrjNmyngNtlargpmF8DRAkzSAQ+ywm0E5EV5IU4rUiHDLq7K++WsPr/NTU/pm rkyIF7xBD5H165j0g2i7UHTkEpchds+Wy10GE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=EiL5RyjLZF7GS7o1372CSGD1d2jjAVdLNMttaJldqHBX+mNTOYgOr18NlcGtVMljZF p8YTlXKCRgMMl8r3MsbtgaipiZqfUFG1LwJYIP+BG8R1tTxFx94poJaheB+Hb2LprT+h r5fOZVecVsUcPjnyjUgov3qFHC8cgDSkWbrgs=
- In-reply-to: <4AC009CB.1070207@nrao.edu>
- 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: <4ABED55A.4060003@nrao.edu> <87y6o05vw3.wl%nomiya@galaxy.dti.ne.jp> <4AC009CB.1070207@nrao.edu>
- Reply-to: wl-en@lists.airs.net
- User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI)
At Sun, 27 Sep 2009 20:56:43 -0400,
Rodrigo Amestica wrote:
>
> Hello Masaru,
>
> what you propose would certainly work but it is exactly what I'm trying to
> avoid. I have hundreds of folders and I do not want you go around defining a pet
> name for each individual folder. I thought that there will some way for defining
> a regular expression that would change the way folder names are displayed in the
> folder buffer, completely orthogonal with any other functionality in the buffer.
Hi Rodrigo -
I do not think that this functionality exists currently in WL. If
access groups and the wl-folder-hierarchy-access-folders do not suit
you, you could take a look at the function wl-folder-get-petname and
redefine it to match using a regex against the
wl-folder-petname-alist, for instance:
(defun wl-folder-get-petname (name)
(let ((replace (elmo-string-matched-assoc name wl-folder-petname-alist)))
(if replace
(replace-match (cdr replace) t nil name)
name)))
(setq wl-folder-petname-alist
'(("^%\\(.*\\)@imap\\.gmail\\.com:993!$" . "%\\1@gmail")))
best,
Erik
Attachment:
pgpT6Mke06i1K.pgp
Description: PGP signature