Subject: Possible bug in Pine 4.33 - Updating adressbook with ISO encoding entry

From: Christian Nygaard <[email-masked]>
Date: Tue, 10 Apr 2001 16:15:05 +0200 (CEST)

Try updating the following distribution-list entry in Pine 4.33 Linux and
Pine will crash. This seems to be due to some bug handling the ISO-8859
characters.

Contents of .addressbok:

test	test	([email-masked],
   Test S=?ISO-8859-1?B?9g==?=derlund <[email-masked]>)	test

- Greets Chris

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Tue, 10 Apr 2001 09:43:04 -0700 (PDT)

*** Christian Nygaard ([email-masked]) wrote in the pine-info list today:

:) Try updating the following distribution-list entry in Pine 4.33 Linux and
:) Pine will crash. This seems to be due to some bug handling the ISO-8859
:) characters.

I've read about this bug before but I've never been able to reproduce it.
I can update this entry in the addressbook normally as any other. Are
there any other conditions that you think are relevant to reproduce this?

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

---

From: Eduardo Chappa <[email-masked]>
Date: Tue, 10 Apr 2001 10:02:26 -0700 (PDT)

Trying to reproduce this bug, I found another one. Essentially the problem
was produced because pine did not notice that I had changed my
addressbook. This is what happened:

 - I added manually the entry posted here to my addressbook in the correct
format.

 - I tested that the entry was correctly entered, and it was. Pine did not
crash.

 - Then I thought about having an addressbook with only that one entry, so
I quitted Pine, backed up my addressbook (cp .addressbook backup), edited
the addressbook, deleted everthing except one entry and saved the changes.

  - I repeated the process to check that the entry was correctly entered,
pine did not give me any problem, so I quitted Pine.

  - I thought I had failed to reproduce the bug above, so I decided to
restore my addressbook,  (mv backup .addressbook).

  - I restarted pine, and to my surprise my addressbook contained just one
entry, which was the first #DELETED entry in it!, somehow Pine did not
notice that I had changed my addressbook. I fixed this by deleting the
.addressbook.lu file.

  Also, I would like to suggest that the amount of time that the deleted
entries in the addressbook are kept be configurable, the entries I saw had
been deleted more than a month ago. I believe that's more than enough
time to be really gone away.

   Thanks for your consideration.

---

From: Steve Hubert <[email-masked]>
Date: Thu, 12 Apr 2001 09:12:44 -0700 (Pacific Daylight Time)

On Tue, 10 Apr 2001, Eduardo Chappa wrote:

> [...]

It is using the modification date of the addressbook file. If the
addressbook.lu file has been modified since the addressbook file, then it
thinks it is up-to-date.

> time to be really gone away.

I think it is 100 days. But this doesn't seem like it is worth making it
runtime configurable. Not many people look in their addressbook file, and
if they do, they can ignore the extra deleted entries. So if you really
want to change this parameter, change ABOOK_DELETED_EXPIRE_TIME in
pine/adrbklib.h.

-- 
Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle