Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVN-Notify CPAN distribution.

Report information
The Basics
Id: 17563
Status: rejected
Priority: 0/
Queue: SVN-Notify

People
Owner: Nobody in particular
Requestors: brett [...] apache.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.49
Fixed in: 2.70



Subject: [RFE] ability to map individual usernames to from addresses
I'm wanting to map svn account names to a variety of from addresses, rather than using --from or --userdomain, since some of the committers don't have unix accounts/mailboxes on our system. For example, svnnotify --from-map ~/scm/hooks/svnnotify-from-map ... Then svnnotify-from-map could have: bporter brett@apache.org foo foo@bar.com I believe CVS Spam has a similar feature, though I was never able to get it to work when I tried some time back. It used CVSROOT/users, but I don't think SVN has a comparable feature.
Subject: Re: [rt.cpan.org #17563] [RFE] ability to map individual usernames to from addresses
Date: Fri, 17 Feb 2006 12:01:13 -0800
To: bug-SVN-Notify [...] rt.cpan.org
From: David Wheeler <dwheeler [...] cpan.org>
On Feb 9, 2006, at 18:31, Guest via RT wrote: Show quoted text
> I'm wanting to map svn account names to a variety of from addresses, > rather than using --from or --userdomain, since some of the committers > don't have unix accounts/mailboxes on our system. > > For example, > svnnotify --from-map ~/scm/hooks/svnnotify-from-map ... > > Then svnnotify-from-map could have: > bporter brett@apache.org > foo foo@bar.com > > I believe CVS Spam has a similar feature, though I was never able > to get > it to work when I tried some time back. It used CVSROOT/users, but I > don't think SVN has a comparable feature.
Sorry I missed you on IRC the other day. I was slammed. This sounds like a useful feature to me. It can be done in two ways. The first, if you only have a few addresses like this, is to use a command-line option similar to --to-regex-map, maybe --from-regex-map? The second way is using an external file, per your suggestion, which would make sense if you have a lot of people to manage. Come to think of it, such a file could be useful for --to-regex-map, too. So, are you saying that you will be sending me a patch for this? Thanks, David
Subject: Re: [rt.cpan.org #17563] [RFE] ability to map individual usernames to from addresses
Date: Sat, 18 Feb 2006 09:39:27 +1100
To: bug-SVN-Notify [...] rt.cpan.org
From: Brett Porter <brett [...] apache.org>
Thanks, I agree. I hope to find time - I'll dust off my perl skills and try to make a patch. - Brett David Wheeler via RT wrote: Show quoted text
> On Feb 9, 2006, at 18:31, Guest via RT wrote: >
>> I'm wanting to map svn account names to a variety of from addresses, >> rather than using --from or --userdomain, since some of the committers >> don't have unix accounts/mailboxes on our system. >> >> For example, >> svnnotify --from-map ~/scm/hooks/svnnotify-from-map ... >> >> Then svnnotify-from-map could have: >> bporter brett@apache.org >> foo foo@bar.com >> >> I believe CVS Spam has a similar feature, though I was never able >> to get >> it to work when I tried some time back. It used CVSROOT/users, but I >> don't think SVN has a comparable feature.
> > Sorry I missed you on IRC the other day. I was slammed. This sounds > like a useful feature to me. It can be done in two ways. The first, > if you only have a few addresses like this, is to use a command-line > option similar to --to-regex-map, maybe --from-regex-map? > > The second way is using an external file, per your suggestion, which > would make sense if you have a lot of people to manage. Come to think > of it, such a file could be useful for --to-regex-map, too. > > So, are you saying that you will be sending me a patch for this? > > Thanks, > > David >
Please see the new support for filters added in SVN::Notify 2.70. Using filters, you can implement this yourself quite easily. I've even included this very feature in an example in the filter documentation: http://search.cpan.org/dist/SVN-Notify/lib/SVN/Notify/Filter.pm Best, David