Subject: Pine and Compress

From: [email-masked] (Art Pollard)
Date: Tue, 11 Apr 1995 03:18:50 GMT

I am new to this newsgroup -- so, don't flaim me if this question has 
been asked 10,000 times previously. ;)

I would like Pine to compress my mail in each of my folders as it stores 
the mail messages and then decompress a mail message if I want to read it.

Is this possible?  A good chunk of disk space is taken up with mail in 
various folders that I want to keep.  If there were some way to compress 
this mail without making it unreadable to Pine, that would be great!

Thanks for any help you can provide,

Art

---

From: [email-masked] (Ananda M. Kar)
Date: 11 Apr 1995 13:25:19 -0500

[ [email-masked] (Art Pollard) wrote the following on "comp.mail.pine": ]

-> I would like Pine to compress my mail in each of my folders as it stores 
-> the mail messages and then decompress a mail message if I want to read it.
-> 
-> Is this possible?  A good chunk of disk space is taken up with mail in 
-> various folders that I want to keep.  If there were some way to compress 
-> this mail without making it unreadable to Pine, that would be great!

 PINE can't do it but a shell sctipt can.

 Suppose all your folders are in "/usr/people/pollarda/mail" and the
 PINE binary is in "/usr/local/bin". Set the FDIR variable to where
 your actual folders are if the above is not correct.

 Create the following file and name it "Pine" do a "chmod +x Pine" and 
 invoke it with "./Pine"

 ---------------cut here---------------

 #!/bin/sh
 FDIR=/usr/people/pollarda/mail
 for i in $FDIR/*
 do
  if [ ! -d $i ]; then
   uncompress $i
  fi
 done
 /usr/local/bin/pine
 for i in $FDIR/*
 do
  if [ ! -d $i ]; then
   compress $i
  fi
 done

 ---------------cut here---------------

 Ananda

-- 
Ananda M. Kar |(H)458-9754 | URL: http://www.cs.utexas.edu/users/ananda/
------------------------------------------------------------------------
  I am Pentium of Borg , Division is futile , You will be Approximated

---

From: [email-masked] (Phillip Moore)
Date: 11 Apr 1995 22:21:28 GMT

Ananda M. Kar ([email-masked]) wrote:
:  PINE can't do it but a shell sctipt can.

:  Suppose all your folders are in "/usr/people/pollarda/mail" and the
:  PINE binary is in "/usr/local/bin". Set the FDIR variable to where
:  your actual folders are if the above is not correct.

:  Create the following file and name it "Pine" do a "chmod +x Pine" and 
:  invoke it with "./Pine"

I recently made a post asking someting simmilar.  I think a better solution
would be to change the code to make pine to uncompress (gunzip) only
the mail folder that you are accessing, and when you are done would 
gzip it back up in the background when your done with it.  Would be 
transparent to the user except for a minor delay when opening a mail
folder.  If I had some extra time I'd do it, but was hoping someone
out there had already done it.

--
Hollernet: Phillip Moore           PhoneNet: home  : 601.324.0531
WorkNet  : NSF, Engineering                  office: 601.325.4023 (voice mail)
           Research Center         FaxNet          : 601.325.7692
           Systems Administration  WWWnet:   http://www.erc.msstate.edu/~phil/

---

From: "[email-masked]" <[email-masked]>
Date: Tue, 11 Apr 1995 18:23:35 -0700 (PDT)

If you'll write the code, I'll buy it for $5.  If enough of us would, 
would it be worth your time?  There are a lot of Pine users.

Juanita

 On 11 Apr 1995, Phillip Moore

---

From: David L Miller <[email-masked]>
Date: Thu, 13 Apr 1995 09:45:17 -0700 (PDT)

And if you send us a copy, we'll see what we can do about getting it in
the next Pine release... 

|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, JE-20
4545 15th Ave NE, Seattle WA 98105, USA

On Tue, 11 Apr 1995, [email-masked] wrote:

> Date: Tue, 11 Apr 1995 18:23:35 -0700 (PDT)
> From: [email-masked] <[email-masked]>
> To: Phillip Moore <[email-masked]>
> Cc: [email-masked]
> Subject: Re: Pine and Compress
>