Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285593 - app-text/sgrep : MAIL_{BODY,MESS,HEADER} macros provided by default /etc/sgreprc don't work
Summary: app-text/sgrep : MAIL_{BODY,MESS,HEADER} macros provided by default /etc/sgre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-19 16:16 UTC by Raphaël Droz
Modified: 2013-10-13 11:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch implementing changes (sgrep.patch,691 bytes, patch)
2012-03-24 02:04 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Droz 2009-09-19 16:16:31 UTC
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
Comment 1 Raphaël Droz 2009-09-19 16:26:55 UTC
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
Comment 2 Marcel Partap 2010-07-12 10:39:49 UTC
Bumping version (=renaming ebuild) to 1.94a is all that is needed to get the new version. So please, someone bump it ;)
Comment 3 Raphaël Droz 2011-07-25 19:12:47 UTC
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.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2012-03-24 02:04:58 UTC
Created attachment 306481 [details, diff]
patch implementing changes
Comment 5 Raphaël Droz 2012-03-24 12:11:31 UTC
Appears that you forgot to attach the patch.

But can someone also confirm that v1.94a is still under a valid GPLv2 licence ?
Comment 6 Pacho Ramos gentoo-dev 2013-10-13 11:19:06 UTC
*sgrep-1.94a (21 Jan 2012)

  21 Jan 2012; Tim Harder <radhermit@gentoo.org> +sgrep-1.94a.ebuild:
  Version bump.
Comment 7 Raphaël Droz 2013-10-13 11:52:54 UTC
is the concern about the license clarified ?