Re: explain annoying You have XXX mail messages

2003-10-19 Thread Fernan Aguero
+[ Lowell Gilbert [EMAIL PROTECTED] (03.Oct.2003 20:44):
|
| Fernan Aguero [EMAIL PROTECTED] writes:
| 
|  The default mailbox (/var/mail/fernan) is empty, since I
|  use procmail to deliver messages to several different
|  mailboxes under ~/mail.
|  
|  Still, I keep receving this message all the time. Right now
|  it says I have 50 messages. What are they? Where are they?
| 
| # echo $MAIL
| 
| should tell you...
|
+]

Hi!

Thanks for your reply,

[EMAIL PROTECTED] echo $MAIL
/var/mail/fernan
[EMAIL PROTECTED] ls -l $MAIL
-rw-rw  1 fernan  mail  0 Oct  4 09:56 /var/mail/fernan

As I said, the default mailbox (/var/mail/fernan, aka $MAIL)
is empty, since I use procmail to deliver to ~/mail/inbox
(default) and other mailboxes under ~/mail.

I've just sent a reply to another suggestion I got. I've
CC'ed @questions.

Fernan,
still intrigued.


-- 
F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: explain annoying You have XXX mail messages

2003-10-04 Thread Fernan Aguero
+[ Mailing Lists Catcher [EMAIL PROTECTED] (03.Oct.2003 19:53):
|
| I don't know if this applies now but before I ran my own mail server I
| used to see that sort of thing after I su'd so another account.  For
| instance if I logged in as user but su'd to a root it would tell me I
| had mail but when I used the mail command it said no mail for user.  I
| forget how I was able to read root mail but I think it had something to
| do with using su -m...

Hi!

Thanks for the reply. 

Yes I know this happens ... I can su to other users and see
the 'You have mail.' message. However if I read mail for
that user, and say, delete all messages, after I exit
(/var/mail/user is now an empty file) and reenter I don't
see this message anymore.

| Anyhow root normally gets mail all the time from crontab and periodic
| daily/weekly/monthly/security runs.
| 
| Or Have a look in var/mail/root and others to see who has the mail. 
| Also use the mail command on the account you get the messages from next.

I'm using the default sendmail that comes with freebsd. All
mail to root gets redirected to me (alias root:
[EMAIL PROTECTED]). And yes, I receive all the mails from
root's cron jobs and periodic scripts. Still,
/var/mail/fernan is empty all the time (I use procmail to deliver to
~/mail/inbox), and there's no /var/mail/root (since it is
redirected to myseldf). All other users in the system have
empty /var/mail/$USER files, since I'm the only user in the
system :)

So ... I'm still intrigued:

i) I don't get 'You have mail.' but 'You have 50 mail
messages.' That is to say ... the message is different,
perhaps someone out there can identify the program that
produces this kind of messages upon entering the shell?

ii) ~/mail/inbox does not have 50 mail messages, it has
thousands. Also, there are no new or unread messages ...

iii) if I type 'mail', right after receiving the message, I
get 'No mail for fernan.' as a reply.

Thanks for any tip or suggestion,

Fernan

| 
| 
| On Fri, 2003-10-03 at 17:08, Fernan Aguero wrote:
|  Hi!
|  
|  I'd like to understand why every time I open a new terminal
|  (or just type 'csh' in a terminal) I get a message similar
|  to:
|  
|  You have XXX mail messages.
|  
|  The default mailbox (/var/mail/fernan) is empty, since I
|  use procmail to deliver messages to several different
|  mailboxes under ~/mail.
|  
|  Still, I keep receving this message all the time. Right now
|  it says I have 50 messages. What are they? Where are they?
|  
|  I've already read the man pages for csh(1), looked in 
|  sourced rc files (~/.cshrc, /etc/csh.cshrc, ~/.login,
|  /etc/csh.login) and, as far as I can see, there is nothing
|  that looks like checking on available messages.
|  
|  It's been also difficult to google a common phrase like 'you
|  have mail messages' to look for already answered questions.
|  
|  I apologize is this is a FAQ.
|  
|  Thanks in advance,
|  
|  Fernan
| -- 
| Mailing Lists Catcher [EMAIL PROTECTED]
| MGM Communications LLC  kibserv
| 
|
+]

-- 
F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: explain annoying You have XXX mail messages

