LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2005, 04:35 AM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
you have mail, no i do not


I login using ssh but the computer says at the top of screen after i enter my password

You have mail.

what is with that i go into mail and mutt and there are not emails there.

1st where is this setting or banner set?
2 what command can i run to check if i have messages without haveing to go into mutt or mail?
 
Old 12-08-2005, 05:04 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Run "mail" from the command line. You probably have system mail and have not setup you mail client to collect local mail. If you can't find the "mail" command, install the nail package.
 
Old 12-08-2005, 05:07 AM   #3
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
what what about mutt does that not do exactly same thing?
 
Old 12-08-2005, 05:09 AM   #4
Pierre Lambion
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
You could have a look in /var/spool/mail. There might be a mailbox file with your username. Check it and delete it.
biff is the obvious candidate for mail checking. There are alternatives of course. Search for biff on freshmeat and yu will have several hits (clones and such)

P.
 
Old 12-08-2005, 05:10 AM   #5
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
is biff used for ssh?
 
Old 12-08-2005, 05:22 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by namit
what what about mutt does that not do exactly same thing?
Mutt will not check for mail in accounts you have not setup. You can set it up to read local mail from /var/spool/mail/username. I just think its easier to use the built in tools Linux/Unix has.
 
Old 12-08-2005, 05:37 AM   #7
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Also check these environment variables: $MAIL, $MAILCHECK, $MAILPATH, they control bash mail notification behavior.

Last edited by T.Hsu; 12-08-2005 at 05:39 AM.
 
Old 12-08-2005, 05:47 AM   #8
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
where woudl they be in debian
 
Old 12-08-2005, 06:02 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You can just display the environment variables using echo, e.g.

echo $MAIL
 
Old 12-08-2005, 06:14 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by namit
where woudl they be in debian
Have you tried reading the mail using "mail" like I suggested above? Thats the solution to your problem but you seem to be ignoring it. The other solution is to configure your mail client to read local mail stored in /var/spool/mail/username. How you configure this depends on your mail client.
 
Old 12-08-2005, 06:19 AM   #11
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
From the command line you can also try

$ mutt -f /var/spool/mail/username

using the location of you mailspool file.
 
Old 12-08-2005, 07:30 AM   #12
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
what is the difference between

/var/spool/mail/username
/var/mail/username

i have been told that when i login the server will tell me that i have mail no matter what.

i will only have new mail when it says you have new mail

Is this right?
 
Old 12-08-2005, 07:37 AM   #13
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by namit
what is the difference between

/var/spool/mail/username
/var/mail/username

i have been told that when i login the server will tell me that i have mail no matter what.

i will only have new mail when it says you have new mail

Is this right?
If you don't want this notification, simply disable biff. In some cases, it's called upon in /etc/profile or in your own .bash_profile or .bashrc files in your home directory.
 
Old 12-08-2005, 08:25 AM   #14
FogSwimmer
Member
 
Registered: Sep 2003
Distribution: Kubuntu / debian / SuSE
Posts: 73

Rep: Reputation: 15
Quote:
Originally Posted by namit
what is the difference between

/var/spool/mail/username
/var/mail/username

In many cases, /var/mail is a symbolic link to /var/spool/mail - so they are the same.
$ file /var/mail
(no trailing / !)

should tell you whether you're dealing with a link on your system or it is the actual location of the mail spool.

f
 
Old 12-11-2005, 10:28 AM   #15
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
i do not mind it coming up but did not understand why it said you have mail and it was right it just should say you have no new mail
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 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