grepm is not compatable with grepmail_5.00-40_i586.rpm
grepm (a wrapper for grepmail utilizing mutt) appears to be incompatable with the new version of grepmail (5.00). I have reverted to 4.91. Searching for a specific header pattern results in a very long *wait* with no results. Having little programing experience, I have no idea where or how to approach this problem. Grepm is important to me for searching message archives in mbox format for display with mutt. Any assistance would be appreciated. grepm, a 50 line (including version comments) sh script, is available http://wahoo.no-ip.org/~pat/grepm thankyou, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 16:37, Patrick Shanahan wrote:
grepm (a wrapper for grepmail utilizing mutt) appears to be incompatable with the new version of grepmail (5.00). I have reverted to 4.91.
Searching for a specific header pattern results in a very long *wait* with no results.
Having little programing experience, I have no idea where or how to approach this problem. Grepm is important to me for searching message archives in mbox format for display with mutt.
Any assistance would be appreciated.
grepm, a 50 line (including version comments) sh script, is available http://wahoo.no-ip.org/~pat/grepm
A script? :) already tried to execute it with: sh -x grepm [grepm parameters] or sh -x grepm [grepm parameters] 2>&1 | less You probably would be able to see where it hangs. I get such hangs in scripts when I supply an empty argument to a program, resulting in the program reading from stdin instead of reading from a file. Cheers, Leen
On Thursday 23 September 2004 17:07, Leendert Meyer wrote:
On Thursday 23 September 2004 16:37, Patrick Shanahan wrote:
grepm (a wrapper for grepmail utilizing mutt) appears to be incompatable with the new version of grepmail (5.00). I have reverted to 4.91.
Searching for a specific header pattern results in a very long *wait* with no results.
Having little programing experience, I have no idea where or how to approach this problem. Grepm is important to me for searching message archives in mbox format for display with mutt.
Any assistance would be appreciated.
grepm, a 50 line (including version comments) sh script, is available http://wahoo.no-ip.org/~pat/grepm
Hmm, thought I'd give it a try, but: leen@ws-02:~/public_html> wget http://wahoo.no-ip.org/~pat/grepm --17:29:07-- http://wahoo.no-ip.org/%7Epat/grepm => `grepm' Resolving wahoo.no-ip.org... 24.208.208.146 Connecting to wahoo.no-ip.org[24.208.208.146]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 17:29:08 ERROR 403: Forbidden. leen@ws-02:~/public_html> Perhaps you need to do: chmod a+r ~/public_html/grepm ?
A script? :) already tried to execute it with:
sh -x grepm [grepm parameters]
or
sh -x grepm [grepm parameters] 2>&1 | less
You probably would be able to see where it hangs. I get such hangs in scripts when I supply an empty argument to a program, resulting in the program reading from stdin instead of reading from a file.
Cheers, Leen
* Leendert Meyer
17:29:08 ERROR 403: Forbidden.
leen@ws-02:~/public_html>
Perhaps you need to do:
chmod a+r ~/public_html/grepm ?
done :^) -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
* Leendert Meyer
A script? :) already tried to execute it with:
sh -x grepm [grepm parameters]
pat@wahoo:~> sh -x grepm -iRY ^From Leendert ~/mail/backup ++ basename grepm + PROGNAME=grepm + TMPDIR=/tmp + umask 077 + '[' 4 -lt 1 ']' + TMPFILE=/tmp/grepmail-output.14839 + '[' -f /tmp/grepmail-output.14839 -o -d /tmp/grepmail-output.14839 -o -w /tmp/grepmail-output.14839 ']' + trap 'rm -f /tmp/grepmail-output.14839; exit 1' 1 2 3 13 15 + grepmail -m -iRY '^From' Leendert /home/pat/mail/backup and just sit's there.........
or
sh -x grepm [grepm parameters] 2>&1 | less
and this is, of course, the same except displayed via less -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 18:06, Patrick Shanahan wrote:
* Leendert Meyer
[09-23-04 10:07]: A script? :) already tried to execute it with:
sh -x grepm [grepm parameters]
pat@wahoo:~> sh -x grepm -iRY ^From Leendert ~/mail/backup
Ok. I saved one of my mails in this thread to a file (test.email), and did: grepm -iRY ^From Leendert test.email and presto: mutt ran, and showed my email. :P My installed files: Thu Sep 23 18:14:11 2004;install;grepmail;5.00-113 Thu Sep 23 18:14:11 2004;install;perl-Parse-RecDescent;1.80-228 Thu Sep 23 18:14:11 2004;install;perl-Inline;0.44-191 Thu Sep 23 18:14:11 2004;install;perl-TimeDate;1.16-121 Thu Sep 23 18:14:11 2004;install;perl-DateManip;5.42a-124 Thu Sep 23 18:17:22 2004;install;mutt;1.5.6i-62
+ grepmail -m -iRY '^From' Leendert /home/pat/mail/backup
What happens when you execute grepmail like above line? Cheers, Leen
* Leendert Meyer
Ok. I saved one of my mails in this thread to a file (test.email), and did:
grepm -iRY ^From Leendert test.email
and presto: mutt ran, and showed my email. :P
My installed files:
Thu Sep 23 18:14:11 2004;install;grepmail;5.00-113 Thu Sep 23 18:14:11 2004;install;perl-Parse-RecDescent;1.80-228 Thu Sep 23 18:14:11 2004;install;perl-Inline;0.44-191 Thu Sep 23 18:14:11 2004;install;perl-TimeDate;1.16-121 Thu Sep 23 18:14:11 2004;install;perl-DateManip;5.42a-124 Thu Sep 23 18:17:22 2004;install;mutt;1.5.6i-62
+ grepmail -m -iRY '^From' Leendert /home/pat/mail/backup
What happens when you execute grepmail like above line?
OK, I have found it, maybe. The problem is the parameter -R (recurse directories). My backup directory is stored with each file in it's own directory but in mbox format. Recurse w/o the .../* (asterisk) does not attempt to enter any directory, and with the <asterisk> enters the next directory level, but not the files themselves. It is grepmail, not the wrapper script that is faulty (I think). Recurse may be broken as 'grepmail -m -iRY ^From Leendert ~/mail/backup/mst.*' also hangs. :^( -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 19:20, Patrick Shanahan wrote:
* Leendert Meyer
[09-23-04 11:36]: Ok. I saved one of my mails in this thread to a file (test.email), and did:
grepm -iRY ^From Leendert test.email
and presto: mutt ran, and showed my email. :P ... It is grepmail, not the wrapper script that is faulty (I think). Recurse may be broken as 'grepmail -m -iRY ^From Leendert ~/mail/backup/mst.*' also hangs.
Maybe there is something on this on the grepmail mailinglists or so. Cheers, Leen
* Leendert Meyer
Maybe there is something on this on the grepmail mailinglists or so.
I looked at the diff, grepmail has a new parameter, use external grep which is default. Told grepmail to *not* use external grep and it works. Performing other tests, will report results. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 23 September 2004 19:57, Patrick Shanahan wrote:
* Leendert Meyer
[09-23-04 12:39]: Maybe there is something on this on the grepmail mailinglists or so.
I looked at the diff, grepmail has a new parameter, use external grep which is default. Told grepmail to *not* use external grep and it works. Performing other tests, will report results.
Ah, great, another mystery solved! ;) Cheers, Leen
* Patrick Shanahan
* Leendert Meyer
[09-23-04 12:39]: Maybe there is something on this on the grepmail mailinglists or so.
I looked at the diff, grepmail has a new parameter, use external grep which is default. Told grepmail to *not* use external grep and it works. Performing other tests, will report results.
This does appear to be the problem and I have email this information to the author. And he has replied. Will check the parameter passing/recurse for external grep. Apparently it was done entirely internally previously. Normal function will return if you edit the perl script, /usr/bin/grepmail, and change line 45 to reflect: $USE_GREP = 0; where the default was = 1. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (2)
-
Leendert Meyer
-
Patrick Shanahan