LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2003, 01:15 AM   #1
asc3ndant
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
bash new mail notification


for some reason i can't get bash to check my mailbox and display a "you have new mail" message in the console. i use fetchmail and pine, and this is my .bash_profile:

# .bash_profile

# get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# user specific environment and startup programs

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV PATH

export MAIL="/var/spool/mail/root"
export MAILPATH='/var/spool/mail/root "You have new mail."'
export MAILCHECK=10
fetchmail

and my .fetchmailrc:

set daemon 60
poll orbital.pobox.stanford.edu with protocol pop3
username orbital
password ************
ssl
fetchall
 
Old 03-06-2003, 02:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
fetchmail doesn't tell you you have new mail, that's biff

"biff on"
 
Old 03-06-2003, 03:26 AM   #3
asc3ndant
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Original Poster
Rep: Reputation: 15
i dont have biff on my system, and it's true that fetchmail does not tell me that i have new mail, but when it pulls mail from my mail server it update /var/spool/mail/root, and thus bash is supposed to check if the file has been modified every $MAILCHECK seconds, and then notify me. So bash is supposed to be doing the notification, but given my settings above, it's not happening. And I'm wondering why bash isn't doing its job.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Mail Notification - POP3 mail always shown as new? tsiMental Linux - Software 0 09-08-2005 10:50 AM
Turning off mail notification in bash Phathead Slackware 1 02-03-2005 01:23 PM
Mail notification Maverick1182 Linux - Software 0 08-29-2004 05:45 AM
cron e-mail notification adm1329 Linux - Newbie 1 06-20-2004 07:27 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration