Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to search emails with multiple criteria?

63 views
Skip to first unread message

Jagadeesh

unread,
Apr 30, 2012, 5:18:59 AM4/30/12
to
Hi,

I am looking for help regarding searching emails with conditions like
from: xyz & To: pqr & sent in last 7 days.

Have tried to google but did not get enough help.

Thanks

Kjell Andresen

unread,
Apr 30, 2012, 5:30:50 AM4/30/12
to
Enable aggregate command set and the first ; (select) T(ext) A(ll): xyz
and then ; (alter) N(arrow) T(ext) T(o) pqr and then again ; (alter)
N(arrow) D(ate) /DATE/

When selecting the date ctrl+p lets you go back day by day if you won`t
write it in.

Kjell

Jagadeesh

unread,
Apr 30, 2012, 6:04:02 AM4/30/12
to
Wow!! this works. thanks
Is there any way I can do it in single key stroke?
like arrived in last 7 days and from xyz and to pqr

This I use repeatedly. so can I store it and evoke it with single key?
Thanks

Kjell Andresen

unread,
Apr 30, 2012, 7:12:11 AM4/30/12
to
Sorry, not that I know of.
If having multiple selections I try to grep in my archieve mail files,
but that will only work for queries to the same line in the file.

Kjell

Howard Schwartz

unread,
May 1, 2012, 7:56:03 AM5/1/12
to
Jagadeesh <mnjag...@gmail.com> wrote in
news:1623455.240.1335777539112.JavaMail.geo-discussion-forums@pbkc8:
I find it easiest to use a windows grep for things like this such as the
free astrogrep or dngrep. They allow using regular expressions with and
and or statements, and other conditions in a single pass. They are very
fast when just searching for strings. They also let you double click on a
found line and go to that line in that file with yhour favorite editor.
Disadvantage is both of these use the net framework.

Jagadeesh

unread,
May 2, 2012, 1:01:03 AM5/2/12
to
Thanks for this info. I am linux user but this is useful info.

Thanks

Howard Schwartz

unread,
May 8, 2012, 7:11:13 PM5/8/12
to
Jagadeesh <mnjag...@gmail.com> wrote in
news:21685238.270.1335934863973.JavaMail.geo-discussion-forums@pbpw7:

> Thanks for this info. I am linux user but this is useful info.

Well, of course, grep started out as a Unix tool and is standard for
almost every kind of Unix OS. Grep-like tools - awk, sed, even perl are
light-years more powerful search tools than those built into most email
clients, including pine.

I've even run across some, on occasion that will display blocks of text
containing searched for strings, e.g., the email message that contains a
regular expression. it is not hard to write, for instance, awk scripts
that will provide this capability.

As long as you have access to your stored email files, you can use one of
these tools.

Sometimes this is a problem for Pine users with accounts on
company, government, or university computers: The files on the mail-
server that stores your emails may not be accessible, except through the
pine client itself. Usually, if you are not worried about security, you
can work around this problem by storing email files in your local
directory. Then only INBOX will not be available to grep, etc.

Jagadeesh

unread,
May 9, 2012, 4:55:09 AM5/9/12
to

Thanks much for this useful details. Could you please give an example how to use gre and awk in alpine?

Thanks
0 new messages