Subject: delete empty folders fom PINE

From: "Cornelius C. Noack" <[email-masked]>
Date: Fri, 3 Dec 1999 17:21:17 +0100 (CET)

On 10 Jan 1997, Helmer Aslaksen wrote:

> I've just switched from elm to pine, and I have some problems. Is
> there some way to make pine automatically delete a folder when I have
> deleted all the messages in it?

I am now in exactly your position and want to ask the identical
question. Did you ever get an answer, or does anyone know how to do this?
ccn.
.............................................................................
      _|_
     / | \
     _|_/      Prof.Dr. Cornelius C. Noack    Phones:
      _|_ ___   Inst. f. Theoret. Physik FB 1   office   : +49 (421) 218-2427
 |   |   |   \  Universit"at Bremen             secretary: -2422
 |___|   |___/  Kufsteiner Strasse              Fax      : -4869
 |   |   |   \  D - 28334  Bremen               home     : +49 (421) 34 22 36
 |   |   |___/                                                 Fax:  346 7873
     PhyHB                            E-mail :  [email-masked]
.............................................................................

---

From: Catherine Thomas <[email-masked]>
Date: Fri, 3 Dec 1999 20:32:19 -0500 (EST)

If there is a way of deleting empty folders automatically, the criteria
being that all messages have been removed, I would think twice about using
it. You may find yourself in some unexpected messes. Instead, when a
folder is empty and you wish to delete it, I would highlight it in list
folders and, instead of hitting the v as you would to read its contents,
check the bottom of the screen to see the remove folder command (which is
either d or r, I forget) and remove the folder that way.

---

From: "David A. Desrosiers" <[email-masked]>
Date: Fri, 3 Dec 1999 20:41:56 -0500 (EST)

That would definately be a very *VERY* bad thing, since I use
procmail and fetchmail to gather, sort, and batch my mail into my
40-odd-folders I keep. If I had them auto-deteleted when empty, I'd screw
up my nice clean recipies in procmail. They're not autocreated, so
auto-deleting them is not a good option. Perhaps a message counter next to
the folder in list view would be nice. 

	Just my 0.02c

+-----------------------------------------------------------+
|  David A. Desrosiers             *calloc(1,sizeof(geek))  |
|  [email-masked]       http://www.gnu-designs.com  |
|  void main (void) { if (windows=="useful") hell=frozen }  |
|  PGP: 80F8 7FFF 8329 292F 2696  E354 3D9E 2800 5B8D ABC1  |
+-----------------------------------------------------------+

---

From: Scott Leibrand <[email-masked]>
Date: Fri, 3 Dec 1999 19:15:21 -0800 (PST)

But for those who don't use any mail delivery programs, you could simply
write a shell script to delete all 0-byte mail folder files.  This of
course requires direct access to your mail folders, which not all IMAP
servers allow.

You can also select folders based on the number of messages they contain,
but since there's no apply command, this isn't very useful.  I also
noticed when testing this that selecting folders by message count ( ; p c
from the folder list) doesn't work for Incoming Folders in 4.21.  I'll
submit a bug report in a minute.  :)

-- 
Scott Leibrand
[email-masked]
http://students.washington.edu/leibrand
* RCW 19.190 notice: This email address is located in Washington State. *
* Unsolicited commercial email may be billed $500 per message.          *

---

From: Mike Miller <[email-masked]>
Date: Fri, 3 Dec 1999 21:35:25 -0600 (CST)

On Fri, 3 Dec 1999, Scott Leibrand wrote:

> write a shell script to delete all 0-byte mail folder files.

Remember that, since Pine 4.00, folders with zero messages do *not* have
zero bytes.  They have 13 lines of "folder internal data."

Mike

-- 
Michael B. Miller
University of Missouri--Columbia
http://taxa.psyc.missouri.edu/~mbmiller/

---

From: Scott Leibrand <[email-masked]>
Date: Fri, 3 Dec 1999 19:59:17 -0800 (PST)

Ok.  That shouldn't be too hard to take into account.  It would be better
if we could apply commands to multiple selected folders, though, IMO.

---

From: Nancy this-address-is-valid McGough <[email-masked]>
Date: Sun, 5 Dec 1999 09:22:20 -0500 (EST)

> the folder in list view would be nice. 

Procmail 13.3.1 *does* autocreate folders if they don't already
exist. I know this because I regularly download my incoming
folders to my PC using ftp and then they all get recreated by
procmail as the messages arrive. I think this has been true the
whole time I've been using procmail, which has been since 1994.

Nancy 

-- 
For Procmail info, see www.ii.com/internet/robots/procmail/qs/
For Pine links, see http://www.ii.com/internet/messaging/pine/
 
©Nancy McGough         http://www.ii.com/         Infinite Ink
--= Sent via PINE 4.21: Internet News & Email for Win/Unix =--