Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZSH and maildir
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Tue May 17, 2005 6:34 pm    Post subject: ZSH and maildir Reply with quote

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
View user's profile Send private message
ag_x
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 142
Location: Self Sarkarm.

PostPosted: Wed May 18, 2005 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Wed May 18, 2005 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
ag_x
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 142
Location: Self Sarkarm.

PostPosted: Thu May 19, 2005 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum