[grepmail-announce] grepmail 4.80 released
Brought to you by:
coppit
From: David C. <da...@co...> - 2002-10-13 18:29:06
|
Description: - grepmail is a Perl program that searches a normal or compressed mailbox (gzip, bzip2, or tzip) for a given regular expression and returns those emails that match the query. It also supports searches constrained by date and size, and searches using logical operators. Download: - You can download grepmail 4.72 from CPAN: http://www.cpan.org/authors/id/D/DC/DCOPPIT/grepmail-4.72.tar.gz - Until the file propagates to the mirrors, you can use the following URL: http://prdownloads.sourceforge.net/grepmail/grepmail-4.72.tar.gz Changes: - Added prototype -E flag to support complex searches. (Thanks to Nelson Minar for the original suggestion in Sep 2000, And terry jones for seconding the idea.) - Added -F flag to force processing of files which grepmail determines are not mailboxes. (feature suggested by terry jones) - Documentation updated to reflect that -B no longer exists. (By terry jones) - The test to determine if a file is a mailbox was improved to adhere better to RFC 822, while still providing some flexibility. (Initial suggestion and patch by terry jones) - Improved date extraction to also look at the 'From ' line when both the Received and Date headers fail. (patch by terry jones) - Fixed a long-standing bug in which filenames of compressed mailboxes which contained special shell characters would cause problems. (Thanks to Jost Krieger for giving me the kick in the pants to finally fix this.) - Fixed a long-standing bug in which grepmail would incorrectly report the filename of compressed mailboxes in error messages. (Thanks to Jost Krieger for giving me the kick in the pants to finally fix this.) NOTES As with last release, this release benefits greatly from the feedback and insight of Terry Jones. His desire for complex pattern matches, along with Nelson Minar's original request, is the reason for the new -E flag. This flag allows you to perform complex searches involving logical operators. For example, $email_header =~ /^From: .*\@coppit.org/ && $email =~ /grepmail/i will find all emails which originate from coppit.org (you must escape the "@" sign with a backslash), and which contain the keyword "grepmail" anywhere in the message, in any capitalization. NOTE: -E support is experimental right now. I'm looking for feedback on the following: - Do you like the feature? - Do you like the Perl-based syntax? Is there an alternative which is easier? - How should date and size constraints be integrated? Should they be "variables", a la: "$email =~ /grepmail/ && $date <= 'sep 20 1998' || $size > 50000"? - Should -i, -h, and -b be supported in conjunction with -E? (Where "-h pattern" would mean augmenting the -E pattern with "$email_header =~ /pattern/ && ") - -S ignores signatures. If/when this feature is implemented for -E, should it be "global" for all $email_body matches, or should it be possible to specify this for each $email_body match? For example, one can append an "i" modifier to an individual pattern match to make it case-insensitive. Should there be a standard way of dealing with such "global" pattern matching options on an individual pattern match basis? A complete change log is at: - http://grepmail.sourceforge.net/CHANGES Other notes: - Users wishing to install Mail::Folder::FastReader will need to install Inline 0.41, available at http://search.cpan.org/search?dist=Inline Thanks, David _____________________________________________________________________ David Coppit da...@co... The College of William and Mary http://coppit.org/ One thing the blues ain't... is funny. Stephen Stills, "Black Queen" |