how to include database name in mails

Lan Yufeng <[email protected]> Mon, 18 Apr 2005 21:06:45 +0800
Newsgroups gmane.comp.bug-tracking.gnats.general
Message-ID <[email protected]>
Hi, is there any way to send notification mail with database name set
dynamically, such as:
Subject: FooProduct cat1/pr#123
* FooProduct is the database name.

Because we gonna have a lot of databases, manually modify dbconfig for each
database is time consuming.

help! Suggestion on soucecode hacking are welcome too.