Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: $mailpath and Maildir



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: signature.asc
Description: This is a digitally signed message part



Messages sorted by: Reverse Date, Date, Thread, Author