Subject: Q: how to sort a folder permanently

From: pine <[email-masked]>
Date: Wed, 17 Jan 2001 18:02:31 +0100 (MET)

hello,

i can sort the message-index in a folder with the '$' cmd. but when
i leave the folder and come back later, i have to sort again. how
can i sort permanently? do i have to the actual messages in the
file representing that folder? are there external tools for this?

thanx in advance,
andreas bunten

ps: i use pine 4.31 and 4.30 under solaris, digital unix and linux.

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

---

From: Dan Fulbright <[email-masked]>
Date: Wed, 17 Jan 2001 11:21:09 -0600 (CST)

> file representing that folder? are there external tools for this?

Look in the config screen (MSC) for sort-key.

Dan Fulbright

---

From: Ralph Slooten <[email-masked]>
Date: Wed, 17 Jan 2001 18:41:49 +0100 (CET)

Yeah, I know what you mean. Actually, once you have sorted it the way you
want, press the ";" , and then "a" to select all messages. Once they are
all selected, press the "a" key again to APPLY command, and then the "s"
key to save all the messages. Type in the location (in this case the same
folder you are in), and press enter. You will first get shocked as it'll
appear that the number of messages you have has doubled, however every
second messade is flagged with a delete flag. Now, exit the folder and go
into another, or exit pine, and return to your folder, and all messages
will be in the order you saved them as ;-)

This might sound complicated, but it's not really ;-)

Ralph

-- 
ICQ: 25543458             Homepage: http://www.axllent.cjb.net
PGP Public Key: http://www.geocities.com/axllent_nl/pubpgp.txt

---

From: Eduardo Chappa <[email-masked]>
Date: Wed, 17 Jan 2001 13:03:51 -0800 (PST)

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

:) i can sort the message-index in a folder with the '$' cmd. but when
:) i leave the folder and come back later, i have to sort again. how
:) can i sort permanently? do i have to the actual messages in the file
:) representing that folder? are there external tools for this?

You can set *all* your folders to be sorted in the same way by changing
the sort-key configuration option, that may solve your problem.

 If you want to have a per-folder-sort-key you can use a patch that I
wrote (which you can pick from my web page below) called "define your own
rules...", after you apply the patch all you need to do is to go to your
configuration option and define something like:

_FOLDER_ == {folder_name} =>  _SORT_{sort_type}

in the new "sort-rules" configuration option. There's extensive help in my
web page and in pine onli help after you apply the patch on all the
options available to you and how to define more "sort-rules".

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

---

From: "Mike A. Harris" <[email-masked]>
Date: Thu, 18 Jan 2001 23:19:01 -0500 (EST)

On Wed, 17 Jan 2001, pine wrote:

>Date: Wed, 17 Jan 2001 18:02:31 +0100 (MET)
>From: pine <[email-masked]>
>To: Pine Discussion Forum <[email-masked]>
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>Subject: Q: how to sort a folder permanently
>
>hello,
>

Sort the folder, then do apply->save->enter a temp folder name,
then go inm the temp folder, hit select all (;)->a->apply->save
to the original folder.

----------------------------------------------------------------------
    Mike A. Harris  -  Linux advocate  -  Free Software advocate
          This message is copyright 2001, all rights reserved.
  Views expressed are my own, not necessarily shared by my employer.
----------------------------------------------------------------------
"If it isn't source, it isn't software."  -- NASA

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 18 Jan 2001 20:34:03 -0800 (PST)

*** Mike A. Harris ([email-masked]) wrote in the pine-info...:

:) Sort the folder, then do apply->save->enter a temp folder name,
:) then go inm the temp folder, hit select all (;)->a->apply->save
:) to the original folder.

  This only solves the problem partially, since new messages saved into
the folder won't be sorted according to the sort order specified before,
so eventually you'll have to repeat the same procedure again and again...

  Pine still does not have hooks for folders, which would solve this 
problem much more easily.

---

From: "Mike A. Harris" <[email-masked]>
Date: Fri, 19 Jan 2001 00:32:59 -0500 (EST)

On Thu, 18 Jan 2001, Eduardo Chappa wrote:

>Date: Thu, 18 Jan 2001 20:34:03 -0800 (PST)
>From: Eduardo Chappa <[email-masked]>
>To: Mike A. Harris <[email-masked]>
>Cc: Pine Discussion Forum <[email-masked]>
>Subject: Re: Q: how to sort a folder permanently
>

True indeed.  I know i'd find that handy for sure.

"Facts do not cease to exist because they are ignored."
                                               - Aldous Huxley