2003-10-04 Thread Mikko Työläjärvi
On Sat, 4 Oct 2003, Fernan Aguero wrote:

 +[ Mailing Lists Catcher [EMAIL PROTECTED] (03.Oct.2003 19:53):
 |
 | I don't know if this applies now but before I ran my own mail server I
 | used to see that sort of thing after I su'd so another account.  For
 | instance if I logged in as user but su'd to a root it would tell me I
 | had mail but when I used the mail command it said no mail for user.  I
 | forget how I was able to read root mail but I think it had something to
 | do with using su -m...

 Hi!

 Thanks for the reply.

 Yes I know this happens ... I can su to other users and see
 the 'You have mail.' message. However if I read mail for
 that user, and say, delete all messages, after I exit
 (/var/mail/user is now an empty file) and reenter I don't
 see this message anymore.

 | Anyhow root normally gets mail all the time from crontab and periodic
 | daily/weekly/monthly/security runs.
 |
 | Or Have a look in var/mail/root and others to see who has the mail.
 | Also use the mail command on the account you get the messages from next.

 I'm using the default sendmail that comes with freebsd. All
 mail to root gets redirected to me (alias root:
 [EMAIL PROTECTED]). And yes, I receive all the mails from
 root's cron jobs and periodic scripts. Still,
 /var/mail/fernan is empty all the time (I use procmail to deliver to
 ~/mail/inbox), and there's no /var/mail/root (since it is
 redirected to myseldf). All other users in the system have
 empty /var/mail/$USER files, since I'm the only user in the
 system :)

 So ... I'm still intrigued:

 i) I don't get 'You have mail.' but 'You have 50 mail
 messages.' That is to say ... the message is different,
 perhaps someone out there can identify the program that
 produces this kind of messages upon entering the shell?

 ii) ~/mail/inbox does not have 50 mail messages, it has
 thousands. Also, there are no new or unread messages ...

 iii) if I type 'mail', right after receiving the message, I
 get 'No mail for fernan.' as a reply.

 Thanks for any tip or suggestion,

I'd guess that your .cshrc sets the mail variable to ~/mail or some
other directory. This makes csh look for new mail in the specified
path(s).  See csh(1), under the description of the mail variable.

All other programs use the environment variable MAIL, or default to
/var/mail/$USER, where there is no mail for you.

  $.02,
  /Mikko


 Fernan

 |
 |
 | On Fri, 2003-10-03 at 17:08, Fernan Aguero wrote:
 |  Hi!
 | 
 |  I'd like to understand why every time I open a new terminal
 |  (or just type 'csh' in a terminal) I get a message similar
 |  to:
 | 
 |  You have XXX mail messages.
 | 
 |  The default mailbox (/var/mail/fernan) is empty, since I
 |  use procmail to deliver messages to several different
 |  mailboxes under ~/mail.
 | 
 |  Still, I keep receving this message all the time. Right now
 |  it says I have 50 messages. What are they? Where are they?
 | 
 |  I've already read the man pages for csh(1), looked in
 |  sourced rc files (~/.cshrc, /etc/csh.cshrc, ~/.login,
 |  /etc/csh.login) and, as far as I can see, there is nothing
 |  that looks like checking on available messages.
 | 
 |  It's been also difficult to google a common phrase like 'you
 |  have mail messages' to look for already answered questions.
 | 
 |  I apologize is this is a FAQ.
 | 
 |  Thanks in advance,
 | 
 |  Fernan
 | --
 | Mailing Lists Catcher [EMAIL PROTECTED]
 | MGM Communications LLC  kibserv
 |
 |
 +]

 --
 F e r n a n   A g u e r o
 http://genoma.unsam.edu.ar/~fernan
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


explain annoying You have XXX mail messages

2003-10-03 Thread Fernan Aguero
Hi!

I'd like to understand why every time I open a new terminal
(or just type 'csh' in a terminal) I get a message similar
to:

You have XXX mail messages.

The default mailbox (/var/mail/fernan) is empty, since I
use procmail to deliver messages to several different
mailboxes under ~/mail.

Still, I keep receving this message all the time. Right now
it says I have 50 messages. What are they? Where are they?

I've already read the man pages for csh(1), looked in 
sourced rc files (~/.cshrc, /etc/csh.cshrc, ~/.login,
/etc/csh.login) and, as far as I can see, there is nothing
that looks like checking on available messages.

It's been also difficult to google a common phrase like 'you
have mail messages' to look for already answered questions.

I apologize is this is a FAQ.

Thanks in advance,

Fernan

-- 
F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: explain annoying You have XXX mail messages

2003-10-03 Thread Lowell Gilbert
Fernan Aguero [EMAIL PROTECTED] writes:

 The default mailbox (/var/mail/fernan) is empty, since I
 use procmail to deliver messages to several different
 mailboxes under ~/mail.
 
 Still, I keep receving this message all the time. Right now
 it says I have 50 messages. What are they? Where are they?

# echo $MAIL

should tell you...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]