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

Re: Mailpath notification message



>>>>> "RH" == Rusty Hoover <rusty@xxxxxxxxx> writes:

RH> It doesn't. What am i doing wrong? Do i need spaces around the question
RH> mark?

I struggled with this for a little while, and came up with the following:

mailpath=(
  /var/mail/tibbs\?'New unfiltered mail.'
  ~/Mail/spool\?'New spooled mail: ${${_%.spool}#/home/tibbs/Mail/spool/}.'
)

I have something like fifty mail spools, each looking like
/home/tibbs/spool/zsh.spool.  This will report "New unfiltered mail" for
mail in the system spool directory, and will extract the name of the spool
form the other spool directories.
-- 
      Jason L. Tibbitts III - tibbs@xxxxxx - 713/743-8684 - 221SR1
System Manager:  University of Houston High Performance Computing Center
                1994 PC800 "Kuroneko"      DoD# 1723



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