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

Re: mail functionality



On Tue, Apr 18, 2006 at 10:34:29AM +0000, djh  wrote:
> I just downloaded and built "zsh 4.3.2", (i686-pc-cygwin). 
> 
> It seems that at times when I hit the <CR> key, it will display the
> message "You have new mail.".  
> 
> My MAIL and MAILDIR environment variables are set to my MH mail folder.
> 
> I doubt that zsh knows whether I have mail or not, since it comes in through
> an external proxy.  
> 
> Is there anyway I can turn this off, or set it so that it is correct...

The relevant sections from zshparam(1):

  MAIL   If this parameter is set and mailpath is not set, the shell looks for
         mail in the specified file.
 
  MAILCHECK
         The interval in seconds between checks for new mail.
 
  mailpath <S> <Z> (MAILPATH <S>)
         An array (colon-separated list) of filenames to check for new
         mail.  Each filename can be followed by a `?' and a message
         that will be printed.  The message will undergo parameter
         expansion, command  substi- tution  and arithmetic expansion
         with the variable $_ defined as the name of the file that has
         changed.  The default message is `You have new mail'.  If an
         element is a directory instead of a file  the  shell will
         recursively check every file in every subdirectory of the
         element.

IIRC to just disable mailchecking you set MAILCHECK=0.

-- 
with kind regards
Thor Andreassen



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