Subject: Suggestion

From: David Collantes <[email-masked]>
Date: Thu, 2 Dec 1999 12:53:57 -0500 (EST)

This is a suggestion for the Pine Development group. I know I can search
the subject of messages while in a Pine "folder" but it will be great to
have a global search that will search subject and body of messages in all
your mailboxes and on an specific mailbox. Would that be a planned
feature?

Cheers,

,----------------------------------.,-----------------------------------.
| David Collantes                  || email: [email-masked]          |
| Senior Systems Administrator,    || phone: (407) 823-3418             |
| Network Operations Manager       || UCFBusiness - UCF, Orlando, FL    |
`----------------------------------'`-----------------------------------'

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

---

From: Ed Arnold <[email-masked]>
Date: Thu, 2 Dec 1999 11:10:41 -0700 (MST)

Sounds like you're looking for grepmail: www.cs.virginia.edu/~dwc3q

---

From: Mike Miller <[email-masked]>
Date: Thu, 2 Dec 1999 12:11:27 -0600 (CST)

> your mailboxes and on an specific mailbox. Would that be a planned

I started asking for that a couple of years ago.  I was told that Pine
4.00 would have that feature, but it actually doesn't have it (as far as I
can tell).  It looks like it lets you find folders that contain certain
strings, but it doesn't pull the messages out of the folders for you.

I've basically given up on having Pine do what I need in this regard and
I've started using a perl script called grepmail.  It's working very well
for me.  You can look for my earlier postings on grepmail in the archive.
Just search for "grepmail".

Regards,

Mike

-- 
Michael B. Miller, M.S., Ph.D., M.P.E.
Department of Psychology
210 McAlester Hall
University of Missouri--Columbia
Columbia, MO 65211

 Phone: (573) 882-5671
   Fax: (573) 882-7710
e-mail: [email-masked]
   web: http://taxa.psyc.missouri.edu/~mbmiller/

---

From: Nancy this-address-is-valid McGough <[email-masked]>
Date: Thu, 2 Dec 1999 14:15:29 -0500 (EST)

> your mailboxes and on an specific mailbox. Would that be a planned

Pine can already do this. 

[1] To search the current mailbox type:

 ; T A text CR

You'll be presented with a list of *messages* that contain the
search text anywhere in the header or body.

[2] To search a group of mailboxes, first go to the Folder List
that has the group of mailboxes you want to search, then type:

 ; T C text CR

You'll be presented with a list of *mailbox* that contain
messages that contain the search text. You then need to go to
each individual mailbox and do step [1] there. As someone
else said, it would be great if method [2] presented you with a
virtual mailbox with all the messages from all the mailboxes that
matched your search.

HTH,
Nancy 

-- 
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 =--

---

From: Topher <[email-masked]>
Date: Thu, 2 Dec 1999 14:37:23 -0500 (EST)

> search text anywhere in the header or body.

One last thing, you can also Zoom (if you've got it turned on in your
setup) and it'll only show the messages that have results.  Unzoom to go
back to where you were.

Topher
Tech Support
[email-masked]
Gospel Communications Network

---

From: David Collantes <[email-masked]>
Date: Thu, 2 Dec 1999 14:44:09 -0500 (EST)

On Thu, 2 Dec 1999, Nancy this-address-is-valid McGough wrote:

OM# On 99-12-02 David Collantes <[email-masked]> wrote:
OM# > This is a suggestion for the Pine Development group. I know I can search
OM# > the subject of messages while in a Pine "folder" but it will be great to
OM# 
OM# Pine can already do this. 
OM# 
OM# [1] To search the current mailbox type:
OM# 
OM#  ; T A text CR
OM# 
OM# You'll be presented with a list of *messages* that contain the
OM# search text anywhere in the header or body.
OM# 
OM# 
OM# [2] To search a group of mailboxes, first go to the Folder List
OM# that has the group of mailboxes you want to search, then type:
OM# 
OM#  ; T C text CR
OM# 
OM# You'll be presented with a list of *mailbox* that contain

Nancy,

I do not understand. The character ";" shows as "Not defined", no matter
where I try to use it. Could you, please, elaborate more on this? As far
as for grepmail, I could do that easy in perl, but that is not the
point. I would like to have it build in, as part of pine itself.

Thanks for the help in advance.

Cheers,

---

From: Ed Arnold <[email-masked]>
Date: Thu, 2 Dec 1999 12:51:47 -0700 (MST)

A minor clarification: use of the ";" command requires that
enable-aggregate-command-set be in .pinerc's feature-list.
Also, it isn't clear to me that "text" can be a regular expression
(as in grepmail), do you know?

---

