Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237238 - elog mail module should add some extra header fields for easy filtering
Summary: elog mail module should add some extra header fields for easy filtering
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-09 22:54 UTC by Michael Dubner
Modified: 2018-02-02 00:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dubner 2008-09-09 22:54:50 UTC
For example I've modified mod_mail.py in the following way:
--- /dev/fd/63	2008-09-10 02:51:25.899925031 +0400
+++ /usr/lib/portage/pym/elog_modules/mod_mail.py	2008-09-10 02:50:46.000000000 +0400
@@ -19,6 +19,8 @@
 	mysubject = mysubject.replace("${HOST}", socket.getfqdn())
 
 	mymessage = portage_mail.create_message(myfrom, myrecipient, mysubject, fulltext)
+	mymessage['X-Generator'] = 'portage/elog'
+	mymessage['X-ELog-cpv'] = cpv
 	try:
 		portage_mail.send_mail(mysettings, mymessage)
 	except PortageException, e:


Reproducible: Always

Steps to Reproduce:
1. Add mail to your PORTAGE_ELOG_SYSTEM
2. EBuild any package
3. Attempt to filter message not by subject
Actual Results:  
Subject is bad field for filtering because it can be configured to match user language.

Expected Results:  
Some technical field should be added for easy filtering.