Subject: Multiple pine windows

From: Jean Schuller <[email-masked]>
Date: Mon, 10 Feb 1997 09:02:11 +0100 (MET)

Hi all,

I have the following question :

Suppose I am reading a mail using Pine on the window #1 and then
I start a new Pine on window #2, the first Pine give the message 
"[Another Pine is accessing Inbox.  Session now Read-Only.]", Ok.
Now, I quit Pine on window #2 but my Pine #1 stays allways in
Read Only state. Is there a way to turn it "read-Write" without
quit Pine.

TIA

JEAN

-----------------------------------------------------------------------------
Jean Schuller                    _/  _/_/_/    _/_/_/  _/_/_/_/
[email-masked]        _/  _/    -/  _/  _/  _/     
                               _/  _/_/_/-/  _/_/_/  _/_/_/_/
                              _/  _/   -/   _/            _/
                             _/  _/    _/  _/_/_/  _/_/_/_/  
local   call:    0388106630    Institut de Recherches Subatomiques
foreign call: (33)388106630    Boîte Postale 28 
local   fax :    0388106234    23, Rue du Loess
foreign fax : (33)388106234    F-67037 STRASBOURG CEDEX  - France
-----------------------------------------------------------------------------

---

From: Naor Mark <[email-masked]>
Date: Mon, 10 Feb 1997 19:35:54 +0200

Hi Jean,

I had the same problem (actually I kept forgetting that I left pine with
Ctrl-Z ;) but couldn't find any good solution.

The final trick to solve this irritating problem was that instead of
starting pine, I start a small and primitive script that does the job for
me.

------Begin of script spine -----
#! /bin/sh
#  exec pine only if not already running or a lock file exists
if [ ! -e "<lock_file_name>" ]; then
	exec pine "-d0 -z -I l" $@
    exit 5  #
else
	echo 'Another Pine Session already running ... exiting'
fi
----End of script -----

Now, the idea is to identify the lock file usually at /tmp/ just look
around when you're in Pine and it won't take too long before you'll know
which one is yours. 

Then "brutally" put the full path of the file into the script, "et voila"
it won't come up if you're already open once.

I'm not a Unix Guru, so I guess it can be done better, but since it
works..... :)

All the Best,
  Naor

On 10 Feb 1997, Jean Schuller wrote:

   > foreign call: (33)388106630    Boמte Postale 28

---

From: Terry Gray <[email-masked]>
Date: Mon, 10 Feb 1997 13:26:51 -0800 (PST)

> Read Only state. Is there a way to turn it "read-Write" without

Jean, 
We don't happen to use Berkeley folder format anymore (and this locking
behavior is a function of the driver for that format), so I can't test
this, but I *thought* you could go to the folder list and select INBOX and
re-open... then again, maybe that only works if it was closed due to an
access error.

Note also that you can start the second session with the -o flag so that
it won't disturb the first session.

-teg