Subject: Pine3.96 - HP-UX 10.20

From: Miroslav Vrabel <[email-masked]>
Date: Mon, 20 Apr 1998 10:24:34 +0200

Hi,

I've tried to compile and run pine 3.96 on HP-UX 10.20. The compilation
was clear and it's possible to run pine.
...BUT ...
When I run the command pine and try to compose new message ( 1-st time
after running command pine) and when going to line "Subject", in the
bottom line appears label "[still rebuilding </>]" (with rotating slash)
and cursor is moved to the beggining of that line. So next typed chars
are written to the bottom line (tried on three different types of
terminals).  
 
If I send message it will be sent properly. And next composing of
message is without label "[still rebuilding </>]" and it's OK.

Have anyone had the same problem ?

                Thanks, Miro.
-- 
+-----------------------------------------------------+
|Miroslav Vrabel
|
|TEMPEST s.r.o.
|Hanulova 5/B
|841 01 Bratislava
|tel: 421-7-787 180, 787 236, 787 760
|Slovakia
|E-mail: [email-masked]
+-----------------------------------------------------+

---

From: Richard Gering <[email-masked]>
Date: Mon, 20 Apr 1998 16:53:19 +0100 (WET)

On Mon, 20 Apr 1998, Miroslav Vrabel wrote:

> and cursor is moved to the beggining of that line.

If this problem only occurs when the user "root" is trying to compose the
message, that would be the result of bug in the addressbook update code. 

Attached to this message, you will find a patch that Steve Hubert of the
Pine Development Team posted last year, which fixes the problem nicely. 
Apply the patch, rebuild Pine and you should be in business! 

Best regards,

- Richard Gering.

-- 
+-----------------------------------------------------------------------------+
| Richard Gering ([email-masked]) |   Real programmers can write assembly   |
| Computer Industries International |   code in any language.  - Larry Wall   |
+-----------------------------------------------------------------------------+
*** adrbklib.c.old	Fri Sep 26 12:02:32 1997
--- adrbklib.c.new	Fri Sep 26 11:58:57 1997
***************
*** 255,269 ****
      }
  
      if(p = last_cmpnt(ab->filename)){
! 	strncpy(path, ab->filename, p - ab->filename - 1);
!         path[p - ab->filename - 1] = '\0';
! 	p = path;
      }
      else
!       p = ".";
  
!     ab->temp_filename = temp_nam(p, "a1");
!     ab->temp_hashfile = temp_nam(p, "a2");
      if(!ab->temp_filename || !ab->temp_hashfile){
  	if(warning)
  	  (void)strcpy(warning, "Can't create temporary file");
--- 255,271 ----
      }
  
      if(p = last_cmpnt(ab->filename)){
! 	int to_copy;
! 
! 	to_copy = (p - ab->filename > 1) ? (p - ab->filename - 1) : 1;
! 	strncpy(path, ab->filename, to_copy);
! 	path[to_copy] = '\0';
      }
      else
!       strcpy(path, ".");
  
!     ab->temp_filename = temp_nam(path, "a1");
!     ab->temp_hashfile = temp_nam(path, "a2");
      if(!ab->temp_filename || !ab->temp_hashfile){
  	if(warning)
  	  (void)strcpy(warning, "Can't create temporary file");
***************
*** 277,286 ****
       * rename from temp_hashfile to hashfile isn't going to work.  So
       * set it to NULL in that case to let us know there is a problem.
       */
!     if(!in_dir(p, ab->temp_hashfile))
        fs_give((void **)&ab->temp_hashfile);  /* sets it to NULL */
  
!     if(!in_dir(p, ab->temp_filename))
        fs_give((void **)&ab->temp_filename);
  
      /* open addrbook for reading */
--- 279,288 ----
       * rename from temp_hashfile to hashfile isn't going to work.  So
       * set it to NULL in that case to let us know there is a problem.
       */
!     if(!in_dir(path, ab->temp_hashfile))
        fs_give((void **)&ab->temp_hashfile);  /* sets it to NULL */
  
!     if(!in_dir(path, ab->temp_filename))
        fs_give((void **)&ab->temp_filename);
  
      /* open addrbook for reading */

---

From: "Robin S. Socha" <[email-masked]>
Date: 20 Apr 1998 20:58:01 +0200

> Richard Gering <[email-masked]> writes:

> Attached to this message, you will find a patch that Steve Hubert
> of the Pine Development Team posted last year, which fixes the
> problem nicely.  Apply the patch, rebuild Pine and you should be in
> business!

Ok, I've had enough of this. Heheheee... AFAIK, there's no central
page collecting valuable tips like this[1] so I've launched one:

	<http://franck.pc.uni-koeln.de/~robin/pine-tips.html>

If you've got something you think is cool and deserves going down in
history and don't have your own webspace or know fsck all about HTML
or simply are too lazy to bother converting that stuff, throw it my
way and it will be included. Things I feel might be cool:

    o Random signatures 
    o Fancy Mailcap entries 
    o Good sending filters (escpecially the pgp stuff)
    o Patches like the one fixing... well, cool patches, y'know? 
    o Screenshots with scantily clad females using pine

Also, a simple .procmailrc (mine is cluttered across 23 files and
weighs some 370k[2]) would be rad. Or wouldn't it? Dunno...

A small note about the colours... If you think they suck, take a *really*
close look in the mirror before saying it. And read the warning sign on
my entry page... Ya know, it's a men's world after all - only wussies use
Netrape or Intranet Exploder. Duuuuuuuhhhhhh...

God, I'm bored.

Robin

Footnotes: 
[1]  Probably, the Pine site is full of it and I look a complete jerk
     now, but what the heck...

[2]  No, I will not make it publicly available, don't bother...

-- 
Robin S. Socha                <http://franck.pc.uni-koeln.de/~robin/>
I'm heading north, I'm heading home, doing 125
I close my eyes and count to ten ha ha yeah I'm still alive