I tried the MAIL_* macros from /etc/sgreprc. I noticed that some of them don't work. MAIL_TO doesn't work because the LINE macros no more exists in the configuration file. MAIL_{BODY,MESS} don't work probably because of an error in MAIL_H{EADER,START,END} (just try $ sgrep MAIL_HEADER any/email while $ sgrep MAIL_TO any/email works) Notice that the HTML macros are absent (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=57627) And that debian and ubuntu provide a version numbered 1.94a-4 (that I didn't find on the upstream website) Reproducible: Always
Here is the workaround I found in my case (I use maildir and it is probably far more subtle for mbox) : added to sgreprc : define(LINE,( (LSTART) _. (LEND) )) changed in sgreprc : define(MAIL_HSTART,( start or ("From " in ("\nFrom " extracting "\n" .. ":" .. ":" in LINE) ) )) Correction of the upper comment : the absence of the LINE macro is a problem for the MAIL_BODY macro, not the MAIL_TO one. Wish it'll help
Bumping version (=renaming ebuild) to 1.94a is all that is needed to get the new version. So please, someone bump it ;)
Right, a sgrep-1.94a.tar.gz from 2004 is in the ftp there. But from a quick diff the real new thing in this release is that most mentions of the GPL have been removed from every header (and in COPYING). This removal isn't in the Changelog. I don't know if the other changes (those about code) in 0.94a are allowed to be added as a patch to the ebuild files/ directory.
Created attachment 306481 [details, diff] patch implementing changes
Appears that you forgot to attach the patch. But can someone also confirm that v1.94a is still under a valid GPLv2 licence ?
*sgrep-1.94a (21 Jan 2012) 21 Jan 2012; Tim Harder <radhermit@gentoo.org> +sgrep-1.94a.ebuild: Version bump.
is the concern about the license clarified ?