Subject: slow marking messages deleted

From: daniel lance herrick <[email-masked]>
Date: Mon, 1 Jul 2002 09:05:51 -0400 (EDT)

I'm running Pine 4.21 on Solaris.

There is a monthly production process that sends
me several hundred e-mail messages. Pine rules
sort them into a couple local (my directories, not
on the imap server) mail folders, and I leaf
through them with the "n" key looking for
exceptions, speed is entirely satisfactory.

Now, with 1599 messages in the mailbox, I want to
get rid of last month's messages. In the folder
index, I type ahead many "d"s and it takes them
about one per second, or a little slower.

That speed was satisfactory when I was leafing
through the messages with "n", but now I just want
to get rid of the dead past.

Is there any way short of renaming the mailbox
files that would get rid of the old messages at a
suitable speed?

Maybe I should create a rule that would move
anything 45 days old out of those mailboxes into
/dev/null. At least that would run without me
having to shepherd a thousand cycles at one Hertz.

dan

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

---

From: "Timothy J. Luoma" <[email-masked]>
Date: Mon, 1 Jul 2002 09:42:21 -0400 (Eastern Daylight Time)

Try this instead

; d control+w mm/dd/yyyy a d x

Translation:

; = mark messages

d = based on "d"ate

control+w = change date to BEFORE (i.e. "I want to select all messages
	dated BEFORE the date that I tell you"

mm/dd/yyyy = month/date/year, ie 6/30/2002

a = apply

d = delete

x = expunge

---

From: daniel lance herrick <[email-masked]>
Date: Mon, 1 Jul 2002 10:27:14 -0400 (EDT)

Thanks.

I had to Enable_Aggregate_Commands before it would
work, but that feature does exactly what I wanted.

(Read some more help and turned on some other
"advanced" features, while I was there. Now we'll
see if I can remember to learn to use them.)

Again, thank-you Tim,
dan

---

From: Susan Dorsey <[email-masked]>
Date: Tue, 2 Jul 2002 16:17:00 -0600 (MDT)

Hey all,

Just went from 4.40 to 4.44 yesterday and have been getting some
inconsistently strange results using control J to justify a paragraph.
Some of the time it works fine.  More often nothing happens at all,
paragraph not justified, or "ufs" gets added to the beginning of every
line, overwriting or simply deleting three characters of the line.

This never happened with previous versions of Pine.  Has anyone else seen
this?  Or know why it's occurring?

Thanks.

Susan Dorsey

---

From: Jeff Franklin <[email-masked]>
Date: Tue, 2 Jul 2002 19:15:00 -0700 (PDT)

> this?  Or know why it's occurring?

Hi Susan,

There have been a couple of bugs that have been uncovered with justify in
4.44.  The bugs have been fixed for the next release, but for the
meantime, if you want to apply the patch below, then the problem you
describe should go away.

Jeff

-- 
Jeff Franklin <[email-masked]>
Networks and Distributed Computing   University of Washington

-----------------
--- word.c~      2001/10/18 20:13:04
+++ word.c       2002/03/05 04:01:56
@@ -372,11 +372,11 @@
 {
     register int i, n, j, qb;

+    *buf = '\0';
     if(*q == '\0')
       return(1);

-    qb = q[strlen(q)-1] == ' ' ? 1 : 0;
-    *buf = '\0';
+    qb = (strlen(q) > 1 && q[strlen(q)-1] == ' ') ? 1 : 0;
     for(n = 0, j = 0; ;){
        for(i = 0; j <= llength(l) && qb ? q[i+1] : q[i]; i++, j++)
          if(q[i] != lgetc(l, j).c)
@@ -482,7 +482,7 @@

          default :
            if(spaces){                         /* flush word? */
-               if(line_len
+               if((line_len - qlen > 0)
                   && line_len + word_len + 1 > fillcol
                   && (line_len = fpnewline(qstr)))
                  line_last = ' ';      /* no word-flush space! */
@@ -510,7 +510,7 @@

            if(word_len + 1 >= NSTRING){
                /* Magic!  Fake that we output a wrapped word */
-               if(line_len && !same_word++)
+               if((line_len - qlen > 0) && !same_word++)
                  line_len = fpnewline(qstr);

                line_len += word_len;
@@ -527,7 +527,7 @@
     }

     if(word_len){
-       if(line_len + word_len + 1 > fillcol)
+       if((line_len - qlen > 0) && (line_len + word_len + 1 > fillcol))
          (void) fpnewline(qstr);
        else if(line_len && !isspace((unsigned char) line_last))
          linsert(1, ' ');

---------------------

---

From: Scott Evans <[email-masked]>
Date: Mon, 8 Jul 2002 12:13:50 -0700 (PDT)

I've mentioned this on the list before but didn't get a response... 
it seems like there are a few pine developers reading and responding
at the moment so I figured I'd ask again.

When I hit 'x' to expunge (which I do all the time), for about 5 seconds
afterwards I can't do anything else, for instance compose a new message.
I believe this delay is because pine really wants to leave the "1 message
expunged from INBOX" message up for a given amount of time.  I've dug
through the source a few times but haven't had a lot of luck tracking
down exactly what displays this message or where the length of time
is set.  But I'd really love to see this delay go away... does anyone
have any insights for me?

Thanks.

--
 scott evans :: www.antisleep.com

---

From: Scott Evans <[email-masked]>
Date: Mon, 8 Jul 2002 15:46:48 -0700 (PDT)

Gah!  I slightly misspoke.  Try expunging a message or two, then
pressing "g" right away to go to another folder.  So "x g".  
Then you'll see the delay.

scott

---

From: Bret Busby <[email-masked]>
Date: Wed, 10 Jul 2002 14:42:16 +0800 (WST)

On Mon, 8 Jul 2002, Scott Evans wrote:

> Date: Mon, 8 Jul 2002 12:13:50 -0700 (PDT)
> From: Scott Evans <[email-masked]>
> To: Pine Discussion Forum <[email-masked]>
> Subject: uncontrollable delay after Xpunge
> 

I do not know what version of pine you are using, but I have (thus
far) been using 4.21 for Linux (shortly to convert to 4.33 (I think it
is), on a new system build), and I have found that when I expunge, the
filters fail, until the expunge is completed.

The filters in pine are great, but this bug with expunging, makes me too
scared to use it, as a rule. Ususally, when I forget, and, expunge a
folder, I usually regret it as soon as the filters fail, and the error
messages appear. I mainly use the expunging on the INBOX, as the other
folders expunge okay on simply switching folders, but, whenever I manually
expunge, using the x command, the problem occurs. I have somewhere around
70-80 filters, and a similar number of mail folders, and can get a
thousand or so messages in a day (mainly genealogy research and mailing
lists)

Has the bug been overcome in the latest version?

-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is, 
 you'll know what the answer means."
 - Deep Thought, 
   Chapter 28 of The Hitchhiker's Guide to the Galaxy
 - Douglas Adams, 1988
.......................................