From: [email-masked]
Date: Thu, 2 Dec 1999 11:54:51 -0800 (PST)

>point. I would like to have it build in, as part of pine itself.

You have to turn on the "Enable Aggregate Command Set" in the preferences.

---

From: Seth Kurtzberg <[email-masked]>
Date: Thu, 2 Dec 1999 13:00:18 -0700 (MST)

This looks like a command line mode for Pine.  I, also, don't know how to
get into this mode.

Seth Kurtzberg
Machine Independent Software
Cell (602) 478-5511
Fax: (480) 614-8909
email:  [email-masked]
pager:  888-605-9296 or email [email-masked]

---

From: Seth Kurtzberg <[email-masked]>
Date: Thu, 2 Dec 1999 13:15:57 -0700 (MST)

Thanks, now it works.

Seth Kurtzberg

---

From: Nancy this-address-is-valid McGough <[email-masked]>
Date: Thu, 2 Dec 1999 15:56:33 -0500 (EST)

> (as in grepmail), do you know?

It's straight text like all text matching in pine (including
role, filter, and score patterns). Regular expression matching
would be great though!

 -Nancy

---

From: "Eduardo Chappa L." <[email-masked]>
Date: Thu, 2 Dec 1999 13:18:50 -0800 (PST)

*** Mike Miller ([email-masked]) wrote today:

:) I started asking for that a couple of years ago.  I was told that Pine
:) 4.00 would have that feature, but it actually doesn't have it (as far as I
:) can tell).  It looks like it lets you find folders that contain certain
:) strings, but it doesn't pull the messages out of the folders for you.
:) 
:) I've basically given up on having Pine do what I need in this regard and
:) I've started using a perl script called grepmail.  It's working very well
:) for me.  You can look for my earlier postings on grepmail in the archive.
:) Just search for "grepmail".
:) 

I am not sure if Pine will ever be able to do something like this,
certainly I do not see how to hack the code to do something like this. It
may be possible, but it does not look obvious, not for me at least. Let's
say to put things fixed that you wanted to look for messages with certain
specific From: line in all your folders in a certain collection.

  Now let us say you did the select that Nancy described before. Because
of the way Pine works today, the only possible output would be to show you
an index in a "folder index", so you would have to create a "fake" folder
with "fake" messages and open them from there (aargh, this sounds awful to
display on screen and program)

  Another solution would be to make a special display, something like

[Folder1]
MSG 1 Selected
MSG 2 Selected

[Folder2]
MSG 1 Selected
MSG 2 Selected

etc, and be able to open every message from the same screen. That would be
a lot of work though. I think you would also break the stream here,
opening and closing folders without displaying the index... I really don't
see how to do it without breaking much things in pine. 

 Anyone has ideas of how something like this should be done, what is what
you think is the outoput pine should give, to see if it is possible to
implement it..

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

---

From: Mike Miller <[email-masked]>
Date: Thu, 2 Dec 1999 15:50:57 -0600 (CST)

> role, filter, and score patterns). Regular expression matching

I agree.  Just a clarification:  By "straight text" you mean that it is
case insensitive.

If it is too hard to implement regular expression matching, maybe the Pine
team can implement a form of case-sensitivity where upper case letters in
the search string can only be matched by upper-case letters in the message
or folder, but lower case letters in the search string can be matched by
either upper or lower case.  That would be a useful feature.  We could
have an "Enable case sensitivity in searches" option.

Another *great* feature would be to allow searches of the message body
(excluding the message header).  Here's an example:  I get a bunch of
messages from an e-mail list and I don't want to read them all, but I want
to see if any of them refer to my earlier posting.  If I search "Text All"
for messages containing 'miller' *all* of the messages will be selected
because all of them were sent to me (mbmiller) and 'mbmiller' is therefore
in the header of every message.  If I could search the message body I
would find messages where they mention "Mike Miller" or whatever.  Doesn't
that seem like it would be potentially very useful.

Mike

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

---

From: Mike Miller <[email-masked]>
Date: Thu, 2 Dec 1999 16:04:03 -0600 (CST)

> I am not sure if Pine will ever be able to do something like this,
[snip]
> display on screen and program)

My thinking was that Pine should make a fake folder.  With the way things
work now, we can select within folders and 'Apply' various manipulations
(Save, Extract, Delete, etc.).  I recommend that we give up on the Apply
feature for multi-folder searches (because it's probably too hard to work
it out).  Let's just do a mailgrep kind of thing where we search for
messages in multiple folders, then pipe the output to a file (folder),
then go to the index of that folder.  From there we can do further
Selection and Apply commands, but we are not operating on the original
messages, just on copies of those messages.  The new folder could have a
name like TEMPFOLDER or maybe the user should be prompted for a name.

