zsh-users
 help / color / mirror / code / Atom feed
From: Joakim Ryden <jryden@forumone.com>
To: zsh-users@sunsite.dk
Subject: Re: $mailpath and Maildir
Date: 04 Feb 2002 23:02:36 -0800	[thread overview]
Message-ID: <1012892557.8896.3.camel@jo.cool.net> (raw)
In-Reply-To: <20020205064019.GA28069@hq.newdream.net>

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

this "works for me[TM]":

export MAILPATH="$HOME/Maildir?You have new mail in
\$_.:$HOME/Maildir/.maildir2?You have new mail in
\$_.:$HOME/Maildir/.maildir3?You have new mail in
\$_.:$HOME/Maildir/.maildir4?You have new mail in
\$_.:$HOME/Maildir/.maildir5?You have new mail in
\$_.:$HOME/Maildir/.maildir6?You have new mail in \$_."

zsh 4.0.4

--Jo


On Mon, 2002-02-04 at 22:40, Will Yardley wrote:
> is there any way to make expansion of the directory name (using $_) work
> properly with Maildir folders?
> 
> from the zsh man page under "mailpath":
> 
>    The message  will  undergo parameter expansion, command substitution
>    and  arithmetic  expansion  with  the variable  $_  defined  as the
>    name of the file that has changed.
> 
> however if i put:
> mailpath=($HOME/Maildir\?"New mail." ~/mail/\?"New mail in $_. ")
> 
> in my .zshrc,
> the message I get is:
> 
> New mail in path.
> 
> Same if i do something like:
> mailpath=($HOME/Maildir\?"New mail." ~/mail/ndn:cron\?"New mail in $_.")
> 
> zugzug% echo $ZSH_VERSION
> 4.0.4
> 
> am i doing something wrong? if not, is there a way to make this work
> anyway?
> 
> w
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-02-05  7:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-05  6:40 Will Yardley
2002-02-05  7:02 ` Joakim Ryden [this message]
2002-02-05  7:08   ` Will Yardley
2002-02-05  9:01     ` Joakim Ryden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1012892557.8896.3.camel@jo.cool.net \
    --to=jryden@forumone.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).