procmail
[Top] [All Lists]

Re: Mail notification not working

2001-06-13 15:36:32
Ok, I understand what its trying to do, but since I'm stupid, where do I put
it?  If I put it in my .bash_profile it works only when I'm logged in, but
not when I'm logged in?

I guess what I'm asking for is to have finger work when I'm not logged in.
Do I have to hack the finger source?

Thanks alot everyone for the help!!

On Wed, Jun 13, 2001 at 03:15:08PM -0500, "David W. Tamkin" 
<dattier(_at_)ripco(_dot_)com> wrote:
Edward Sabol suggested to Chris S.:

| There's no solution for finger that I know of, unless you want to continue 
to
| file your non-mailing list e-mails in /var/spool/mail/username.

I'm wondering if this will do it (assuming $SHELL is set to /bin/sh or some-
thing compatible); it seems to work here:

 # apostrophes, not backticks
 TRAP='test -s $ORGMAIL && touch $ORGMAIL || echo >> $ORGMAIL'

In other words, if the spool is non-empty, update its modification time;
if the spool is empty (of if the touch command didn't work), append a
newline to it.  That will make sure that whenever you receive mail your spool
file is non-empty (just a newline in it, not any mail) and freshly marked as
modified.

If your fingerd reports unread mail if the spool is empty but freshly
touched, you can do this:

 TRAP='touch $ORGMAIL' # setting of $SHELL won't matter

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

-- 
Chris S.
PGP 0x519E3777

Attachment: pgpues3dqYHX2.pgp
Description: PGP signature