Dear Adeodato Sim??, you wrote:
> Uhm. Let's imagine your mailbox is MAILBOX=/path/to/mailbox. What's
> the output of:
>
> % ls -ld `dirname $MAILBOX`
> % touch `dirname $MAILBOX`/foo
> % /usr/bin/mutt_dotlock -p $MAILBOX || echo failure
> % ls -l ${MAILBOX}.lock
Ok, here we go (I've added a blank line between the commands to improve
legibility, the first lines are my prompts, the next one(s) the comand's
output, if any):
[20:43] [EMAIL PROTECTED]:/home/frank
set MAILBOX=/home/frank/security/adviezen/surfspot/surfspot
[20:43] [EMAIL PROTECTED]:/home/frank
echo $MAILBOX
/home/frank/security/adviezen/surfspot/surfspot
[20:43] [EMAIL PROTECTED]:/home/frank
ls -ld `dirname $MAILBOX`
drwxr-xr-x 2 frank users 4096 Oct 31 20:42
/home/frank/security/adviezen/surfspot/
[20:44] [EMAIL PROTECTED]:/home/frank
touch `dirname $MAILBOX`/foo
[20:44] [EMAIL PROTECTED]:/home/frank
/usr/bin/mutt_dotlock -p $MAILBOX || echo failure
[20:44] [EMAIL PROTECTED]:/home/frank
ls -l ${MAILBOX}.lock
---------- 1 frank mail 0 Oct 31 20:44
/home/frank/security/adviezen/surfspot/surfspot.lock
> I find it very surprising that mutt_dotlock from the command line
> works, and it does not from within mutt.
I agree. But I tried to save a mailmessage (i.e., append) from my incoming
mailbox (i.e., /var/mail/frank) to the above mailbox and got:
Couldn't lock /home/frank/security/adviezen/surfspot/surfspot?
Just before I did this, I removed the previously created files `foo' and
the surfspot.lock file
The surfspot file itself is currently showing:
-rw------- 1 frank users 172472 Oct 31 11:20 surfspot
and, just to be sure, my .muttrc file shows the following mutt_dotlock line:
[20:57] [EMAIL PROTECTED]:/home/frank
grep mutt_dotlock .muttrc
set dotlock_program="/usr/bin/mutt_dotlock"
If you need any more details, please let me know.
--
Frank B. Brokken
Computing Center, University of Groningen
(+31) 50 363 9281
Public PGP key: http://pgp.surfnet.nl:11371/
Key Fingerprint: 8E36 9FC4 1DAA FCDF 1A0D B19F DAC4 BE50 38C6 6170
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]