In message <[EMAIL PROTECTED]>, Larry Jones writes:
> Erez Zadok writes:
> >
> > I have several remote and several local maintainers for a package. I want
> > to setup a commit logging system that will mail out a report each time
> > someone commits information, identifying the person who committed the
> > updates. Ideally, the commit mail will come "From:" that user's email
> > address, even if it is remote. If that's not possible, can I have the
> > user's name/email to appear in the log message?
>
> Since CVS doesn't use email, it doesn't have any way to know what the
> committer's email address is! It does know the username, though. See
> "Loginfo example" in the Cederqvist manual for an example of how to get
> the username passed into a script, and the contrib directory
> (particularly things with "log" in their names) for some example
> scripts.
>
> You should also probably update to the current CVS release (1.10.8) from
> www.cyclic.com if you haven't already.
>
> -Larry Jones
>
> I wonder what's on TV now. -- Calvin
Thanks Larry, I was able to modify log_accum to do what I wanted. I added
an option that passes $USER. The latter gets mapped into a full email using
CVSROOT/users, and then I use "sendmail -f " to set the from address. That
did the trick. (Of course, I had to make myself a "trusted" user in
sendmail.cf, but that's a problem for another day... :-)
If anyone is interested in my patches to log_accum to support this, let me
know. I wouldn't be surprised if someone already did that.
Erez.