I recommended once before that it would be nice if Pine could run perl
scripts to do this sort of thing.  It seems like it would be easy to add a
feature such as "Enable perl grepmail" and allow users to run grepmail
from within Pine.  You might even add "path to perl" and "path to
grepmail" items to the pinerc.

Regards,

Mike

---

From: Ariel <[email-masked]>
Date: Fri, 3 Dec 1999 13:26:39 -0500 (EST)

> that seem like it would be potentially very useful.

And conversely, I would love search "header" for text, rather then a
specific header line. For example I want every message that was sent to,
from or has anything to do with "mwave" right now I need to do a CC
search, a To, a subject, and I might still be missing some if the message
was BCC'd and the mwave is in the received header.

Only problem is I'm not sure if IMAP has this feature - pine gets it's
stuff directly from IMAP, and if IMAP can't do header, or body search
neither can pine.

	-Ariel

---

From: Nancy this-address-is-valid McGough <[email-masked]>
Date: Fri, 3 Dec 1999 13:50:44 -0500 (EST)

On 99-12-03 Ariel <[email-masked]> wrote:
> > (excluding the message header).

Yes, I'd like body-only searching too!

> was BCC'd and the mwave is in the received header.

You can save yourself some of the searches by searching based on
Participant (which is To, Cc, and From). Here's the prompt I get
in 4.21:

Select based on To, From, Cc, Recip, Subject fields or All message text ?
                F From           T To            C Cc             R Recipient
^C Cancel       S [Subject]      A All Text      ! Not            P Participant

Note to Pine Developers: The prompt needs to be changed so it
includes Partic, e.g., change it to:

Select based on To, From, Cc, Recip, Partic, Subject fields or All message text ?

Also, how exactly does the Not (!) command work? If I say "! P"
(Not Participant) does that search just headers (excluding
Participants) or does it search headers and body (excluding
Participants)? If it's the latter, this is a partial solution to 
Mike Miller's body-only searching request.

---

From: "Eduardo Chappa L." <[email-masked]>
Date: Fri, 3 Dec 1999 11:11:49 -0800 (PST)

*** Nancy this-address-is-valid McGough ([email-masked]) wrote today:

:) Also, how exactly does the Not (!) command work? If I say "! P"
:) (Not Participant) does that search just headers (excluding
:) Participants) or does it search headers and body (excluding
:) Participants)? If it's the latter, this is a partial solution to 
:) Mike Miller's body-only searching request.
:) 
This means that the Participant will not be what you specify later, so if
you want to read mails where you have not participated you would make a
search by:

; t ! P nancy CR

The advantage of this is that now you can narrow your select to say all
the ones that have the word "bug" in the subject so you would do:

; n t s bug CR

and now eliminate replies by

; n t ! s Re: CR

I hope this makes it clear...

Eduardo

---

From: Mike Miller <[email-masked]>
Date: Fri, 3 Dec 1999 13:39:16 -0600 (CST)

> Mike Miller's body-only searching request.

Thanks for telling us about Participant.  It must be new.

It doesn't help me with my problem though.  I want to find messages that
have "miller" in the text whether they have "miller" as a participant or
not.  I also want to find messages that have "miller" in the message text,
whether or not "miller" is in the header.  If I find all messages that do
not have "miller" as a participant, those messages still have "miller" in
the header.  (That's because my e-mail address contains 'miller' and the
header includes the address in the "Received:" sections [see below].)

Mike

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

Received: from lists2.u.washington.edu ([email-masked] [140.142.56.1])
        by taxa.psyc.missouri.edu (8.9.3/8.9.0) with ESMTP id NAA06048
        for <[email-masked]>; Fri, 3 Dec 1999 13:00:49 -0600 (CST)
Received: from host ([email-masked] [140.142.56.13])
        by lists2.u.washington.edu (8.9.3+UW99.09/8.9.3+UW99.09) with SMTP id KAA13121;
        Fri, 3 Dec 1999 10:58:27 -0800

---

From: Bino Gopal <[email-masked]>
Date: Wed, 8 Dec 1999 13:09:08 -0500 (EST)

> http://www.math.washington.edu/~chappa/pine/

Oh god!  That's SO AWESOME!  They did it!!  Forgive my excitement, but
I've been away for a while, and we haven't updated from 4.10 here, and I
see that the "NOT" that I so desperately asked for way back when (like
August) has been put in!!  And Participant is awesome too!  Yes, yes,
yes!!!  THANK YOU Pine gods, thank you very, VERY much!  Woohoo!

Now to stop everything else I'm doing and go get the code to compile the
new version... *grin*

							BINO