Subject: querying for newmail

From: [email-masked] (Nick Carraway)
Date: 2 Nov 1995 09:46:03 -0700

I am using Pine for Unix and have two questions:

     (1)  Is there a way to do "elm -z" at the system promt- this would
          check INBOX for messages and invoke Pine (pine -i) if so.

     (2)  Is there a way to be notified when newmail arrives after login?
          Before I had 'newmail -i <some_time>' in .login to do this.

Thanks for any help/pointers.

---

From: [email-masked] (Sven Guckes)
Date: Fri, 3 Nov 1995 21:12:28 +0100 (MET)

>From the "ELM Reference Guide":
   "-z    This causes Elm not to start if you don't have any mail,"
This should be equivalent to "size of mailbox is zero".
Most shells have a text for this, eg for the zsh this would be:
 if [[ -s file ]]; then pine; else pine -i; fi

I don't see a reason why elm should be used at all to start pine.

Sven

---

From: Mike Brudenell <[email-masked]>
Date: Mon, 6 Nov 1995 09:20:46 +0000 (GMT)

>  if [[ -s file ]]; then pine; else pine -i; fi

Of course, this won't work if you only have IMAP access to your INBOX file.

Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/