View previous topic :: View next topic |
Author |
Message |
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Tue May 17, 2005 6:34 pm Post subject: ZSH and maildir |
|
|
I just switched over to zsh for its completion features, but now I'm running into a problem with checking my maildir folders. I have the line
Code: | export MAILPATH="$HOME/.maildir?You have new mail" |
in my .zshrc. However, whenever I type "mail", I get the message "No mail for chris". I tried setting MAIL="$HOME/.maildir/", but then mail returns "mail: /home/chris/.maildir: Is a directory". I'm not exactly certain what's going wrong.
Oh, and I did have the maildir USE flag set. _________________ "You probably wouldn't worry about what people think of you if you could know how seldom they do."
-Olin Miller |
|
Back to top |
|
|
ag_x Tux's lil' helper
Joined: 11 Jun 2004 Posts: 142 Location: Self Sarkarm.
|
Posted: Wed May 18, 2005 12:32 pm Post subject: |
|
|
Could you try export MAILPATH="/var/mail/$LOGNAME?You have new mail"?
I use mutt and i want to get a message if a new email arrives in a specific folder,so i have in .zshrc.
Code: | mailpath=(
"$HOME/MuttMail/others?You have new mail in others"
"$HOME/MuttMail/personal?You have a personal mail "
)
export MAILPATH
|
|
|
Back to top |
|
|
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Wed May 18, 2005 8:07 pm Post subject: |
|
|
Okay, in my vast wisdom, I forgot that the mail command has nothing to do with zsh. For some odd reason, I had it in my head that it was a zsh builtin. However, I'm still not getting any notifications, even after using the terminal for several minutes.
@ag_x:
I don't have anything in my /var/mail directory. But trying what you put in your .zshrc (modified for my setup, of course) doesn't seem to help, either. _________________ "You probably wouldn't worry about what people think of you if you could know how seldom they do."
-Olin Miller |
|
Back to top |
|
|
ag_x Tux's lil' helper
Joined: 11 Jun 2004 Posts: 142 Location: Self Sarkarm.
|
Posted: Thu May 19, 2005 9:24 am Post subject: |
|
|
The only thing that will make zsh NOT to check your mail folders,is if you set the zero value to the MAILCHECK parameter.
/var/mail/ is a symbolic link to the /var/spool/mail in my setup.
Btw you dont even have to export the mailpath,as zsh will read it from .zshrc,in every run.
Normally zsh will check for a new mail,after every command is finished,then will print a message.
Thats the way it works. |
|
Back to top |
|
|
|